Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1628583 - SELinux is preventing oci-systemd-hoo from 'associate' accesses on the filesystem cgroup.clone_children.
Summary: SELinux is preventing oci-systemd-hoo from 'associate' accesses on the filesy...
Keywords:
Status: CLOSED DUPLICATE of bug 1406874
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:aa9720058a11834e88fd54a64b6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-13 13:35 UTC by Rick Mavrick
Modified: 2018-09-13 14:30 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-13 14:30:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rick Mavrick 2018-09-13 13:35:47 UTC
Description of problem:
Recent dnf update.

Attempting to run docker apps  homeassistant

Advice on how to workaround by enabling it using semodule seems to fail too:


root  ~  ausearch -c 'oci-systemd-hoo' --raw | audit2allow -M my-ocisystemdhoo                                                           1  
******************** IMPORTANT ***********************
To make this policy package active, execute:

semodule -i my-ocisystemdhoo.pp

 root  ~  semodule -X 300 -i my-ocisystemdhoo.pp                                                                                              
libsemanage.semanage_direct_get_module_info: Unable to read BackupPC module lang ext file.
libsemanage.semanage_direct_get_module_info: Unable to read BackupPC module lang ext file.
libsemanage.semanage_direct_get_module_info: Unable to read BackupPC module lang ext file.
semodule:  Failed on my-ocisystemdhoo.pp!
 root  ~  semodule -i my-ocisystemdhoo.pp                                                                                                 1  
            
libsemanage.semanage_direct_get_module_info: Unable to read BackupPC module lang ext file.
libsemanage.semanage_direct_get_module_info: Unable to read BackupPC module lang ext file.
libsemanage.semanage_direct_get_module_info: Unable to read BackupPC module lang ext file.
semodule:  Failed on my-ocisystemdhoo.pp!
SELinux is preventing oci-systemd-hoo from 'associate' accesses on the filesystem cgroup.clone_children.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that oci-systemd-hoo should be allowed associate access on the cgroup.clone_children filesystem by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'oci-systemd-hoo' --raw | audit2allow -M my-ocisystemdhoo
# semodule -X 300 -i my-ocisystemdhoo.pp

Additional Information:
Source Context                system_u:object_r:container_file_t:s0:c652,c994
Target Context                system_u:object_r:cgroup_t:s0
Target Objects                cgroup.clone_children [ filesystem ]
Source                        oci-systemd-hoo
Source Path                   oci-systemd-hoo
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-284.37.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.17.19-100.fc27.x86_64 #1 SMP Fri
                              Aug 24 15:32:56 UTC 2018 x86_64 x86_64
Alert Count                   11
First Seen                    2018-09-13 21:31:50 AWST
Last Seen                     2018-09-13 21:31:50 AWST
Local ID                      3e19585c-a243-4266-bac0-9a5ed72261bc

Raw Audit Messages
type=AVC msg=audit(1536845510.747:2546): avc:  denied  { associate } for  pid=30343 comm="oci-systemd-hoo" name="cgroup.clone_children" dev="cgroup" ino=5120 scontext=system_u:object_r:container_file_t:s0:c652,c994 tcontext=system_u:object_r:cgroup_t:s0 tclass=filesystem permissive=0


Hash: oci-systemd-hoo,container_file_t,cgroup_t,filesystem,associate

Version-Release number of selected component:
selinux-policy-3.13.1-284.37.fc27.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.17.19-100.fc27.x86_64
type:           libreport

Comment 1 Rick Mavrick 2018-09-13 14:30:30 UTC
Issue fixed: empty files in /var/lib/selinux/targeted/active/modules/ preventing update of container-selinux

*** This bug has been marked as a duplicate of bug 1406874 ***


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