chiark / gitweb /
Assume that /proc/meminfo can be missing
[elogind.git] / src / shared / label.c
index 1fe4574633ef888089d3fbb4ea612f7badb84a0c..fde39f22594fd08ac1613818a25a29ecd4a65cef 100644 (file)
@@ -257,14 +257,14 @@ void label_free(const char *label) {
 #endif
 }
 
-int label_mkdir(const char *path, mode_t mode, bool apply) {
+int label_mkdir(const char *path, mode_t mode) {
 
         /* Creates a directory and labels it according to the SELinux policy */
 #ifdef HAVE_SELINUX
         int r;
         security_context_t fcon = NULL;
 
-        if (!apply || !use_selinux() || !label_hnd)
+        if (!use_selinux() || !label_hnd)
                 goto skipped;
 
         if (path_is_absolute(path))