User 'nobody' is changed with 'root' according NobodySubjectPolicy (see wiki)

This commit is contained in:
Артем Синюгин 2024-11-20 12:28:23 +03:00
parent 95ce87b365
commit 73491b2351
2 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,7 @@ Patch0: %name-%version-%release.patch
Patch1: allow_deprecated_rustc-serialize.patch Patch1: allow_deprecated_rustc-serialize.patch
Patch2: makefile_install_fix.patch Patch2: makefile_install_fix.patch
Patch3: fix_paths.patch Patch3: fix_paths.patch
Patch4: nobody_user_fix.patch
Requires(pre): crontab-control Requires(pre): crontab-control
Requires: vitmp Requires: vitmp
@ -44,6 +45,7 @@ It's intended to be a drop-in replacement for all cron implementations.
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
%patch4 -p1
%build %build
./configure ./configure

11
nobody_user_fix.patch Normal file
View File

@ -0,0 +1,11 @@
diff --git a/units/cron-failure@.service.in b/units/cron-failure@.service.in
index b99bf51..21d25a9 100644
--- a/units/cron-failure@.service.in
+++ b/units/cron-failure@.service.in
@@ -8,5 +8,5 @@ ConditionFileIsExecutable=/usr/sbin/sendmail
[Service]
Type=oneshot
ExecStart={{ libdir }}/{{ package }}/mail-on-failure %i
-User=nobody
+User=root
Group=systemd-journal