summaryrefslogtreecommitdiff
path: root/src/socket-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-16 19:42:27 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-16 19:42:27 +0200
commitb15bdda87046f5e46080fd84fda878cba2da0fc8 (patch)
tree982893886ddd99e82e5120a52d2c0a379b4addf1 /src/socket-util.c
parent0009d2a63339af1ee9b6f18ab6cf42d68d089148 (diff)
socket: prepare for proper selinux labelling of sockets
Diffstat (limited to 'src/socket-util.c')
-rw-r--r--src/socket-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socket-util.c b/src/socket-util.c
index e6e3784bc5..442abfe1af 100644
--- a/src/socket-util.c
+++ b/src/socket-util.c
@@ -305,6 +305,7 @@ int socket_address_listen(
bool free_bind,
mode_t directory_mode,
mode_t socket_mode,
+ /* FIXME SELINUX: pass SELinux context object here */
int *ret) {
int r, fd, one;
@@ -314,6 +315,9 @@ int socket_address_listen(
if ((r = socket_address_verify(a)) < 0)
return r;
+ /* FIXME SELINUX: The socket() here should be done with the
+ * right SELinux context set */
+
if ((fd = socket(socket_address_family(a), a->type | SOCK_NONBLOCK | SOCK_CLOEXEC, 0)) < 0)
return -errno;