chiark / gitweb /
label: introduce label_bind() and make use of it where necessary
[elogind.git] / src / label.h
index 6e48efaa0755aef129eb9e01d00949e8daeb28c5..ead44837a429c7e3cb8f13dc97a616013a95f06a 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <sys/types.h>
 #include <stdbool.h>
+#include <sys/socket.h>
 
 int label_init(void);
 void label_finish(void);
@@ -45,4 +46,6 @@ int label_mkdir(const char *path, mode_t mode);
 
 void label_retest_selinux(void);
 
+int label_bind(int fd, const struct sockaddr *addr, socklen_t addrlen);
+
 #endif