chiark / gitweb /
Revert "socket: introduce SELinuxLabelViaNet option"
[elogind.git] / src / shared / label.c
index e46d53201d97bcd2c28e64c22ee68260b7016658..25a8b361b7c9c86e23139976e16acc910f717342 100644 (file)
@@ -293,6 +293,8 @@ int label_socket_set(const char *label) {
 void label_context_clear(void) {
 
 #ifdef HAVE_SELINUX
+        PROTECT_ERRNO;
+
         if (!use_selinux())
                 return;
 
@@ -303,6 +305,8 @@ void label_context_clear(void) {
 void label_socket_clear(void) {
 
 #ifdef HAVE_SELINUX
+        PROTECT_ERRNO;
+
         if (!use_selinux())
                 return;