All of lore.kernel.org
 help / color / mirror / Atom feed
* gentoo diff for snmpd
@ 2004-11-15 16:20 petre rodan
  2004-11-16  8:16 ` Thomas Bleher
  2004-11-18 20:01 ` James Carter
  0 siblings, 2 replies; 8+ messages in thread
From: petre rodan @ 2004-11-15 16:20 UTC (permalink / raw)
  To: selinux


[-- Attachment #1.1: Type: text/plain, Size: 240 bytes --]


Hi,

gentoo as a special context for /proc/net:
genfscon proc /net  system_u:object_r:proc_net_t

so a small diff is needed for the snmpd policy. attached.

bye,
peter

-- 
petre rodan
<kaiowas@gentoo.org>
Developer,
Hardened Gentoo Linux

[-- Attachment #1.2: selinux-snmpd.diff --]
[-- Type: text/plain, Size: 1124 bytes --]

--- /root/public_html/policy/nsa/domains/program/unused/snmpd.te	2004-11-08 11:44:39.000000000 +0200
+++ /root/cvs/cvs.gentoo.org/gentoo-projects/selinux/snmpd/snmpd.te	2004-11-09 10:03:15.000000000 +0200
@@ -70,6 +70,12 @@
 ')
 allow snmpd_t var_lib_nfs_t:dir search;
 
+ifdef(`distro_gentoo', `
+# needed in order to retrieve net traffic data
+allow snmpd_t proc_net_t:dir search;
+allow snmpd_t proc_net_t:file r_file_perms;
+')
+
 dontaudit snmpd_t domain:dir { getattr search };
 
 dontaudit snmpd_t selinux_config_t:dir search;
--- /root/public_html/policy/nsa/file_contexts/program/snmpd.fc	2004-10-21 12:56:53.000000000 +0300
+++ /root/cvs/cvs.gentoo.org/gentoo-projects/selinux/snmpd/snmpd.fc	2004-10-28 11:53:07.000000000 +0300
@@ -1,6 +1,7 @@
 # snmpd
 /usr/sbin/snmp(trap)?d	--	system_u:object_r:snmpd_exec_t
 /var/lib/snmp(/.*)?		system_u:object_r:snmpd_var_lib_t
+/var/lib/net-snmp(/.*)?	system_u:object_r:snmpd_var_lib_t
 /etc/snmp/snmp(trap)?d\.conf -- system_u:object_r:snmpd_etc_t
 /usr/share/snmp/mibs/\.index -- system_u:object_r:snmpd_var_lib_t
 /var/run/snmpd\.pid	--	system_u:object_r:snmpd_var_run_t

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-11-22 13:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-15 16:20 gentoo diff for snmpd petre rodan
2004-11-16  8:16 ` Thomas Bleher
2004-11-16  9:27   ` petre rodan
2004-11-18 20:01 ` James Carter
2004-11-19 13:41   ` petre rodan
2004-11-19 19:50     ` James Carter
2004-11-21  5:08       ` Daniel J Walsh
2004-11-22 13:22         ` James Carter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.