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

Further restriction of child processes capabilities (part 2) #7703

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

alexey-tikhonov
Copy link
Member

Minimizes capabilities required by 'krb5_child'.

to match 'kinit' behavior and avoid the need for cap_chown and
cap_dac_override.
Since 'krb5_child' has lost set-id bit and is run under uid/gid of
the backend, it was a no-op.
Set user uid/gid as real IDs as a first step in `privileged_krb5_setup()`
and drop cap_set*id afterwards.

Having real_ids == user_ids and set_ids == service_ids should be
enough to switch thru and back.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants