Bug 1389835

Summary: SELinux is preventing loginctl from 'read' accesses on the file /var/log/journal/c476bfefe9ed4ac1950af482046aa9cf/system@fd9139013f034d9f9cc612d00d4b6a0e-00000000000a0aa4-00053cf4cb9eb3e9.journal.
Product: [Fedora] Fedora Reporter: mrummuka <mrummuka>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d34c86e148daa79e60c040f3833cdeb811a498317e0e937254ab909cf6d96337;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-02 11:27:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description mrummuka 2016-10-28 19:51:25 UTC
Description of problem:
SELinux is preventing loginctl from 'read' accesses on the file /var/log/journal/c476bfefe9ed4ac1950af482046aa9cf/system.

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

If you believe that loginctl should be allowed read access on the system file 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 'loginctl' --raw | audit2allow -M my-loginctl
# semodule -X 300 -i my-loginctl.pp

Additional Information:
Source Context                system_u:system_r:apmd_t:s0
Target Context                system_u:object_r:var_log_t:s0
Target Objects                /var/log/journal/c476bfefe9ed4ac1950af482046aa9cf/
                              system@fd9139013f034d9f9cc612d00d4b6a0e-0000000000
                              0a0aa4-00053cf4cb9eb3e9.journal [ file ]
Source                        loginctl
Source Path                   loginctl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-191.17.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.7.5-200.fc24.x86_64 #1 SMP Mon
                              Sep 26 21:25:47 UTC 2016 x86_64 x86_64
Alert Count                   2
First Seen                    2016-09-18 23:02:26 EEST
Last Seen                     2016-10-09 20:20:45 EEST
Local ID                      cbd57ceb-0b31-4683-a47f-6c650ff37cd7

Raw Audit Messages
type=AVC msg=audit(1476033645.627:1104): avc:  denied  { read } for  pid=18108 comm="loginctl" name="system" dev="dm-1" ino=2888222 scontext=system_u:system_r:apmd_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file permissive=1


Hash: loginctl,apmd_t,var_log_t,file,read

Version-Release number of selected component:
selinux-policy-3.13.1-191.17.fc24.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.7.9-200.fc24.x86_64
type:           libreport

Potential duplicate: bug 1226159

Comment 1 Lukas Vrabec 2016-11-02 11:27:09 UTC

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