Skip to contentSkip to conversation

With the release of Fedora Core 7 I have bumped the policy version in Rawhide

DISCUSSION Daniel J Walsh 2 participants 3 messages May 31, 2007 – Jun 1, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

Tomorrows rawhide will have selinux-policy-3.0.1.

This policy is the first release of the merged (strict/targeted) policy. As such there is no longer a selinux-policy-strict. This is real experimental and I expect some problems. I have been running it here for a couple of days.

With this policy you can install the strict type users staff_u, user_u, sysadm_u. As well as the unonfined_u/system_u. You should be able to mix and match the users. So if you want to setup a Guest X-Windows login you would set it up with a user of user_u:user_r:user_t. And you might have your regular login as system_u:unconfined_r:unconfined_t.

The idea is if you remove the unconfined policy package, you will be basically running in strict policy mode. (This has not been tested.)

Dan

--
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 7 lines · Daniel J Walsh

Tomorrows rawhide will have selinux-policy-3.0.1.

This policy is the first release of the merged (strict/targeted) policy. As such there is no longer a selinux-policy-strict. This is real experimental and I expect some problems. I have been running it here for a couple of days.

Quoted 5 lines

With this policy you can install the strict type users staff_u, user_u, sysadm_u. As well as the unonfined_u/system_u. You should be able to mix and match the users. So if you want to setup a Guest X-Windows login you would set it up with a user of user_u:user_r:user_t. And you might have your regular login as system_u:unconfined_r:unconfined_t.

As a side note is that an unconfined_u seuser is going to be added, which will be the appropriate seuser to use for unconfined users. So eventually you'll end up with unconfined_u:unconfined_r:unconfined_t.

Quoted 2 lines

The idea is if you remove the unconfined policy package, you will be basically running in strict policy mode. (This has not been tested.)

Actually you also have to take out anaconda and firstboot since they unconditionally depend on unconfined. Otherwise it should work.

Signature · 9 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.
#2 lore raw
Quoted 15 lines · Christopher J. PeBenito
Quoted 6 lines · Daniel J Walsh

Tomorrows rawhide will have selinux-policy-3.0.1.

This policy is the first release of the merged (strict/targeted) policy. As such there is no longer a selinux-policy-strict. This is real experimental and I expect some problems. I have been running it here for a couple of days.

With this policy you can install the strict type users staff_u, user_u, sysadm_u. As well as the unonfined_u/system_u. You should be able to mix and match the users. So if you want to setup a Guest X-Windows login you would set it up with a user of user_u:user_r:user_t. And you might have your regular login as system_u:unconfined_r:unconfined_t.

As a side note is that an unconfined_u seuser is going to be added, which will be the appropriate seuser to use for unconfined users. So eventually you'll end up with unconfined_u:unconfined_r:unconfined_t.

Quoted 7 lines
Quoted 2 lines

The idea is if you remove the unconfined policy package, you will be basically running in strict policy mode. (This has not been tested.)

Actually you also have to take out anaconda and firstboot since they unconditionally depend on unconfined. Otherwise it should work.

Well in the process of making unconfined.te a module, I found lots of other gotcha's but I will send you later.

I am holding off on updating until I get some more testing. I want this change to go smoothly, and not force a relabel. Since eventually we will be updating from F-7 to F-8 and RHEL5-RHEL6.

Looking into doing something like this in the post.

Currently __default__ logs in as user_u, which has much less privs then unconfined_t. And I still the default to be unconfined_t. So changing the user to system_u achieves this.

I can't put unconfined_u into the users build, since this blows up with unconfined as a loadable module.

%triggerpost targeted -- selinux-policy-targeted <= 3.0.1 semanage login -m -s system_u __default__
semanage login -m -s system_u root
semanage user -m -P sysadm -R "staff_r sysadm_r system_r" root semanage user -m -P user -R user_r user_u
semanage user -a -P staff -R "staff_r sysadm_r" staff_u

Also adding (attachments)
/etc/selinux/targeted/contexts/users/user_u
/etc/selinux/targeted/contexts/users/staff_u

These probably need to be reviewed.

So that we can get the default_contexts stuff right.

system_r:local_login_t:s0 staff_r:staff_t:s0 sysadm_r:sysadm_t:s0
system_r:remote_login_t:s0 staff_r:staff_t:s0
system_r:sshd_t:s0 staff_r:staff_t:s0 sysadm_r:sysadm_t:s0
system_r:crond_t:s0 staff_r:staff_crond_t:s0 sysadm_r:sysadm_crond_t:s0 system_r:system_crond_t:s0 mailman_r:user_crond_t:s0
system_r:xdm_t:s0 staff_r:staff_t:s0
staff_r:staff_su_t:s0 staff_r:staff_t:s0
staff_r:staff_sudo_t:s0 staff_r:staff_t:s0
sysadm_r:sysadm_su_t:s0 sysadm_r:sysadm_t:s0
sysadm_r:sysadm_sudo_t:s0 sysadm_r:sysadm_t:s0

system_r:local_login_t:s0 user_r:user_t:s0
system_r:remote_login_t:s0 user_r:user_t:s0
system_r:sshd_t:s0 user_r:user_t:s0
system_r:crond_t:s0 user_r:user_crond_t:s0
system_r:xdm_t:s0 user_r:user_t:s0
user_r:user_su_t:s0 user_r:user_t:s0
user_r:user_sudo_t:s0 user_r:user_t:s0