Bug 1117420
Summary: | rhsmcertd versus ostree versus selinux | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Colin Walters <walters> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED RAWHIDE | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | alikins, mmalik |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-09-01 09:45:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1123889 |
Description
Colin Walters
2014-07-08 16:18:29 UTC
Normally most userspace processes shouldn't need access to /ostree (or /sysroot), but subscription-manager right now writes to /ostree/repo/config. Can we just allow this access in RHEL7? rhsmcertd-worker will need to: - read /ostree/repo/config - write /ostree/repo/config /usr/share/rhsm/subscription_manager/plugin/ostree/gi_wrapper.py will need to be able to read/write /ostree/deploy/rhel-atomic-host/deploy/*.origin (and likely.. /ostree/deploy/*/deploy/*.origin If those files get specific contexts, subscription-manager will need to be able to read/write as well. How are /ostree/repo and /ostree/deploy/*/deploy dirs placed? Basically I will add mnt_t label for /ostree but we will need to add filenametrans for these subdirs to get correct labeling. mnt_t would be strange for /ostree. I think usr_t would be a better match. Right now these files are generated by Anaconda, which calls into ostree itself to initialize the rootfs. I think we can take care of just looking up the label for /usr and using that as the context for these files. Yes I have been thinking also about usr_t. Well but you don't want to allow rhsmcertd_t to write generic types like usr_t or mnt_t. I think we can make /ostree/repo/config etc_t. (Note in current ostree versions, /etc/ostree/remotes.d exists, and ideally RHSM uses that) Actually system_conf_t is a label which we want to add for /ostree/repo/config /etc/ostree/remotes.d I added all changes to rawhide/f21. If anyone hits this bug, you can work around it by: systemctl stop rhsmcertd subscription-manager register ... |