Bug 1783794

Summary: SELinux is preventing journalctl from 'search' accesses on the directory 1.
Product: [Fedora] Fedora Reporter: felix1072
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b2354c590ed8d0122f4f3acc38fca86104c80d8ff6d45c2dcd1cba1ceced6477;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-16 08:07:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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 ***