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

Bug 671584

Summary: openrc cannot start app-admin/rsyslog in selinux context
Product: Gentoo Linux Reporter: Fredrik Eriksson <gentoo>
Component: SELinuxAssignee: SE Linux Bugs <selinux>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fredrik Eriksson 2018-11-20 19:02:28 UTC
It seems that the init script needs to be able to read the rsyslog configuration to be able to start the daemon. I think it might be the configtest, but I haven't really looked into it. 

For now I've added a custom module that simply gives initrc_t permission to read the syslog configuration. Is this the right solution, or is it to re-write the init script or something else?

gen_require(`
  type initrc_t;
')

logging_read_syslog_config(initrc_t)