Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SELinux user and/or role optional #32

Open
stephensmalley opened this issue Nov 17, 2016 · 0 comments
Open

Make SELinux user and/or role optional #32

stephensmalley opened this issue Nov 17, 2016 · 0 comments

Comments

@stephensmalley
Copy link
Member

There are use cases where neither the SELinux user nor role are used at all (e.g. Android, which defines a single user and a single role), and even in Linux distributions, you really only need one or the other, not both. The SELinux user was originally envisioned to be the actual Linux username, but that was supplanted by the seusers mapping, making it more akin to a role. In any event, it should be configurable in policy whether we include the user and/or role and if not, then the relevant policy components and security context fields should just go away entirely. We're presently wasting space in security contexts for them, mostly always for files (unless using RBACSEP) and even to some degree for processes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant