User 'nobody' is changed with 'root' according NobodySubjectPolicy (see wiki)
This commit is contained in:
parent
95ce87b365
commit
73491b2351
@ -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
11
nobody_user_fix.patch
Normal 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
|
Loading…
x
Reference in New Issue
Block a user