#include <poll.h>
#include <privilege-control.h>
-
#include <security-server-system-observer.h>
#include <security-server-rules-revoker.h>
const char * const LABEL_SECURITY_SERVER_API_DATA_SHARE = "security-server::api-data-share";
+const char * const LABEL_SECURITY_SERVER_API_DATA_SHARE = "security-server::api-data-share";
+
/* Set cookie as a global variable */
cookie_list *c_list;
pthread_mutex_t cookie_mutex;
char *label = NULL;
int ret = 0;
- if (smack_check())
- {
+ if(smack_new_label_from_socket(sockfd, &label))
+ return 0;
- if(smack_new_label_from_socket(sockfd, &label))
- return 0;
+ if (0 >= (ret = smack_have_access(label, object, "rw")))
+ ret = 0;
- if (0 >= (ret = smack_have_access(label, object, "rw")))
- ret = 0;
- }
free(label);
return ret;
}