Skip to contentSkip to conversation

gentoo diff for snort

PATCH petre rodan 2 participants 2 messages Nov 15, 2004 – Nov 18, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi,

diff needed by snort 2.2.0

bye,
peter

Signature · 4 lines
petre rodan
<[email protected]>
Developer,
Hardened Gentoo Linux
root/cvs/cvs.gentoo.org/gentoo-projects/selinux/snort/snort.fc renamed from root/public_html/policy/nsa/file_contexts/program/snort.fc +1 -1
@@ -1,4 +1,4 @@
 # SNORT
-/usr/sbin/snort	--	system_u:object_r:snort_exec_t
+/usr/(s)?bin/snort --	system_u:object_r:snort_exec_t
 /etc/snort(/.*)?	system_u:object_r:snort_etc_t
 /var/log/snort(/.*)?	system_u:object_r:snort_log_t
root/cvs/cvs.gentoo.org/gentoo-projects/selinux/snort/snort.te renamed from root/public_html/policy/nsa/domains/program/unused/snort.te +5 -2
@@ -7,7 +7,8 @@
 
 daemon_domain(snort)
 
-log_domain(snort)
+logdir_domain(snort)
+allow snort_t snort_log_t:dir create;
 can_network(snort_t)
 type snort_etc_t, file_type, sysadmfile;
 
@@ -17,7 +18,7 @@
 # use iptable netlink
 allow snort_t self:netlink_route_socket { bind create getattr nlmsg_read read write };
 allow snort_t self:packet_socket create_socket_perms;
-allow snort_t self:capability { setgid setuid net_admin net_raw };
+allow snort_t self:capability { setgid setuid net_admin net_raw dac_override };
 
 r_dir_file(snort_t, snort_etc_t)
 allow snort_t etc_t:file { getattr read };
@@ -28,3 +29,5 @@
 
 # for start script
 allow initrc_t snort_etc_t:file read;
+
+dontaudit snort_t { etc_runtime_t proc_t }:file read;
#1 lore raw

Merged.

Quoted 6 lines · petre rodan

Hi,

diff needed by snort 2.2.0

bye,
peter

Signature · 7 lines
James Carter <[email protected]>
National Security Agency

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.