diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0029-fc-cron-apply-policy-to-etc-init.d-crond.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0029-fc-cron-apply-policy-to-etc-init.d-crond.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0029-fc-cron-apply-policy-to-etc-init.d-crond.patch b/recipes-security/refpolicy/refpolicy/0029-fc-cron-apply-policy-to-etc-init.d-crond.patch new file mode 100644 index 0000000..294f999 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0029-fc-cron-apply-policy-to-etc-init.d-crond.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 25701662f7149743556bb2d5edb5c69e6de2744f Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Tue, 30 Jun 2020 10:45:57 +0800 | ||
4 | Subject: [PATCH] fc/cron: apply policy to /etc/init.d/crond | ||
5 | |||
6 | Upstream-Status: Inappropriate [embedded specific] | ||
7 | |||
8 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
9 | --- | ||
10 | policy/modules/services/cron.fc | 1 + | ||
11 | 1 file changed, 1 insertion(+) | ||
12 | |||
13 | diff --git a/policy/modules/services/cron.fc b/policy/modules/services/cron.fc | ||
14 | index 827363d88..e8412396d 100644 | ||
15 | --- a/policy/modules/services/cron.fc | ||
16 | +++ b/policy/modules/services/cron.fc | ||
17 | @@ -1,4 +1,5 @@ | ||
18 | /etc/rc\.d/init\.d/(anacron|atd) -- gen_context(system_u:object_r:crond_initrc_exec_t,s0) | ||
19 | +/etc/rc\.d/init\.d/crond -- gen_context(system_u:object_r:crond_initrc_exec_t,s0) | ||
20 | |||
21 | /etc/cron\.d(/.*)? gen_context(system_u:object_r:system_cron_spool_t,s0) | ||
22 | /etc/crontab -- gen_context(system_u:object_r:system_cron_spool_t,s0) | ||
23 | -- | ||
24 | 2.17.1 | ||
25 | |||