summaryrefslogtreecommitdiff
path: root/src/shared/socket-label.c
diff options
context:
space:
mode:
authorWaLyong Cho <walyong.cho@samsung.com>2014-10-23 17:23:46 +0900
committerLennart Poettering <lennart@poettering.net>2014-10-23 17:13:15 +0200
commitcc56fafeebf814ef035e549115cf1850e6473fa5 (patch)
tree7bc8ec26fb250eb21180cdcd30bdc9072a0ac132 /src/shared/socket-label.c
parent66b6d9d5b5b13a97c9f275aed0d9fe5608495be9 (diff)
mac: rename apis with mac_{selinux/smack}_ prefix
Diffstat (limited to 'src/shared/socket-label.c')
-rw-r--r--src/shared/socket-label.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/socket-label.c b/src/shared/socket-label.c
index bd3ceefb93..6f9aeeea5d 100644
--- a/src/shared/socket-label.c
+++ b/src/shared/socket-label.c
@@ -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 */