summaryrefslogtreecommitdiffstats
path: root/src/core/selinux-access.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-02-06 11:47:28 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2020-02-06 16:04:50 +0100
commit2b6a90d17f4c5983f6510e8675ae83008f62e0f5 (patch)
tree347b1ba8cb55b3a3d230d5cf3bd49accb9433357 /src/core/selinux-access.c
parentMerge pull request #14800 from keszybz/ask-password-echo (diff)
downloadsystemd-2b6a90d17f4c5983f6510e8675ae83008f62e0f5.tar.xz
systemd-2b6a90d17f4c5983f6510e8675ae83008f62e0f5.zip
selinux: update log message to suppress warning by coverity
Fixes CID#1417440 and CID#1417438.
Diffstat (limited to 'src/core/selinux-access.c')
-rw-r--r--src/core/selinux-access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/selinux-access.c b/src/core/selinux-access.c
index 4500e4452f..fb38231702 100644
--- a/src/core/selinux-access.c
+++ b/src/core/selinux-access.c
@@ -223,7 +223,7 @@ int mac_selinux_generic_access_check(
r = getfilecon_raw(path, &fcon);
if (r < 0) {
- log_warning_errno(errno, "SELinux getfilecon_raw on '%s' failed: %m (tclass=%s perm=%s)", path, tclass, permission);
+ log_warning_errno(errno, "SELinux getfilecon_raw on '%s' failed (tclass=%s perm=%s): %m", path, tclass, permission);
r = sd_bus_error_setf(error, SD_BUS_ERROR_ACCESS_DENIED, "Failed to get file context on %s.", path);
goto finish;
}
@@ -232,7 +232,7 @@ int mac_selinux_generic_access_check(
} else {
r = getcon_raw(&fcon);
if (r < 0) {
- log_warning_errno(errno, "SELinux getcon_raw failed: %m (tclass=%s perm=%s)", tclass, permission);
+ log_warning_errno(errno, "SELinux getcon_raw failed (tclass=%s perm=%s): %m", tclass, permission);
r = sd_bus_error_setf(error, SD_BUS_ERROR_ACCESS_DENIED, "Failed to get current context.");
goto finish;
}