Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922516 - portage is not able to upgrade cronie: "Permission denied" due to unlabeled keep files
Summary: portage is not able to upgrade cronie: "Permission denied" due to unlabeled k...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-20 01:21 UTC by Marc Schiffbauer
Modified: 2024-01-20 16:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2024-01-20 01:21:32 UTC
While upgrading cronie portage failed because it had no access to keep-files that are unlabeled by default (unlabeled_t).

This workaround fixed it for me:

 # semanage fcontext -Cl
SELinux fcontext                                   type               Context

/var/spool/cron/\.keep_acct-user_cron-0            regular file       system_u:object_r:cron_spool_t
/var/spool/cron/crontabs/\.keep_sys-process_cronie-0 regular file       system_u:object_r:cron_spool_t
/var/spool/cron/lastrun/\.keep_sys-process_cronbase-0 regular file       system_u:object_r:cron_spool_t