Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679234 - sec-policy/selinux-puppet changes required to work properly
Summary: sec-policy/selinux-puppet changes required to work properly
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: 2019-03-02 12:45 UTC by Fredrik Eriksson
Modified: 2019-03-02 12:46 UTC (History)
0 users

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


Attachments
custom-puppet.fc (custom-puppet.fc,366 bytes, text/plain)
2019-03-02 12:46 UTC, Fredrik Eriksson
Details
custom-puppet.te (custom-puppet.te,509 bytes, text/plain)
2019-03-02 12:46 UTC, Fredrik Eriksson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fredrik Eriksson 2019-03-02 12:45:10 UTC
Trying to run puppet in an selinux environment (I've tested in with mcs policy) failed because of multiple issues. I've create a minimal custom puppet policy to use in addition to the provided module which contains file contexts and policy rules that works around these issues. 

* the puppet wrapper.sh (used to start puppet) has wrong file context
* init script has wrong file context (although I'm not sure if it's needed)
* the puppet log directory created by the init script has wrong file context
* the puppet-provided "virt-what-cpuid-helper"-script has wrong file context
* init script is not allowed to check for, and create, puppet log directory
* openrc is not allowed to transit to puppet_t context

In addition to this the audit log fills up with lots of attempts of puppet to access stuff, and I'm not sure how much of it is needed. In my policy I have also allowed puppet to read dac and change its own gid.

Reproducible: Always
Comment 1 Fredrik Eriksson 2019-03-02 12:46:23 UTC
Created attachment 567426 [details]
custom-puppet.fc
Comment 2 Fredrik Eriksson 2019-03-02 12:46:48 UTC
Created attachment 567428 [details]
custom-puppet.te