Skip to contentSkip to conversation

I have begun merging XWindows Controls into Rawhide.

DISCUSSION Daniel J Walsh 5 participants 8 messages Feb 25, 2008 – Feb 26, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

But the complexity of this stuff is just getting nuts.

I don't thing we should have more then one type for xserver. Allowing a confined user to transition to user_xserver_t is just nuts and ends up having awful policy for getting xdm_xserver_t to work. Why in the world would we allow a confined user to start and XServer? And if they can, why not just allow them to start xdm_xserver_t? In Rawhide right now no users can start and Xserver except unconfined_t and he starts xdm_xserver_t to make sure the transitions work properly. If someone actually has a use case where they need user separated xservers then I say write that policy off the main stream. You can still theoretically run multiple xdm_xserver_t at different MLS levels.

Having four macro parameters is confusing as hell, and needs to go.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkfCy6AACgkQrlYvE4MpobMKCgCg5Eq4/YgkCt1ehLQWxiMrveo2 hwIAoIg7fAuzk/hyjIH6wqlzUKgiBUL2
=OmSx
-----END PGP SIGNATURE-----

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

But the complexity of this stuff is just getting nuts.

I don't thing we should have more then one type for xserver. Allowing a confined user to transition to user_xserver_t is just nuts and ends up having awful policy for getting xdm_xserver_t to work. Why in the world would we allow a confined user to start and XServer? And if they can, why not just allow them to start xdm_xserver_t? In Rawhide right now no users can start and Xserver except unconfined_t and he starts xdm_xserver_t to make sure the transitions work properly. If someone actually has a use case where they need user separated xservers then I say write that policy off the main stream. You can still theoretically run multiple xdm_xserver_t at different MLS levels.

Quoted 1 line

Having four macro parameters is confusing as hell, and needs to go.

This comes back to forthcoming effort for trying to use RBAC for role separation. That would eliminate the structural complexity we see due to using TE for the role separation.

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 4 lines · Christopher J. PeBenito
Quoted 2 lines · Daniel J Walsh

But the complexity of this stuff is just getting nuts.

Quoted 11 lines
Quoted 11 lines

I don't thing we should have more then one type for xserver. Allowing a confined user to transition to user_xserver_t is just nuts and ends up having awful policy for getting xdm_xserver_t to work. Why in the world would we allow a confined user to start and XServer? And if they can, why not just allow them to start xdm_xserver_t? In Rawhide right now no users can start and Xserver except unconfined_t and he starts xdm_xserver_t to make sure the transitions work properly. If someone actually has a use case where they need user separated xservers then I say write that policy off the main stream. You can still theoretically run multiple xdm_xserver_t at different MLS levels.

I would be fine with only having one type for the X server; this would certainly simplify the policy that currently has all kinds of kludgery to support both "xdm_" and "$1_".

On a locked-down strict system like an MLS box, the user wouldn't be allowed to run startx anyway. So I agree that the current constructions are unnecessary.

Quoted 6 lines
Quoted 2 lines

Having four macro parameters is confusing as hell, and needs to go.

This comes back to forthcoming effort for trying to use RBAC for role separation. That would eliminate the structural complexity we see due to using TE for the role separation

Is work being done on this? I recall you said you were interested in taking on this task.

Signature · 8 lines
Eamon Walsh <[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.
#3 lore raw
Quoted 6 lines · Eamon Walsh
Quoted 5 lines · Christopher J. PeBenito
Quoted 2 lines · Daniel J Walsh

Having four macro parameters is confusing as hell, and needs to go.

Quoted 6 lines
Quoted 3 lines

This comes back to forthcoming effort for trying to use RBAC for role separation. That would eliminate the structural complexity we see due to using TE for the role separation

Is work being done on this? I recall you said you were interested in taking on this task.

I plan on starting after the xselinux branch merges into trunk.

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.
#4 lore raw
In reply to Eamon Walsh
Quoted 3 lines · Eamon Walsh

I would be fine with only having one type for the X server; this would certainly simplify the policy that currently has all kinds of kludgery to support both "xdm_" and "$1_".

With an X server being a trusted object manager the benefit of having separate instances of the X server for various roles is greatly reduced. Not that it ever was a great benefit given the small number of people who used it.

In retrospect it should have been removed some time ago.

Quoted 6 lines
Quoted 3 lines

This comes back to forthcoming effort for trying to use RBAC for role separation. That would eliminate the structural complexity we see due to using TE for the role separation

Is work being done on this? I recall you said you were interested in taking on this task.

Is this going to involve using roles on filesystem objects? If not then how would you distinguish the files created by different roles?

Signature · 9 lines
[email protected]
http://etbe.coker.com.au/          My Blog

http://www.coker.com.au/sponsorship.html Sponsoring Free Software development

--
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 11 lines · Russell Coker
Quoted 6 lines · Eamon Walsh
Quoted 3 lines

This comes back to forthcoming effort for trying to use RBAC for role separation. That would eliminate the structural complexity we see due to using TE for the role separation

Is work being done on this? I recall you said you were interested in taking on this task.

Is this going to involve using roles on filesystem objects? If not then how would you distinguish the files created by different roles?

Yes, the plan is to use roles on objects.

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.
#6 lore raw
Quoted 7 lines · Christopher J. PeBenito
Quoted 6 lines · Russell Coker
Quoted 4 lines · Eamon Walsh
Quoted 3 lines

This comes back to forthcoming effort for trying to use RBAC for role separation. That would eliminate the structural complexity we see due to using TE for the role separation

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Is work being done on this? I recall you said you were interested in taking on this task.

Is this going to involve using roles on filesystem objects? If not then how would you distinguish the files created by different roles?

Yes, the plan is to use roles on objects.

(note: requires a kernel change)

Signature · 8 lines
Stephen Smalley
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
Quoted 11 lines · Stephen Smalley
Quoted 10 lines · Christopher J. PeBenito
Quoted 9 lines · Russell Coker
Quoted 6 lines · Eamon Walsh
Quoted 3 lines

This comes back to forthcoming effort for trying to use RBAC for role separation. That would eliminate the structural complexity we see due to using TE for the role separation

Is work being done on this? I recall you said you were interested in taking on this task.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Is this going to involve using roles on filesystem objects? If not then how would you distinguish the files created by different roles?

Yes, the plan is to use roles on objects.

(note: requires a kernel change)

Right, if you label a directory with a role other than object_r and create a file in it, the file will get object_r. Also theres some userland changes so login programs set the role on the terminal, newrole changes the role on the terminal, etc. Now that I think about it, that causes a problem for RHEL4 and even RHEL5 compatibility for upstream refpolicy.

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.