Skip to content

KCM: root can't access arbitrary KCM cache#8301

Merged
ikerexxe merged 1 commit into
SSSD:masterfrom
alexey-tikhonov:kcm-clarify-root
Dec 19, 2025
Merged

KCM: root can't access arbitrary KCM cache#8301
ikerexxe merged 1 commit into
SSSD:masterfrom
alexey-tikhonov:kcm-clarify-root

Conversation

@alexey-tikhonov

Copy link
Copy Markdown
Member

so remove confusing traces suggesting otherwise

See: #7274 (comment)

Resolves: #7274

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the special handling for the root user in the KCM ccache access checks. The change is implemented by removing the code that granted root access to any credential cache in kcm_cc_access. The man page documentation is also updated to reflect this change. This is a good security enhancement. My review points out that some comments in the header file kcmsrv_ccache.h are now outdated and should be updated to match the new logic.

Comment thread src/responder/kcm/kcmsrv_ccache.c
@alexey-tikhonov
alexey-tikhonov marked this pull request as ready for review December 15, 2025 14:41
@alexey-tikhonov alexey-tikhonov added the coverity Trigger a coverity scan label Dec 15, 2025
@alexey-tikhonov

Copy link
Copy Markdown
Member Author

Note: Covscan is green.

@alexey-tikhonov alexey-tikhonov added Waiting for review and removed coverity Trigger a coverity scan labels Dec 15, 2025
@justin-stephenson justin-stephenson self-assigned this Dec 17, 2025
@justin-stephenson
justin-stephenson self-requested a review December 17, 2025 16:59

@ikerexxe ikerexxe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

so remove confusing traces suggesting otherwise

See: SSSD#7274 (comment)

Resolves: SSSD#7274
Reviewed-by: Iker Pedrosa <[email protected]>
Reviewed-by: Justin Stephenson <[email protected]>
@sssd-bot

Copy link
Copy Markdown
Contributor

The pull request was accepted by @ikerexxe with the following PR CI status:


🟢 CodeFactor (success)
🟢 CodeQL (success)
NEUTRAL osh-diff-scan:fedora-rawhide-x86_64:upstream (neutral)
🟢 rpm-build:centos-stream-10-x86_64:upstream (success)
🟢 rpm-build:fedora-41-x86_64:upstream (success)
🟢 rpm-build:fedora-42-x86_64:upstream (success)
🟢 rpm-build:fedora-43-x86_64:upstream (success)
🟢 rpm-build:fedora-rawhide-x86_64:upstream (success)
🟢 Analyze (target) / cppcheck (success)
🟢 Build / freebsd (success)
🟢 Build / make-distcheck (success)
🟢 ci / intgcheck (centos-10) (success)
🟢 ci / intgcheck (fedora-41) (success)
🟢 ci / intgcheck (fedora-42) (success)
🟢 ci / intgcheck (fedora-43) (success)
🟢 ci / intgcheck (fedora-44) (success)
🟢 ci / prepare (success)
🟢 ci / system (centos-10) (success)
🟢 ci / system (fedora-41) (success)
🟢 ci / system (fedora-42) (success)
🟢 ci / system (fedora-43) (success)
🟢 ci / system (fedora-44) (success)
➖ Coverity scan / coverity (skipped)
🟢 Static code analysis / codeql (success)
🟢 Static code analysis / pre-commit (success)
🟢 Static code analysis / python-system-tests (success)


There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging.

@ikerexxe
ikerexxe merged commit 87e72fd into SSSD:master Dec 19, 2025
11 of 15 checks passed
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.

Clarify root permissions for KCM

4 participants