appconfig-mcs_default_contexts.patch
http://people.fedoraproject.org/~dwalsh/SELinux/F11/appconfig-mcs_default_contexts.patch
default context file should have one default context all of the other types should be broken out into the users directory.
Quoted 4 lines · Daniel J Walsh
http://people.fedoraproject.org/~dwalsh/SELinux/F11/appconfig-mcs_default_contexts.patch
default context file should have one default context all of the other types should be broken out into the users directory.
I disagree. We need defaults that work.
Signature · 3 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150
Quoted 8 lines · Christopher J. PeBenito
Quoted 4 lines · Daniel J Walsh
http://people.fedoraproject.org/~dwalsh/SELinux/F11/appconfig-mcs_default_contexts.patch
default context file should have one default context all of the other types should be broken out into the users directory.
I disagree. We need defaults that work.
But the defaults are in the individual files which we now ship. So as I add new user ABC_U type I need to provide a /etc/selinux/targeted/contexts/users/ABC_U
And defaults_context will not work for that user if the ABC_U file is not there. So it will not Just work.
Quoted 7 lines · Daniel J Walsh
Quoted 6 lines · Christopher J. PeBenito
Quoted 4 lines · Daniel J Walsh
http://people.fedoraproject.org/~dwalsh/SELinux/F11/appconfig-mcs_default_contexts.patch
default context file should have one default context all of the other types should be broken out into the users directory.
Quoted 8 lines
Quoted 2 lines
I disagree. We need defaults that work.
But the defaults are in the individual files which we now ship. So as I add new user
ABC_Utype I need to provide a/etc/selinux/targeted/contexts/users/ABC_UAnd
defaults_contextwill not work for that user if theABC_Ufile is not there. So it will not Just work.
If there is no default contexts specific to the seuser, the general default_contexts will be used. It will cover people who want to add their own seuser but don't add a seuser-specific default_contexts. It doesn't hurt to have all of these entries in the general default_contexts since all of the valid contexts are defined in policy.
Signature · 3 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150
Quoted 13 lines · Christopher J. PeBenito
Quoted 12 lines · Daniel J Walsh
Quoted 7 lines · Christopher J. PeBenito
Quoted 4 lines · Daniel J Walsh
http://people.fedoraproject.org/~dwalsh/SELinux/F11/appconfig-mcs_default_contexts.patch
default context file should have one default context all of the other types should be broken out into the users directory.
I disagree. We need defaults that work.
But the defaults are in the individual files which we now ship. So as I add new user
ABC_Utype I need to provide a/etc/selinux/targeted/contexts/users/ABC_U
Quoted 9 lines
Quoted 2 lines
And
defaults_contextwill not work for that user if theABC_Ufile is not there. So it will not Just work.If there is no default contexts specific to the seuser, the general
default_contextswill be used. It will cover people who want to add their own seuser but don't add a seuser-specificdefault_contexts. It doesn't hurt to have all of these entries in the generaldefault_contextssince all of the valid contexts are defined in policy.
But it doesn't help, and you end up with invalid context listed if you do not have that user type defined.
So if I don't have unconfined_t or sysadm_t I end up with a bogus listing.
I say make it user_u and move on. I actually would get rid of the file altogether and force all user types to have a user context file.
Quoted 17 lines · Daniel J Walsh
Quoted 16 lines · Christopher J. PeBenito
Quoted 14 lines · Daniel J Walsh
Quoted 7 lines · Christopher J. PeBenito
Quoted 4 lines · Daniel J Walsh
http://people.fedoraproject.org/~dwalsh/SELinux/F11/appconfig-mcs_default_contexts.patch
default context file should have one default context all of the other types should be broken out into the users directory.
I disagree. We need defaults that work.
But the defaults are in the individual files which we now ship. So as I add new user
ABC_Utype I need to provide a/etc/selinux/targeted/contexts/users/ABC_UAnd
defaults_contextwill not work for that user if theABC_Ufile is not there. So it will not Just work.
Quoted 8 lines
Quoted 6 lines
If there is no default contexts specific to the seuser, the general
default_contextswill be used. It will cover people who want to add their own seuser but don't add a seuser-specificdefault_contexts. It doesn't hurt to have all of these entries in the generaldefault_contextssince all of the valid contexts are defined in policy.But it doesn't help, and you end up with invalid context listed if you do not have that user type defined.
It doesn't hurt. The libraries have handled it for a very long time.
Quoted 1 line
So if I don't have
unconfined_torsysadm_tI end up with a bogus listing.
I'm not sure what you are saying. You would have to be missing all standard roles to not be able to log in.
Quoted 2 lines
I actually would get rid of the file altogether and force all user types to have a user context file.
That would be an argument for the SELinux list as that affects the libraries.
Signature · 3 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150