All of lore.kernel.org
 help / color / mirror / Atom feed
From: petre rodan <kaiowas@gentoo.org>
To: selinux@tycho.nsa.gov
Subject: gentoo diff for snort
Date: Mon, 15 Nov 2004 18:24:16 +0200	[thread overview]
Message-ID: <4198D830.6050002@gentoo.org> (raw)


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

Hi,

diff needed by snort 2.2.0

bye,
peter

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

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

--- /root/public_html/policy/nsa/file_contexts/program/snort.fc	2003-11-28 16:57:12.000000000 +0200
+++ /root/cvs/cvs.gentoo.org/gentoo-projects/selinux/snort/snort.fc	2004-10-28 17:00:48.000000000 +0300
@@ -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/public_html/policy/nsa/domains/program/unused/snort.te	2004-06-25 23:02:24.000000000 +0300
+++ /root/cvs/cvs.gentoo.org/gentoo-projects/selinux/snort/snort.te	2004-10-28 16:58:33.000000000 +0300
@@ -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;

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

             reply	other threads:[~2004-11-15 16:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-15 16:24 petre rodan [this message]
2004-11-18 20:01 ` gentoo diff for snort James Carter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4198D830.6050002@gentoo.org \
    --to=kaiowas@gentoo.org \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.