Skip to contentSkip to conversation

file context patches

PATCH Mark Huth 3 participants 3 messages Sep 24, 2004 SELinux security module

lore
Share & tools
lore

Mark Huth

author
#0 lore raw

Hi

I'm currently experimenting with running User Mode Linux under SELinux (on Fedora) and found a small change that needs to be made to the uml.fc file. See the included patch. Also found some updates that need to be made to the zebra.fc and nagios.fc files.

Now for some other stuff:

I was wondering what are the differences between policy 17 and policy 18? I found some info on the hardened gentoo site about the policies up to 17 but see we are now up to 18.

Also, I've just done a yum update against the development tree, relabelled and tried booting into SELinux enforcing mode but it failed with heaps of denied messages regarding tmpfs_t.
A couple of other errors of note were:

/sbin/restorecon get context on /dev failed: 'Operation not supported'
/sbin/restorecon get context on /dev/null failed: 'Operation not supported'

Soon after that the boot process stops with a 'Give root password for maintainence' message. Any ideas on what might be wrong?

Thanks

program/nagios.fc renamed from etc/selinux/strict/src/policy/file_contexts/program/nagios.fc +6 -0
diff -u /etc/selinux/strict/src/policy/file_contexts/program/nagios.fc file_contexts/program/nagios.fc
@@ -5,3 +5,9 @@
 /var/log/netsaint(/.*)?			system_u:object_r:nagios_log_t
 /usr/lib(64)?/netsaint/plugins(/.*)?		system_u:object_r:bin_t
 /usr/lib(64)?/cgi-bin/netsaint/.+	--	system_u:object_r:nagios_cgi_exec_t
+# nagios
+/usr/bin/nagios			--	system_u:object_r:nagios_exec_t
+/etc/nagios(/.*)?			system_u:object_r:nagios_etc_t
+/var/log/nagios(/.*)?			system_u:object_r:nagios_log_t
+/usr/lib(64)?/nagios/plugins(/.*)?	system_u:object_r:bin_t
+/usr/lib(64)?/nagios/cgi/.+	--	system_u:object_r:nagios_cgi_exec_t
program/uml.fc renamed from etc/selinux/strict/src/policy/file_contexts/program/uml.fc +1 -1
diff -u /etc/selinux/strict/src/policy/file_contexts/program/uml.fc file_contexts/program/uml.fc
@@ -1,4 +1,4 @@
 # User Mode Linux
 /usr/bin/uml_switch	--	system_u:object_r:uml_switch_exec_t
 /var/run/uml-utilities(/.*)?	system_u:object_r:uml_switch_var_run_t
-/home/[^/]+/.uml(/.*)?		system_u:object_r:user_uml_rw_t
+HOME_DIR/\.uml(/.*)?		system_u:object_r:ROLE_uml_rw_t
program/zebra.fc renamed from etc/selinux/strict/src/policy/file_contexts/program/zebra.fc +6 -0
diff -u /etc/selinux/strict/src/policy/file_contexts/program/zebra.fc file_contexts/program/zebra.fc
@@ -5,3 +5,9 @@
 /etc/zebra(/.*)?		system_u:object_r:zebra_conf_t
 /var/run/.zserv		-s	system_u:object_r:zebra_var_run_t
 /var/run/.zebra		-s	system_u:object_r:zebra_var_run_t
+# Quagga
+/usr/sbin/rip.*  	--	system_u:object_r:zebra_exec_t
+/usr/sbin/ospf.*  	--	system_u:object_r:zebra_exec_t
+/etc/quagga(/.*)?		system_u:object_r:zebra_conf_t
+/var/log/quagga(/.*)?		system_u:object_r:zebra_log_t
+/var/run/quagga(/.*)?		system_u:object_r:zebra_var_run_t
#1 lore raw
Quoted 2 lines · Mark Huth

I was wondering what are the differences between policy 17 and policy 18?

what i know is that policy files are in a binary format suitable for upload to the kernel: new well-known SIDs (security ids) get added, the version has to change.

Quoted 3 lines

Also, I've just done a yum update against the development tree, relabelled and tried booting into SELinux enforcing mode but it failed with heaps of denied messages regarding tmpfs_t.

ah... tmpfs_t has only recently had support for extended attributes added.

there are a couple of people from gentoo on this list who will know more about what's going on / the state of play wrt gentoo/hardened.

l.

Signature · 13 lines
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
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.
#2 lore raw
In reply to Mark Huth
Quoted 3 lines · Mark Huth

I was wondering what are the differences between policy 17 and policy 18? I found some info on the hardened gentoo site about the policies up to 17 but see we are now up to 18.

Fine-grained netlink sockets were added in v18.

Signature · 10 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150



--
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.