Allow rlimit inheritance for domains transitioning to local_login_t #2574
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 :)