Bug 2125762

Summary: SELinux is preventing journal-offline from 'relabelfrom' accesses on the file .#system@03989413b620417385ae59c317aca542-0000000000177a59-0005e7bda19ced48.journalae63219becd8e9e8.
Product: [Fedora] Fedora Reporter: Ian Laurie <nixuser>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: boredsquirrel, dandgg.ftw, dwalsh, grepl.miroslav, lvrabec, markussen.larsen96, mmalik, omosnacek, pkoncity, sbonazzo, sghcd2012, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8278ca4a716f241e854e71a44ac5fbec7e19682a82f93678f4d32146ffe7b502;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-12 10:05:44 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 Ian Laurie 2022-09-10 04:19:14 UTC
Description of problem:
SELinux is preventing journal-offline from 'relabelfrom' accesses on the file .#system.

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

If you believe that journal-offline should be allowed relabelfrom 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 'journal-offline' --raw | audit2allow -M my-journaloffline
# semodule -X 300 -i my-journaloffline.pp

Additional Information:
Source Context                system_u:system_r:syslogd_t:s0
Target Context                system_u:object_r:var_log_t:s0
Target Objects                .#system@03989413b620417385ae59c317aca542-
                              0000000000177a59-
                              0005e7bda19ced48.journalae63219becd8e9e8 [ file ]
Source                        journal-offline
Source Path                   journal-offline
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-37.8-1.fc37.noarch
Local Policy RPM              selinux-policy-targeted-37.8-1.fc37.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.19.8-300.fc37.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Sep 8 19:14:17 UTC 2022 x86_64
                              x86_64
Alert Count                   1
First Seen                    2022-09-10 14:15:41 AEST
Last Seen                     2022-09-10 14:15:41 AEST
Local ID                      cabb8ede-b629-406e-9cae-fa7459c9e3d8

Raw Audit Messages
type=AVC msg=audit(1662783341.761:399): avc:  denied  { relabelfrom } for  pid=1037 comm="journal-offline" name=".#system" dev="dm-0" ino=7378695 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file permissive=1


Hash: journal-offline,syslogd_t,var_log_t,file,relabelfrom

Version-Release number of selected component:
selinux-policy-targeted-37.8-1.fc37.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.17.2
hashmarkername: setroubleshoot
kernel:         5.19.8-300.fc37.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-09-12 10:05:44 UTC

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

Comment 2 Sandro Bonazzola 2022-11-16 08:35:28 UTC
*** Bug 2143157 has been marked as a duplicate of this bug. ***

Comment 3 Ricardo 2022-11-17 17:54:22 UTC
*** Bug 2143746 has been marked as a duplicate of this bug. ***

Comment 4 Henning 2022-11-19 08:47:11 UTC
*** Bug 2144150 has been marked as a duplicate of this bug. ***

Comment 5 markussen.larsen96 2022-11-28 19:41:01 UTC
*** Bug 2149093 has been marked as a duplicate of this bug. ***

Comment 6 sghcd2012 2022-12-12 09:58:44 UTC
*** Bug 2152544 has been marked as a duplicate of this bug. ***