summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy/0018-fc-ntp-apply-policy-to-ntpd-alternatives.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0018-fc-ntp-apply-policy-to-ntpd-alternatives.patch')
-rw-r--r--recipes-security/refpolicy/refpolicy/0018-fc-ntp-apply-policy-to-ntpd-alternatives.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0018-fc-ntp-apply-policy-to-ntpd-alternatives.patch b/recipes-security/refpolicy/refpolicy/0018-fc-ntp-apply-policy-to-ntpd-alternatives.patch
new file mode 100644
index 0000000..1d902f2
--- /dev/null
+++ b/recipes-security/refpolicy/refpolicy/0018-fc-ntp-apply-policy-to-ntpd-alternatives.patch
@@ -0,0 +1,27 @@
1From ee9c65a2d3db145309bd2898223f8229915c304c Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Fri, 15 Nov 2019 10:45:23 +0800
4Subject: [PATCH] fc/ntp: apply policy to ntpd alternatives
5
6Upstream-Status: Inappropriate [embedded specific]
7
8Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
9---
10 policy/modules/services/ntp.fc | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/policy/modules/services/ntp.fc b/policy/modules/services/ntp.fc
14index 9243f3304..e13cf6a9b 100644
15--- a/policy/modules/services/ntp.fc
16+++ b/policy/modules/services/ntp.fc
17@@ -25,6 +25,7 @@
18 /usr/lib/systemd/systemd-timesyncd -- gen_context(system_u:object_r:ntpd_exec_t,s0)
19
20 /usr/sbin/ntpd -- gen_context(system_u:object_r:ntpd_exec_t,s0)
21+/usr/sbin/ntpd\.ntp -- gen_context(system_u:object_r:ntpd_exec_t,s0)
22 /usr/sbin/ntpdate -- gen_context(system_u:object_r:ntpdate_exec_t,s0)
23 /usr/sbin/sntp -- gen_context(system_u:object_r:ntpdate_exec_t,s0)
24
25--
262.25.1
27