summaryrefslogtreecommitdiff
path: root/src/shared/socket-label.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-23 19:41:27 +0200
committerLennart Poettering <lennart@poettering.net>2014-10-23 21:36:56 +0200
commitecabcf8b6edcc856ec2fd5bd43fc675a8fe04731 (patch)
treea4c8b9165495bbec27bdec4bf8ad6c3976948f1a /src/shared/socket-label.c
parent66cedb3078ebe78174efd51673632eb3bfb9be61 (diff)
selinux: clean up selinux label function naming
Diffstat (limited to 'src/shared/socket-label.c')
-rw-r--r--src/shared/socket-label.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/socket-label.c b/src/shared/socket-label.c
index 6f9aeeea5d..47d9488d56 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 = mac_selinux_socket_set(label);
+ r = mac_selinux_create_socket_prepare(label);
if (r < 0)
return r;
}
@@ -73,7 +73,7 @@ int socket_address_listen(
r = fd < 0 ? -errno : 0;
if (label)
- mac_selinux_socket_clear();
+ mac_selinux_create_socket_clear();
if (r < 0)
return r;