Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/system/, policy/modules/kernel/
Date: Mon, 27 Feb 2017 11:40:12
Message-Id: 1488191880.4cad32c069d96e1f34d90a2fc05d3d05b65c8ae3.perfinion@gentoo
1 commit: 4cad32c069d96e1f34d90a2fc05d3d05b65c8ae3
2 Author: Chris PeBenito <pebenito <AT> ieee <DOT> org>
3 AuthorDate: Sat Feb 25 16:20:19 2017 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 10:38:00 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=4cad32c0
7
8 Network daemon patches from Russell Coker.
9
10 policy/modules/kernel/corenetwork.te.in | 6 +++---
11 policy/modules/system/iptables.te | 4 +++-
12 policy/modules/system/sysnetwork.fc | 2 ++
13 policy/modules/system/sysnetwork.te | 6 +++++-
14 4 files changed, 13 insertions(+), 5 deletions(-)
15
16 diff --git a/policy/modules/kernel/corenetwork.te.in b/policy/modules/kernel/corenetwork.te.in
17 index 68aba14c..b3db0139 100644
18 --- a/policy/modules/kernel/corenetwork.te.in
19 +++ b/policy/modules/kernel/corenetwork.te.in
20 @@ -1,4 +1,4 @@
21 -policy_module(corenetwork, 1.23.2)
22 +policy_module(corenetwork, 1.23.3)
23
24 ########################################
25 #
26 @@ -216,7 +216,7 @@ network_port(pop, tcp,106,s0, tcp,109,s0, tcp,110,s0, tcp,143,s0, tcp,220,s0, tc
27 network_port(portmap, udp,111,s0, tcp,111,s0)
28 network_port(postfix_policyd, tcp,10031,s0)
29 network_port(postgresql, tcp,5432,s0)
30 -network_port(postgrey, tcp,60000,s0)
31 +network_port(postgrey, tcp,10023,s0, tcp,60000,s0)
32 network_port(pptp, tcp,1723,s0, udp,1723,s0)
33 network_port(prelude, tcp,4690,s0, udp,4690,s0)
34 network_port(presence, tcp,5298-5299,s0, udp,5298-5299,s0)
35 @@ -236,7 +236,7 @@ network_port(repository, tcp, 6363, s0)
36 network_port(ricci, tcp,11111,s0, udp,11111,s0)
37 network_port(ricci_modcluster, tcp,16851,s0, udp,16851,s0)
38 network_port(rlogind, tcp,513,s0)
39 -network_port(rndc, tcp,953,s0, udp,953,s0)
40 +network_port(rndc, tcp,953,s0, udp,953,s0, tcp,8953,s0, udp,8953,s0)
41 network_port(router, udp,520,s0, udp,521,s0, tcp,521,s0)
42 network_port(rsh, tcp,514,s0)
43 network_port(rsync, tcp,873,s0, udp,873,s0)
44
45 diff --git a/policy/modules/system/iptables.te b/policy/modules/system/iptables.te
46 index 0380f55b..e8063b99 100644
47 --- a/policy/modules/system/iptables.te
48 +++ b/policy/modules/system/iptables.te
49 @@ -1,4 +1,4 @@
50 -policy_module(iptables, 1.18.1)
51 +policy_module(iptables, 1.18.2)
52
53 ########################################
54 #
55 @@ -153,4 +153,6 @@ optional_policy(`
56
57 optional_policy(`
58 udev_read_db(iptables_t)
59 + # this is for iptables_t to inherit a file hande from xen vif-bridge
60 + udev_manage_pid_files(iptables_t)
61 ')
62
63 diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc
64 index e887076b..817d620b 100644
65 --- a/policy/modules/system/sysnetwork.fc
66 +++ b/policy/modules/system/sysnetwork.fc
67 @@ -58,6 +58,7 @@ ifdef(`distro_redhat',`
68 /var/lib/dhcp3? -d gen_context(system_u:object_r:dhcp_state_t,s0)
69 /var/lib/dhcp3?/dhclient.* gen_context(system_u:object_r:dhcpc_state_t,s0)
70 /var/lib/dhcpcd(/.*)? gen_context(system_u:object_r:dhcpc_state_t,s0)
71 +/var/lib/dhcpv6(/.*)? gen_context(system_u:object_r:dhcpc_state_t,s0)
72 /var/lib/dhclient(/.*)? gen_context(system_u:object_r:dhcpc_state_t,s0)
73 /var/lib/wifiroamd(/.*)? gen_context(system_u:object_r:dhcpc_state_t,s0)
74
75 @@ -70,6 +71,7 @@ ifdef(`distro_gentoo',`
76
77 ifdef(`distro_debian',`
78 /run/network(/.*)? gen_context(system_u:object_r:net_conf_t,s0)
79 +/var/run/resolvconf/.* -- gen_context(system_u:object_r:net_conf_t,s0)
80 ')
81
82 ifdef(`distro_gentoo',`
83
84 diff --git a/policy/modules/system/sysnetwork.te b/policy/modules/system/sysnetwork.te
85 index caec3181..d21a2d64 100644
86 --- a/policy/modules/system/sysnetwork.te
87 +++ b/policy/modules/system/sysnetwork.te
88 @@ -1,4 +1,4 @@
89 -policy_module(sysnetwork, 1.20.3)
90 +policy_module(sysnetwork, 1.20.4)
91
92 ########################################
93 #
94 @@ -244,6 +244,10 @@ optional_policy(`
95 ')
96
97 optional_policy(`
98 + samba_manage_config(dhcpc_t)
99 +')
100 +
101 +optional_policy(`
102 seutil_sigchld_newrole(dhcpc_t)
103 seutil_dontaudit_search_config(dhcpc_t)
104 ')