Gentoo Archives: gentoo-commits

From: Sven Vermeulen <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/
Date: Thu, 29 Jan 2015 20:51:35
Message-Id: 1422564571.b3c2077a4cbaefff55da8c50baf3a8e24c1f0c67.swift@gentoo
1 commit: b3c2077a4cbaefff55da8c50baf3a8e24c1f0c67
2 Author: Steve Lawrence <slawrence <AT> tresys <DOT> com>
3 AuthorDate: Tue Dec 2 16:27:14 2014 +0000
4 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 29 20:49:31 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=b3c2077a
7
8 Remove optional else block for dhcp ping
9
10 Else blocks with optional statements are not supported in CIL.
11 Currently, if the pp to CIL compiler comes across one of these in a pp
12 module, it just drops the block and outputs a warning. Fortunately,
13 these are very rare. In fact, this is the only place in refpolicy where
14 an optional else block is used, and it is not clear if it is even
15 needed. This patch is untested, and is more to spark discussions to see
16 if there are any thoughts about whether or not this piece of policy is
17 needed.
18
19 Signed-off-by: Steve Lawrence <slawrence <AT> tresys.com>
20
21 ---
22 policy/modules/system/sysnetwork.te | 3 ---
23 1 file changed, 3 deletions(-)
24
25 diff --git a/policy/modules/system/sysnetwork.te b/policy/modules/system/sysnetwork.te
26 index e5c63d6..0e8ff59 100644
27 --- a/policy/modules/system/sysnetwork.te
28 +++ b/policy/modules/system/sysnetwork.te
29 @@ -197,9 +197,6 @@ optional_policy(`
30 optional_policy(`
31 netutils_run_ping(dhcpc_t, dhcpc_roles)
32 netutils_run(dhcpc_t, dhcpc_roles)
33 -',`
34 - allow dhcpc_t self:capability setuid;
35 - allow dhcpc_t self:rawip_socket create_socket_perms;
36 ')
37
38 optional_policy(`