Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 922516

Summary: portage is not able to upgrade cronie: "Permission denied" due to unlabeled keep files
Product: Gentoo Linux Reporter: Marc Schiffbauer <mschiff>
Component: SELinuxAssignee: SE Linux Bugs <selinux>
Status: CONFIRMED ---    
Severity: normal CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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