Renamed smack_get_peer_label to smack_get_socket_label.
authorJarkko Sakkinen <jarkko.sakkinen@intel.com>
Tue, 4 Oct 2011 11:45:53 +0000 (14:45 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@intel.com>
Tue, 4 Oct 2011 11:45:53 +0000 (14:45 +0300)
src/smack.c
src/smack.h

index 9bdb6b4..e9db0e5 100644 (file)
@@ -293,7 +293,7 @@ int smack_have_access(int fd, const char *subject,
        return buf[0] == '1';
 }
 
-char *smack_get_peer_label(int fd)
+char *smack_get_socket_label(int fd)
 {
        char dummy;
        int ret;
index 4f3c831..c896f61 100644 (file)
@@ -110,13 +110,13 @@ extern int smack_have_access(int fd, const char *subject,
                             const char *object, const char *access_type);
 
 /*!
-  * Get the label that is associated with a peer on the other end of a socket.
-  * Caller is responsible of freeing the returned label.
+  * Get the label that is associated with a peer on the other end of a
+  * Unix socket. Caller is responsible of freeing the returned label.
   *
   * @param fd socket file descriptor
   * @return label on success and NULL of failure.
   */
-extern char *smack_get_peer_label(int fd);
+extern char *smack_get_socket_label(int fd);
 
 #ifdef __cplusplus
 }