[Release] security-server_0.0.74
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 22 May 2013 09:08:41 +0000 (11:08 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 22 May 2013 09:42:14 +0000 (11:42 +0200)
* Bugfixing. Code refactoring. Logging updated

Change-Id: Ie0aa660514345a11772dddbcf0f118f27b023f04

1  2 
packaging/security-server.spec
src/client/security-server-client.c

@@@ -1,7 -1,7 +1,7 @@@
  #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
@@@ -454,14 -456,21 +456,27 @@@ int security_server_check_privilege_by_
                                                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)
      {