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 5 commits into
base: master
Choose a base branch
from

Conversation

alexey-tikhonov
Copy link
Member

Minimizes capabilities required by 'krb5_child'.

Since 'krb5_child' has lost set-id bit and is run under uid/gid of
the backend, it was a no-op.
Those functions are used only in 'krb5_ccache.c' in `sss_open_ccache_as_user()`

This function, in turn, used in:
 - `k5c_ccache_setup()`: justified in PKINIT case
 - `get_and_save_tgt()` -> `safe_remove_old_ccache_file()`: no-op
 - `tgt_req_child()`::ERR_CREDS_EXPIRED -> `safe_remove_old_ccache_file()`: no-op

Perhaps the only justified use case can be re-worked to avoid the need
to switch/restore creds.

That would be good because function is easy to misuse.

Let's stress that those functions should be better avoided by removing from
public header.
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.

1 participant