Skip to contentSkip to conversation

selinux-policy-mls is now available for your testing pleasure.

DISCUSSION Daniel J Walsh 4 participants 11 messages Apr 15, 2005 – Apr 21, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

Based off STRICT policy.

ftp://people.redhat.com/dwalsh/SELinux/Fedora/selinux-policy-mls-*

It is not in Rawhide, yet but I will provide it via my people page.

This has not been tested.

I have not got an MLS machine up and running yet.

Dan

Signature · 4 lines
--
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.
#1 lore raw
Quoted 8 lines · Daniel J Walsh

Based off STRICT policy.

ftp://people.redhat.com/dwalsh/SELinux/Fedora/selinux-policy-mls-*

It is not in Rawhide, yet but I will provide it via my people page.

This has not been tested.
I have not got an MLS machine up and running yet.

Since I have been looking into this lately I figured I would give it a whirl and report back my experiences, here they are:

1 Installed FC4T2 via the 'Workstation' option using two partitions,
one for '/' and one for swap
2 Applied all of the related updates via YUM (done on April 19th) 3 Installed the MLS policy (version 1.23-11-2) but continued to use
the default targeted policy
4 Rebooted into kernel 2.6.11-1.1240_FC4smp to verify everything was
OK (it was)
5 Enabled the MLS policy via the Fedora GUI tool and ensured that the
relabel option was selected
6 Rebooted with the new MLS policy only to have the machine lock,
it wasn't able to execute something related to init (I should have taken better notes here - sorry)
7 Rebooted (the hard way, Ctrl-Alt-Del only resulted in more AVC
denial messages) with 'selinux=0 single'
8 Unmounted '/proc' and '/sys' then relabeled them to
'system_u:object_r:file_t:s0' and 'user_u:object_r:file_t:s0' respectively; also relabeled '/var/lib/nfs/rpc_pipefs' to 'user_u:object_r:var_lib_nfs_t:s0'
9 Rebooted with 'enforcing=0 single' and this time the FS-wide
relabel happened as part of the boot process
10 Rebooted with 'single' and noticed lots of permission denied
messages pertaining to '/dev/.udevdb/*' files
11 Switched to runlevel 3 and saw a variety of AVC denial messages but
things went mostly to plan and I had a login prompt which appeared to work as expected
12 Rebooted normally, i.e. 'rhgb quiet 5', and X failed to start

I'm going to keep playing with this system, but I thought some people here might want to see a quick little report on how the MLS policy RPM worked.

Signature · 8 lines
. paul moore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. [email protected]                                      hewlett packard
. (603) 884-5056                                          linux security

--
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
Quoted 5 lines · Paul Moore

5 Enabled the MLS policy via the Fedora GUI tool and ensured that the
relabel option was selected
6 Rebooted with the new MLS policy only to have the machine lock,
it wasn't able to execute something related to init (I should have taken better notes here - sorry)

You still need to perform the manual mointpoint relabeling per the MLS readme.

Quoted 2 lines

10 Rebooted with 'single' and noticed lots of permission denied
messages pertaining to '/dev/.udevdb/*' files

Odd, I haven't seen that.

Did you update to all of the new SELinux packages in Dan's FTP directory?

Quoted 1 line

12 Rebooted normally, i.e. 'rhgb quiet 5', and X failed to start

Haven't tried X yet, not sure it's supposed to work.

- James

Signature · 9 lines
James Morris
<[email protected]>



--
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.
#3 lore raw
Quoted 3 lines · James Morris
Quoted 1 line

12 Rebooted normally, i.e. 'rhgb quiet 5', and X failed to start

Haven't tried X yet, not sure it's supposed to work.

Works for me. Of course, you do need to have the allow_execmem=1 boolean enabled for X to run, but that is independent of MLS. /usr/sbin/setsebool -P allow_execmem=1. Did the RPM include a booleans file?

