Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/
Date: Wed, 31 Aug 2016 16:38:48
Message-Id: 1471453506.832dbf1a63d2a601396a302297e497109561ca8d.perfinion@gentoo
1 commit: 832dbf1a63d2a601396a302297e497109561ca8d
2 Author: Jason Zaman <jason <AT> perfinion <DOT> com>
3 AuthorDate: Wed Aug 17 17:05:06 2016 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 17 17:05:06 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=832dbf1a
7
8 ntp: fcontext for ntpctl
9
10 ntpctl is hardlinked to ntpd and causes a labelling conflict randomly.
11 Set the fcontext on both to be the same so there are no issues.
12
13 policy/modules/contrib/ntp.fc | 3 +++
14 1 file changed, 3 insertions(+)
15
16 diff --git a/policy/modules/contrib/ntp.fc b/policy/modules/contrib/ntp.fc
17 index 01ae073..96f03d8 100644
18 --- a/policy/modules/contrib/ntp.fc
19 +++ b/policy/modules/contrib/ntp.fc
20 @@ -33,4 +33,7 @@
21 ifdef(`distro_gentoo',`
22 /usr/bin/sntp -- gen_context(system_u:object_r:ntpdate_exec_t,s0)
23 /var/lib/openntpd/ntpd.drift -- gen_context(system_u:object_r:ntp_drift_t,s0)
24 +
25 +# hardlinked to ntpd
26 +/usr/sbin/ntpctl -- gen_context(system_u:object_r:ntpd_exec_t,s0)
27 ')