chiark / gitweb /
sysusers: fix selinux context of backup files
[elogind.git] / src / shared / fileio-label.c
index 417ca56..c3def3c 100644 (file)
@@ -59,7 +59,7 @@ int fopen_temporary_label(const char *target,
                           const char *path, FILE **f, char **temp_path) {
         int r;
 
-        r = label_context_set("/etc/passwd", S_IFREG);
+        r = label_context_set(target, S_IFREG);
         if (r < 0)
                 return r;