From: Serge Hallyn <serge.hallyn@gmail.com>
To: selinux@tycho.nsa.gov
Subject: targeted policy patch
Date: Thu, 19 May 2005 10:11:24 -0500 [thread overview]
Message-ID: <46ce702f050519081136af356@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 623 bytes --]
Hi,
In order to compile the sf.net targeted policy on a gentoo system with
the sf.net checkpolicy, I needed the following patch. It does several
small things, the last of which I expect is actually wrong, but at
least gets me a compiling policy:
1. preserves kernel.te to get its type declaration.
2. fixes what i assume is a type, 'rm -rf domains/misc/used' instead of unused
3. deletes setfiles.fc, since setfiles_exec_t is not declared in the policy
4. adds the unrestricted attribute to the insmod_t domain. This stops
a conflict with the neverallow rule for ~signal -> unconfined_t.
thanks,
-serge
[-- Attachment #2: targeted_nits.patch --]
[-- Type: application/octet-stream, Size: 1883 bytes --]
Index: policy/selinux-policy-targeted.spec
===================================================================
--- policy.orig/selinux-policy-targeted.spec 2005-05-19 09:56:03.000000000 -0500
+++ policy/selinux-policy-targeted.spec 2005-05-19 09:57:28.000000000 -0500
@@ -48,8 +48,10 @@
for i in amanda.te apache.te chkpwd.te cups.te dhcpd.te dictd.te dovecot.te fingerd.te ftpd.te howl.te i18n_input.te init.te initrc.te inetd.te innd.te kerberos.te ktalkd.te ldconfig.te login.te lpd.te mailman.te modutil.te mta.te mysqld.te named.te nscd.te ntpd.te portmap.te postgresql.te privoxy.te radius.te radvd.te rlogind.te rpcd.te rshd.te rsync.te samba.te slapd.te snmpd.te spamd.te squid.te stunnel.te syslogd.te telnetd.te tftpd.te winbind.te ypbind.te ypserv.te zebra.te; do
mv domains/program/unused/$i domains/program/
done
+cp domains/misc/unused/kernel.te domains/misc
rm -rf domains/program/unused
-rm -rf domains/misc/used
+rm -rf domains/misc/unused
+rm file_contexts/program/setfiles.fc
cp -R %{type}/* .
echo "define(\`targeted_policy')" > tunables/tunable.tun
echo "define(\`hide_broken_symptoms')" >> tunables/tunable.tun
Index: policy/domains/program/modutil.te
===================================================================
--- policy.orig/domains/program/modutil.te 2005-05-19 09:56:03.000000000 -0500
+++ policy/domains/program/modutil.te 2005-05-19 09:58:17.000000000 -0500
@@ -70,7 +70,7 @@
# Rules for the insmod_t domain.
#
-type insmod_t, domain, privlog, sysctl_kernel_writer, privmem, privsysmod ifdef(`unlimitedUtils', `, admin, etc_writer, fs_domain, auth_write, privowner, privmodule' )
+type insmod_t, domain, unrestricted, privlog, sysctl_kernel_writer, privmem, privsysmod ifdef(`unlimitedUtils', `, admin, etc_writer, fs_domain, auth_write, privowner, privmodule' )
;
role system_r types insmod_t;
role sysadm_r types insmod_t;
next reply other threads:[~2005-05-19 15:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 15:11 Serge Hallyn [this message]
2005-05-19 15:29 ` targeted policy patch Stephen Smalley
2005-05-19 15:54 ` Serge Hallyn
-- strict thread matches above, loose matches on Subject: below --
2006-12-05 12:42 Russell Coker
2006-12-08 13:39 ` Christopher J. PeBenito
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=46ce702f050519081136af356@mail.gmail.com \
--to=serge.hallyn@gmail.com \
--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.