Merge pull request #16432 from cgzones/selinux_err_fix

SELlinux followup error/logging fixes
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-07-12 11:55:44 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -876,7 +876,7 @@ static int mount_tmpfs(const MountEntry *m) {
r = label_fix_container(entry_path, source_path, 0);
if (r < 0)
return log_error_errno(r, "Failed to fix label of '%s' as '%s': %m", entry_path, source_path);
return log_debug_errno(r, "Failed to fix label of '%s' as '%s': %m", entry_path, source_path);
return 1;
}
+2 -2
View File
@@ -107,8 +107,8 @@ int make_inaccessible_nodes(
else
r = mknod_label(path, table[i].mode, makedev(0, 0));
if (r < 0) {
if (errno != EEXIST)
log_debug_errno(errno, "Failed to create '%s', ignoring: %m", path);
if (r != -EEXIST)
log_debug_errno(r, "Failed to create '%s', ignoring: %m", path);
continue;
}