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

Allow rlimit inheritance for domains transitioning to local_login_t #2574

Open
wants to merge 1 commit into
base: rawhide
Choose a base branch
from

Conversation

ca-hu
Copy link
Contributor

@ca-hu ca-hu commented Feb 11, 2025

Allows domains using locallogin_domtrans to inherit rlimits.

Observation:
Log in on tty as root and run ulimit -c.
Without SELinux, this will result in "unlimited".
With SELinux, this resulted in "0".

We would like to keep the core file size at "unlimited" as documented here, so allow local_login_t inheriting the limits from mainly getty_t: https://github.com/openSUSE/sys-param-check/blob/beb196c21ddbe55b4cd49159375594836207d59c/tests/Tumbleweed/limits.robot#L21

Adresses:
type=AVC msg=audit(1739293467.154:509): avc: denied { rlimitinh } for pid=1750 comm="login" scontext=system_u:system_r:getty_t:s0-s0:c0.c1023 tcontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tclass=process permissive=0

Also happens on fedora rawhide, but not sure if that is intended. Feel free to close if not relevant for you :)

Allows domains using locallogin_domtrans to inherit rlimits.

Observation:
Log in on tty as root and run `ulimit -c`.
Without SELinux, this will result in "unlimited".
With SELinux, this resulted in "0".

We would like to keep the core file size at "unlimited"
as documented here, so allow local_login_t inheriting the limits from getty_t:
https://github.com/openSUSE/sys-param-check/blob/beb196c21ddbe55b4cd49159375594836207d59c/tests/Tumbleweed/limits.robot#L21

Adresses:
type=AVC msg=audit(1739293467.154:509): avc:  denied  { rlimitinh } for  pid=1750 comm="login" scontext=system_u:system_r:getty_t:s0-s0:c0.c1023 tcontext=system_u:system_r:local_login_t:s0-s0:c0.c1023 tclass=process permissive=0

Signed-off-by: Cathy Hu <cahu@suse.de>
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

Successfully merging this pull request may close these issues.

1 participant