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

Support custom login programs #77

Closed
DemiMarie opened this issue Aug 28, 2019 · 4 comments
Closed

Support custom login programs #77

DemiMarie opened this issue Aug 28, 2019 · 4 comments

Comments

@DemiMarie
Copy link

Currently, there is no good way for third-party domains to log users in with pam_selinux.so.

@ghost
Copy link

ghost commented Aug 28, 2019 via email

@DemiMarie
Copy link
Author

@doverride If I implement my own login program and give it its own type (say demi_login_t), pam_selinux does not assign the proper MCS contexts. I believe that the problem is the *_default_contexts files.

@ghost
Copy link

ghost commented Aug 28, 2019 via email

@pebenito
Copy link
Member

You would need to add lines to the default_contexts or *_default_contexts files that start with system_r:demi_login_t and add the relevant partial contexts that are acceptable for login.

If you would like to change how the default_context files are processed, or add new processing for login, then the SELinux userspace project is where that should be discussed. The selinux mail list would be better for that discussion. Then refpolicy would adapt to the new methods as necessary.

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

2 participants