Hide Forgot
Description of problem: SELinux is preventing dmesg from 'syslog_read' accesses on the system Unknown. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that dmesg should be allowed syslog_read access on the Unknown system 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 'dmesg' --raw | audit2allow -M my-dmesg # semodule -X 300 -i my-dmesg.pp Additional Information: Source Context system_u:system_r:container_t:s0:c589,c604 Target Context system_u:system_r:kernel_t:s0 Target Objects Unknown [ system ] Source dmesg Source Path dmesg Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-225.fc25.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.8.11-300.fc25.x86_64 #1 SMP Mon Nov 28 18:24:51 UTC 2016 x86_64 x86_64 Alert Count 2 First Seen 2016-12-05 20:17:21 +05 Last Seen 2016-12-05 20:17:21 +05 Local ID 75b95615-173c-4816-8afb-a7dfe6960c3a Raw Audit Messages type=AVC msg=audit(1480951041.222:1003): avc: denied { syslog_read } for pid=27622 comm="dmesg" scontext=system_u:system_r:container_t:s0:c589,c604 tcontext=system_u:system_r:kernel_t:s0 tclass=system permissive=0 Hash: dmesg,container_t,kernel_t,system,syslog_read Version-Release number of selected component: selinux-policy-3.13.1-225.fc25.noarch Additional info: reporter: libreport-2.8.0 hashmarkername: setroubleshoot kernel: 4.8.11-300.fc25.x86_64 type: libreport
You should not be allowed to read the system log while sitting inside of a container. You would need to turn SELinux off inside of the container to allow this.
Description of problem: Running a docker In particular, a docker to run Ansible tests (ansible itself unit tests, when developing ansible) Version-Release number of selected component: selinux-policy-3.13.1-225.3.fc25.noarch Additional info: reporter: libreport-2.8.0 hashmarkername: setroubleshoot kernel: 4.8.14-300.fc25.x86_64 type: libreport
They you should run a privileged container.
*** Bug 1689670 has been marked as a duplicate of this bug. ***
This comment was flagged a spam, view the edit history to see the original text if required.