Signature · 8 lines
Stephen Smalley <[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.
#4 lore raw
Quoted 11 lines · Stephen Smalley
Quoted 3 lines · James Morris
Quoted 1 line

12 Rebooted normally, i.e. 'rhgb quiet 5', and X failed to start

Haven't tried X yet, not sure it's supposed to work.

Works for me. Of course, you do need to have the allow_execmem=1 boolean enabled for X to run, but that is independent of MLS. /usr/sbin/setsebool -P allow_execmem=1. Did the RPM include a booleans file?

Yes it did, however, the allow_execmem entry was missing. I added it via setsebool and verified that it was in the booleans.local file and rebooted to see gdm startup this time but I could not login - according to the xsession-errors file Xlib failed to connect to the display, which was running on ":0.0".

Signature · 8 lines
. paul moore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. [email protected]                                      hewlett packard
. (603) 884-5056                                          linux security

--
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.
#5 lore raw
Quoted 10 lines · Paul Moore
Quoted 8 lines · Stephen Smalley
Quoted 4 lines · James Morris
Quoted 1 line

12 Rebooted normally, i.e. 'rhgb quiet 5', and X failed to start

Haven't tried X yet, not sure it's supposed to work.

Quoted 8 lines
Quoted 5 lines

Works for me. Of course, you do need to have the allow_execmem=1 boolean enabled for X to run, but that is independent of MLS. /usr/sbin/setsebool -P allow_execmem=1. Did the RPM include a booleans file?

Yes it did, however, the allow_execmem entry was missing. I added it via setsebool and verified that it was in the booleans.local file and rebooted to see gdm startup this time but I could not login - according to the xsession-errors file Xlib failed to connect to the display, which was running on ":0.0".

I was playing with this some more and a regular user was allowed to login via gdm - just not root.

Signature · 8 lines
. paul moore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. [email protected]                                      hewlett packard
. (603) 884-5056                                          linux security

--
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.
#6 lore raw
Quoted 2 lines · Paul Moore

I was playing with this some more and a regular user was allowed to login via gdm - just not root.

I'd call that a security feature, not a bug ;)

Signature · 8 lines
Stephen Smalley <[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.
#7 lore raw
In reply to Paul Moore
Quoted 28 lines · Paul Moore
Quoted 8 lines · Daniel J Walsh

Based off STRICT policy.

ftp://people.redhat.com/dwalsh/SELinux/Fedora/selinux-policy-mls-*

It is not in Rawhide, yet but I will provide it via my people page.

This has not been tested.
I have not got an MLS machine up and running yet.

Since I have been looking into this lately I figured I would give it a whirl and report back my experiences, here they are:

1 Installed FC4T2 via the 'Workstation' option using two partitions,
one for '/' and one for swap
2 Applied all of the related updates via YUM (done on April 19th) 3 Installed the MLS policy (version 1.23-11-2) but continued to use
the default targeted policy
4 Rebooted into kernel 2.6.11-1.1240_FC4smp to verify everything was
OK (it was)
5 Enabled the MLS policy via the Fedora GUI tool and ensured that the
relabel option was selected
6 Rebooted with the new MLS policy only to have the machine lock,
it wasn't able to execute something related to init (I should have taken better notes here - sorry)
7 Rebooted (the hard way, Ctrl-Alt-Del only resulted in more AVC
denial messages) with 'selinux=0 single'

Quoted 8 lines

8 Unmounted '/proc' and '/sys' then relabeled them to
'system_u:object_r:file_t:s0' and 'user_u:object_r:file_t:s0' respectively; also relabeled '/var/lib/nfs/rpc_pipefs' to 'user_u:object_r:var_lib_nfs_t:s0'
9 Rebooted with 'enforcing=0 single' and this time the FS-wide
relabel happened as part of the boot process
10 Rebooted with 'single' and noticed lots of permission denied
messages pertaining to '/dev/.udevdb/*' files

udevdb/* files should be labeled udev_tbl_t Accordiung to policy

Quoted 7 lines

11 Switched to runlevel 3 and saw a variety of AVC denial messages but
things went mostly to plan and I had a login prompt which appeared to work as expected
12 Rebooted normally, i.e. 'rhgb quiet 5', and X failed to start

I'm going to keep playing with this system, but I thought some people here might want to see a quick little report on how the MLS policy RPM worked.

Could you clear you /var/log/messages or /var/log/audit/audit.log file. Reboot and then send the AVC messages.

Dan

Signature · 4 lines
--
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.
#8 lore raw
Quoted 42 lines · Daniel J Walsh
Quoted 29 lines · Paul Moore
Quoted 8 lines · Daniel J Walsh

Based off STRICT policy.

ftp://people.redhat.com/dwalsh/SELinux/Fedora/selinux-policy-mls-*

It is not in Rawhide, yet but I will provide it via my people page.

This has not been tested.
I have not got an MLS machine up and running yet.

Since I have been looking into this lately I figured I would give it a whirl and report back my experiences, here they are:

1 Installed FC4T2 via the 'Workstation' option using two partitions,
one for '/' and one for swap
2 Applied all of the related updates via YUM (done on April 19th) 3 Installed the MLS policy (version 1.23-11-2) but continued to use
the default targeted policy
4 Rebooted into kernel 2.6.11-1.1240_FC4smp to verify everything was
OK (it was)
5 Enabled the MLS policy via the Fedora GUI tool and ensured that the
relabel option was selected
6 Rebooted with the new MLS policy only to have the machine lock,
it wasn't able to execute something related to init (I should have taken better notes here - sorry)
7 Rebooted (the hard way, Ctrl-Alt-Del only resulted in more AVC
denial messages) with 'selinux=0 single'

Quoted 8 lines

8 Unmounted '/proc' and '/sys' then relabeled them to
'system_u:object_r:file_t:s0' and 'user_u:object_r:file_t:s0' respectively; also relabeled '/var/lib/nfs/rpc_pipefs' to 'user_u:object_r:var_lib_nfs_t:s0'
9 Rebooted with 'enforcing=0 single' and this time the FS-wide
relabel happened as part of the boot process
10 Rebooted with 'single' and noticed lots of permission denied
messages pertaining to '/dev/.udevdb/*' files

udevdb/* files should be labeled udev_tbl_t Accordiung to policy

Quoted 9 lines
Quoted 7 lines

11 Switched to runlevel 3 and saw a variety of AVC denial messages but
things went mostly to plan and I had a login prompt which appeared to work as expected
12 Rebooted normally, i.e. 'rhgb quiet 5', and X failed to start

I'm going to keep playing with this system, but I thought some people here might want to see a quick little report on how the MLS policy RPM worked.

Could you clear you /var/log/messages or /var/log/audit/audit.log file. Reboot and then send the AVC messages.

See attached. The messages are from boot up to an including trying to login as root via gdm.

Signature · 3 lines
. paul moore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. [email protected]                                      hewlett packard
. (603) 884-5056                                          linux security
#9 lore raw
In reply to Daniel J Walsh
Quoted 9 lines · Daniel J Walsh

Based off STRICT policy.

ftp://people.redhat.com/dwalsh/SELinux/Fedora/selinux-policy-mls-*

It is not in Rawhide, yet but I will provide it via my people page.

This has not been tested.
I have not got an MLS machine up and running yet.

In version 1.23.12-1 of MLS policy RPM there is a problem with the file contexts for '/sbin/arping' - there are entries for both 'system_u:object_r:traceroute_exec_t:s0' and 'system_u:object_r:netutils_exec_t:s0'. I assume it should be the latter of the two?

Signature · 8 lines
. paul moore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. [email protected]                                      hewlett packard
. (603) 884-5056                                          linux security

--
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.
#10 lore raw
Quoted 6 lines · Paul Moore
Quoted 4 lines · Daniel J Walsh

Based off STRICT policy.

ftp://people.redhat.com/dwalsh/SELinux/Fedora/selinux-policy-mls-*

Quoted 8 lines
Quoted 5 lines

It is not in Rawhide, yet but I will provide it via my people page.

This has not been tested.
I have not got an MLS machine up and running yet.

In version 1.23.12-1 of MLS policy RPM there is a problem with the file contexts for '/sbin/arping' - there are entries for both 'system_u:object_r:traceroute_exec_t:s0' and 'system_u:object_r:netutils_exec_t:s0'. I assume it should be the latter of the two?

I'm sorry, disregard that - I didn't see the updated RPM with this problem fixed.

Signature · 8 lines
. paul moore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. [email protected]                                      hewlett packard
. (603) 884-5056                                          linux security

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