All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] types.fc
@ 2004-09-24  1:02 Chris PeBenito
  2004-09-28 18:35 ` James Carter
  2004-09-28 18:37 ` James Carter
  0 siblings, 2 replies; 11+ messages in thread
From: Chris PeBenito @ 2004-09-24  1:02 UTC (permalink / raw)
  To: SELinux Mail List


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

Here's an update of types.fc with a some Gentoo-specific entries,
against CVS.  Also enclose a few entries with other distro tunables.

-- 
Chris PeBenito
<pebenito@gentoo.org>
Developer,
Hardened Gentoo Linux
Embedded Gentoo Linux
 
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243
Key fingerprint = B0E6 877A 883F A57A 8E6A  CB00 BC8E E42D E6AF 9243


[-- Attachment #1.2: types.fc.diff --]
[-- Type: text/x-patch, Size: 2917 bytes --]

Index: file_contexts/types.fc
===================================================================
RCS file: /cvsroot/selinux/nsa/selinux-usr/policy/file_contexts/types.fc,v
retrieving revision 1.40
diff -u -r1.40 types.fc
--- file_contexts/types.fc	23 Sep 2004 19:08:59 -0000	1.40
+++ file_contexts/types.fc	24 Sep 2004 01:00:59 -0000
@@ -275,6 +275,11 @@
 /etc/sysconfig/firstboot --	system_u:object_r:etc_runtime_t
 /etc/asound\.state	--	system_u:object_r:etc_runtime_t
 /etc/ptal/ptal-printd-like -- 	system_u:object_r:etc_runtime_t
+ifdef(`distro_gentoo', `
+/etc/profile\.env	--	system_u:object_r:etc_runtime_t
+/etc/csh\.env		--	system_u:object_r:etc_runtime_t
+/etc/env\.d/.*		--	system_u:object_r:etc_runtime_t
+')
 /etc/ld\.so\.cache	--	system_u:object_r:ld_so_cache_t
 /etc/ld\.so\.preload	--	system_u:object_r:ld_so_cache_t
 /etc/yp\.conf.*		--	system_u:object_r:net_conf_t
@@ -303,6 +308,9 @@
 /lib(64)?/security/[^/]*\.so(\.[^/]*)*	--	system_u:object_r:shlib_t
 /lib(64)?/tls/i686/cmov/[^/]*\.so(\.[^/]*)* --	system_u:object_r:shlib_t
 /lib(64)?/tls/i.86/[^/]*\.so(\.[^/]*)* --	system_u:object_r:shlib_t
+ifdef(`distro_gentoo', `
+/lib(64)?/rcscripts/.*\.so.*		--	system_u:object_r:shlib_t
+')
 
 #
 # /sbin
@@ -327,7 +335,9 @@
 /usr/share/man(/.*)?		system_u:object_r:man_t
 /usr/share/mc/extfs/.*	--	system_u:object_r:bin_t
 /usr/share/texmf/teTeX/bin(/.*)?	system_u:object_r:bin_t
+ifdef(`distro_debian', `
 /usr/share/selinux(/.*)?	system_u:object_r:policy_src_t
+')
 
 #
 # /usr/bin
@@ -352,11 +362,14 @@
 /usr/.*glibc.*-linux/lib(64)?/ld[^/]*\.so(\.[^/]*)*	--	system_u:object_r:ld_so_t
 /usr/.*glibc.*-linux/lib(64)?/lib[^/]*\.so(\.[^/]*)*	--	system_u:object_r:shlib_t
 
+#
 # /usr/.*redhat-linux/lib(64)?
 #
+ifdef(`distro_redhat', `
 /usr/.*redhat-linux/lib(64)?(/.*)?	system_u:object_r:lib_t
 /usr/.*redhat-linux/lib(64)?/ld[^/]*\.so(\.[^/]*)*	--	system_u:object_r:ld_so_t
 /usr/.*redhat-linux/lib(64)?/lib[^/]*\.so(\.[^/]*)*	--	system_u:object_r:shlib_t
+')
 
 #
 # /usr/.*linux-libc.*/lib(64)?
@@ -366,6 +379,14 @@
 /usr/.*linux-libc.*/lib(64)?/lib[^/]*\.so(\.[^/]*)*	-- system_u:object_r:shlib_t
 
 #
+# /usr/.*-.*-linux-gnu
+#
+ifdef(`distro_gentoo', `
+/usr/.*-.*-linux-gnu/bin(/.*)?		system_u:object_r:bin_t
+/usr/.*-.*-linux-gnu/gcc-bin/.*(/.*)?	system_u:object_r:bin_t
+')
+
+#
 # /usr/local
 #
 /usr/local/etc(/.*)?		system_u:object_r:etc_t
@@ -493,10 +514,12 @@
 #
 # The Sun Java development kit, RPM install
 #
+ifdef(`distro_redhat', `
 /usr/java/j2.*/bin(/.*)?		system_u:object_r:bin_t
 /usr/java/j2.*/jre/lib(64)?/i386(/.*)?	system_u:object_r:lib_t
 /usr/java/j2.*/jre/lib(64)?/i386(/.*)?[^/]*\.so(\.[^/]*)* -- system_u:object_r:shlib_t
 /usr/java/j2.*/plugin/i386(/.*)?/lib[^/]*\.so(\.[^/]*)* -- system_u:object_r:shlib_t
+')
 
 #
 #  The krb5.conf file is always being tested for writability, so

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [patch] types.fc
@ 2005-01-04  2:59 Greg Norris
  2005-01-04 13:32 ` Russell Coker
  2005-01-12 18:48 ` James Carter
  0 siblings, 2 replies; 11+ messages in thread
From: Greg Norris @ 2005-01-04  2:59 UTC (permalink / raw)
  To: SELinux


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

The attached patch against types.fc is needed by Debian, which currently
supports only a single policy type.  At present "make relabel" mislabels
the binary policy file, which as you can probably imagine is somewhat
inconvenient. ;-)  The patch was generated against current CVS.

Please apply.

[-- Attachment #1.2: types.fc.diff --]
[-- Type: text/plain, Size: 592 bytes --]

--- types.fc.orig	2005-01-03 20:38:22.000000000 -0600
+++ types.fc	2005-01-03 20:49:39.000000000 -0600
@@ -307,7 +307,7 @@
 /etc/security/default_contexts.*	system_u:object_r:default_context_t
 /etc/services		--	system_u:object_r:etc_t
 
-/etc/selinux/[^/]*/policy(/.*)?	system_u:object_r:policy_config_t
+/etc/selinux/([^/]*/)?policy(/.*)?	system_u:object_r:policy_config_t
 /etc/selinux/[^/]*/src(/.*)?	system_u:object_r:policy_src_t
 /etc/selinux/[^/]*/contexts(/.*)?	system_u:object_r:default_context_t
 /etc/selinux/[^/]*/contexts/files(/.*)? system_u:object_r:file_context_t

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2005-01-12 18:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-24  1:02 [patch] types.fc Chris PeBenito
2004-09-28 18:35 ` James Carter
2004-09-28 22:29   ` Colin Walters
2004-09-28 18:37 ` James Carter
2004-09-28 19:42   ` Daniel J Walsh
  -- strict thread matches above, loose matches on Subject: below --
2005-01-04  2:59 Greg Norris
2005-01-04 13:32 ` Russell Coker
2005-01-04 15:17   ` Greg Norris
2005-01-06 11:49     ` Russell Coker
2005-01-12 18:51     ` James Carter
2005-01-12 18:48 ` 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.