* Bugfixing. Code refactoring. Logging updated
Change-Id: Ie0aa660514345a11772dddbcf0f118f27b023f04
#sbs-git:slp/pkgs/s/security-server security-server 0.0.37
Name: security-server
Summary: Security server and utilities
--Version: 0.0.73
++Version: 0.0.74
Release: 1
Group: TO_BE/FILLED_IN
License: Apache License, Version 2.0
const char *object,
const char *access_rights)
{
+ if (!smack_check())
+ {
+ SEC_SVR_DBG("%s","No SMACK support on device");
+ return SECURITY_SERVER_API_SUCCESS;
+ }
+
char *subject;
int ret;
+ char * path = NULL;
+
+ //for get socket options
+ struct ucred cr;
+ unsigned int len;
+
+ //SMACK runtime check
+ if (!smack_runtime_check())
+ {
+ SEC_SVR_DBG("%s","No SMACK support on device");
+ return SECURITY_SERVER_API_SUCCESS;
+ }
+
ret = smack_new_label_from_socket(sockfd, &subject);
if (ret != 0)
{