chiark / gitweb /
selinux: unify systemd and udev code
[elogind.git] / src / core / mount-setup.c
index 52fe523674bdc055885f5699dd065f4a61ed7dbf..30046a51bd2ad1fbac117f4236788fe88e704ff6 100644 (file)
@@ -329,13 +329,14 @@ static int symlink_and_label(const char *old_path, const char *new_path) {
         assert(old_path);
         assert(new_path);
 
-        if ((r = label_symlinkfile_set(new_path)) < 0)
+        r = label_context_set(new_path, S_IFLNK);
+        if (r < 0)
                 return r;
 
         if (symlink(old_path, new_path) < 0)
                 r = -errno;
 
-        label_file_clear();
+        label_context_clear();
 
         return r;
 }