Bug 1401770 - SELinux is preventing dmesg from 'syslog_read' accesses on the system Unknown.
Summary: SELinux is preventing dmesg from 'syslog_read' accesses on the system Unknown.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1c9cdea622720c4d76bfa0cf3d4...
: 1689670 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-06 03:12 UTC by Mikhail
Modified: 2022-12-07 00:00 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-06 12:50:51 UTC
Type: ---


Attachments (Terms of Use)

Description Mikhail 2016-12-06 03:12:56 UTC
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

Comment 1 Daniel Walsh 2016-12-06 12:50:51 UTC
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.

Comment 2 Berend De Schouwer 2017-01-05 09:41:08 UTC
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

Comment 3 Daniel Walsh 2017-01-05 13:53:57 UTC
They you should run a privileged container.

Comment 4 Zdenek Pytela 2019-03-18 09:47:52 UTC
*** Bug 1689670 has been marked as a duplicate of this bug. ***

Comment 5 jonathan alex 2022-04-07 07:01:54 UTC Comment hidden (spam)
Comment 6 mondyrose 2022-04-09 09:40:10 UTC Comment hidden (spam)
Comment 7 Sophiekells 2022-04-13 07:05:50 UTC Comment hidden (spam)
Comment 8 russelltitus 2022-08-22 13:59:33 UTC Comment hidden (spam)
Comment 9 Michel 2022-08-28 09:30:24 UTC Comment hidden (spam)
Comment 10 tineclerk 2022-09-27 06:30:24 UTC Comment hidden (spam)
Comment 11 Smith Dave 2022-10-08 11:05:41 UTC Comment hidden (spam)
Comment 12 callumbryne3 2022-11-29 10:59:22 UTC Comment hidden (spam)

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