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/services/
Date: Tue, 13 Oct 2020 03:02:10
Message-Id: 1602450880.f08d86da1f32efeee3a182aec308abfd13eeac95.perfinion@gentoo
1 commit: f08d86da1f32efeee3a182aec308abfd13eeac95
2 Author: Dave Sugar <dsugar <AT> tresys <DOT> com>
3 AuthorDate: Thu Oct 1 16:19:54 2020 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 21:14:40 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=f08d86da
7
8 Allow snmpd to read hwdata
9
10 Oct 1 16:11:49 localhost audispd: node=virtual type=AVC msg=audit(1601568708.950:2198): avc: denied { getattr } for pid=4114 comm="snmpd" path="/usr/share/hwdata/pci.ids" dev="dm-0" ino=76435 scontext=system_u:system_r:snmpd_t:s0 tcontext=system_u:object_r:hwdata_t:s0 tclass=file permissive=1
11 Oct 1 16:11:49 localhost audispd: node=virtual type=AVC msg=audit(1601568708.950:2197): avc: denied { read } for pid=4114 comm="snmpd" name="pci.ids" dev="dm-0" ino=76435 scontext=system_u:system_r:snmpd_t:s0 tcontext=system_u:object_r:hwdata_t:s0 tclass=file permissive=1
12 Oct 1 16:11:49 localhost audispd: node=virtual type=AVC msg=audit(1601568708.950:2197): avc: denied { open } for pid=4114 comm="snmpd" path="/usr/share/hwdata/pci.ids" dev="dm-0" ino=76435 scontext=system_u:system_r:snmpd_t:s0 tcontext=system_u:object_r:hwdata_t:s0 tclass=file permissive=1
13
14 Signed-off-by: Dave Sugar <dsugar <AT> tresys.com>
15 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
16
17 policy/modules/services/snmp.te | 1 +
18 1 file changed, 1 insertion(+)
19
20 diff --git a/policy/modules/services/snmp.te b/policy/modules/services/snmp.te
21 index 97c457e2..c61721c5 100644
22 --- a/policy/modules/services/snmp.te
23 +++ b/policy/modules/services/snmp.te
24 @@ -108,6 +108,7 @@ init_dontaudit_write_utmp(snmpd_t)
25
26 logging_send_syslog_msg(snmpd_t)
27
28 +miscfiles_read_hwdata(snmpd_t)
29 miscfiles_read_localization(snmpd_t)
30
31 seutil_dontaudit_search_config(snmpd_t)