1 |
commit: c85529b2e1cd810f266ac3faad133210cc8787e7 |
2 |
Author: Jason Zaman <jason <AT> perfinion <DOT> com> |
3 |
AuthorDate: Sun May 7 13:43:31 2017 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 25 17:03:59 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=c85529b2 |
7 |
|
8 |
dirmngr: Network rules to connect to keyserver |
9 |
|
10 |
type=AVC msg=audit(1494163667.921:24917): avc: denied { name_bind } for pid=15683 comm=636F6E6E2066643D36 src=19321 scontext=staff_u:staff_r:dirmngr_t:s0-s0:c0.c1023 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=udp_socket permissive=0 |
11 |
|
12 |
policy/modules/contrib/dirmngr.te | 6 ++++++ |
13 |
1 file changed, 6 insertions(+) |
14 |
|
15 |
diff --git a/policy/modules/contrib/dirmngr.te b/policy/modules/contrib/dirmngr.te |
16 |
index 17cce56a..b64fc610 100644 |
17 |
--- a/policy/modules/contrib/dirmngr.te |
18 |
+++ b/policy/modules/contrib/dirmngr.te |
19 |
@@ -62,6 +62,12 @@ manage_sock_files_pattern(dirmngr_t, dirmngr_var_run_t, dirmngr_var_run_t) |
20 |
files_pid_filetrans(dirmngr_t, dirmngr_var_run_t, { dir file }) |
21 |
|
22 |
kernel_read_crypto_sysctls(dirmngr_t) |
23 |
+dev_read_rand(dirmngr_t) |
24 |
+sysnet_dns_name_resolve(dirmngr_t) |
25 |
+ |
26 |
+corenet_tcp_connect_pgpkeyserver_port(dirmngr_t) |
27 |
+corenet_udp_bind_generic_node(dirmngr_t) |
28 |
+corenet_udp_bind_all_unreserved_ports(dirmngr_t) |
29 |
|
30 |
files_read_etc_files(dirmngr_t) |