Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671584 - openrc cannot start app-admin/rsyslog in selinux context
Summary: openrc cannot start app-admin/rsyslog in selinux context
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: SELinux (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-20 19:02 UTC by Fredrik Eriksson
Modified: 2018-11-20 19:02 UTC (History)
0 users

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 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)