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 kdm to create /root/.kde/ with correct label #2474

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

Conversation

milosmalik
Copy link
Contributor

When the kdm service is started, it wants to create the .kde directory under /root/, but SELinux denies that action. When the /root/.kde directory exists, the kdm service wants to create a symlink in it, but SELinux denies that action too. The intended symlink should point this way:

  • /root/.kde/cache-machine- --> /var/tmp/kdecache-root

The fix has 2 parts. First, SELinux policy should label the newly created /root/.kde directory correctly (xdm_home_t). Second, SELinux policy should allow the kdm initiated process to create a symlink in that directory.

Resolves: bz#2275868

@milosmalik milosmalik force-pushed the dot-kde-dir-in-root-home branch 2 times, most recently from 8d2765c to 8747081 Compare December 11, 2024 10:08
When the kdm service is started, it wants to create the .kde directory
under /root/, but SELinux denies that action. When the /root/.kde
directory exists, the kdm service wants to create a symlink in it,
but SELinux denies that action too. The intended symlink should
point this way:
 * /root/.kde/cache-machine-<FQDN> --> /var/tmp/kdecache-root

SELinux policy should now label the newly created /root/.kde
directory correctly as config_home_t, which is consistent with
other definitions. Allow rule for creating a symlink is already
defined.

Resolves: bz#2275868
@milosmalik milosmalik force-pushed the dot-kde-dir-in-root-home branch from 8747081 to df36659 Compare December 11, 2024 10:11
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