Bug 1783794 - SELinux is preventing journalctl from 'search' accesses on the directory 1.
Summary: SELinux is preventing journalctl from 'search' accesses on the directory 1.
Keywords:
Status: CLOSED DUPLICATE of bug 1731753
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 31
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:b2354c590ed8d0122f4f3acc38f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-15 20:13 UTC by felix1072
Modified: 2019-12-16 08:07 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-12-16 08:07:50 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description felix1072 2019-12-15 20:13:00 UTC
Description of problem:
Alert just appeared. Not sure what happened.
SELinux is preventing journalctl from 'search' accesses on the directory 1.

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

If you believe that journalctl should be allowed search access on the 1 directory 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 'journalctl' --raw | audit2allow -M my-journalctl
# semodule -X 300 -i my-journalctl.pp

Additional Information:
Source Context                system_u:system_r:journalctl_t:s0
Target Context                system_u:system_r:init_t:s0
Target Objects                1 [ dir ]
Source                        journalctl
Source Path                   journalctl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.4-43.fc31.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.3.15-300.fc31.x86_64 #1 SMP Thu
                              Dec 5 15:04:01 UTC 2019 x86_64 x86_64
Alert Count                   2
First Seen                    2019-12-14 22:35:08 CST
Last Seen                     2019-12-14 22:35:08 CST
Local ID                      6c9f13e5-80a6-45cf-85cd-d7f18631f11d

Raw Audit Messages
type=AVC msg=audit(1576384508.463:727): avc:  denied  { search } for  pid=24576 comm="journalctl" name="1" dev="proc" ino=2373 scontext=system_u:system_r:journalctl_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=dir permissive=0


Hash: journalctl,journalctl_t,init_t,dir,search

Version-Release number of selected component:
selinux-policy-3.14.4-43.fc31.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.11.3
hashmarkername: setroubleshoot
kernel:         5.3.15-300.fc31.x86_64
type:           libreport

Potential duplicate: bug 1731753

Comment 1 Zdenek Pytela 2019-12-16 08:07:50 UTC

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


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