RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1316975 - Need policy for aos hostmount-anyuid to access host mounted volumes
Summary: Need policy for aos hostmount-anyuid to access host mounted volumes
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.3
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-11 15:17 UTC by Rich Megginson
Modified: 2016-05-04 14:16 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-04 14:16:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rich Megginson 2016-03-11 15:17:23 UTC
Description of problem:
The AOS origin-aggregated-logging fluentd component needs to mount /var/log, needs to be able to read /var/log/message* and /var/log/containers/*, and needs to be able to create and write files in /var/log.

We used to do this by making the fluentd container privileged, and adding the fluentd system user to the aos scc privileged.  However, it was felt that this granted too much access to the fluentd container, and instead fluentd should use the least permissive access, which is scc hostmount-anyuid.  But when fluentd is configured with this scc, the fluentd container cannot access /var/log on the host.

More information is in https://github.com/openshift/origin-aggregated-logging/issues/89

Version-Release number of selected component (if applicable):

# more /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core) 
# rpm -q selinux-policy
selinux-policy-3.13.1-60.el7_2.3.noarch
# oc version
oc v1.1.3
kubernetes v1.2.0-origin

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Paul Morie 2016-03-11 15:26:31 UTC
To recap discussion from email, we discussed:

1.  Making hostmount-anyuid use spc_t
2.  Making hostmount-anyuid use another selinux type which is similar to svirt_lxc_net_t, but allows access to /var/log


Note You need to log in before you can comment on or make changes to this bug.