Fix improper description in header
authorZofia Abramowska <z.abramowska@samsung.com>
Thu, 28 Nov 2013 14:12:29 +0000 (15:12 +0100)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Thu, 6 Feb 2014 16:13:24 +0000 (17:13 +0100)
[Issue#] N/A
[Feature/Bug] N/A
[Cause] Header contained wrong information about rules needed for
using security_server_check_privilege_by_sockfd
[Solution] Fixed description in header.
[Verification] Build.

Change-Id: I4ce035086268eff6f0d9d46834fe297206788923

src/include/security-server.h

index 7fb4dee..c38be73 100644 (file)
@@ -397,10 +397,6 @@ int security_server_check_privilege_by_cookie(const char *cookie,
                                               const char *object,
                                               const char *access_rights);
 
-int security_server_check_privilege_by_sockfd(int sockfd,
-                                              const char *object,
-                                              const char *access_rights);
-
 /**
  * \par Description:
  * This API searchs a cookie value and returns PID of the given cookie.
@@ -919,11 +915,12 @@ char *security_server_get_smacklabel_sockfd(int fd);
 int security_server_app_give_access(const char *customer_label, int customer_pid);
 
 /*
- * This function allows middleware to check priviliges of process with specified PID.
+ * This function allows middleware to check priviliges of process with specified PID or socket
+ * file descriptor.
  * Service is able to check proces acces to the specified object label with specified
  * access rights.
  *
- * \param[in] PID number of process to be checked
+ * \param[in] PID id of process or SOCKFD socket file descriptor to be checked
  * \param[in] SMACK object label
  * \param[in] SMACK access rights to be checked
  *
@@ -934,6 +931,9 @@ int security_server_app_give_access(const char *customer_label, int customer_pid
  */
 int security_server_check_privilege_by_pid(int pid, const char *object, const char *access_rights);
 
+int security_server_check_privilege_by_sockfd(int sockfd,
+                                              const char *object,
+                                              const char *access_rights);
 /*
  * This function allows middleware to enable permissions for specified app_id.
  *