mac: rename apis with mac_{selinux/smack}_ prefix

This commit is contained in:
WaLyong Cho
2014-10-23 17:13:15 +02:00
committed by Lennart Poettering
parent 66b6d9d5b5
commit cc56fafeeb
26 changed files with 114 additions and 114 deletions
+3 -3
View File
@@ -64,7 +64,7 @@ int socket_address_listen(
return -EAFNOSUPPORT;
if (label) {
r = label_socket_set(label);
r = mac_selinux_socket_set(label);
if (r < 0)
return r;
}
@@ -73,7 +73,7 @@ int socket_address_listen(
r = fd < 0 ? -errno : 0;
if (label)
label_socket_clear();
mac_selinux_socket_clear();
if (r < 0)
return r;
@@ -119,7 +119,7 @@ int socket_address_listen(
/* Include the original umask in our mask */
umask(~socket_mode | old_mask);
r = label_bind(fd, &a->sockaddr.sa, a->size);
r = mac_selinux_bind(fd, &a->sockaddr.sa, a->size);
if (r < 0 && errno == EADDRINUSE) {
/* Unlink and try again */