summaryrefslogtreecommitdiff
path: root/src/coredump/coredump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coredump/coredump.c')
-rw-r--r--src/coredump/coredump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c
index 1c4af5c813..85242f349f 100644
--- a/src/coredump/coredump.c
+++ b/src/coredump/coredump.c
@@ -186,9 +186,9 @@ static int fix_acl(int fd, uid_t uid) {
return 0;
/* Make sure normal users can read (but not write or delete) their own coredumps */
- r = fd_add_uid_acl_permission(fd, uid, /* read = */ true, /* write = */ false, /* execute = */ false);
+ r = fd_add_uid_acl_permission(fd, uid, ACL_READ);
if (r < 0)
- return log_error_errno(r, "Failed to adjust ACL of coredump: %m");
+ return log_error_errno(r, "Failed to adjust ACL of the coredump: %m");
#endif
return 0;