Bug 2124427 - SELinux is preventing journal-offline from 'relabelto' accesses on the file .#system.
Summary: SELinux is preventing journal-offline from 'relabelto' accesses on the file ....
Keywords:
Status: CLOSED DUPLICATE of bug 2075527
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 37
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:67869e8518dd65bac6d45852948...
: 2125762 2149346 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-06 06:27 UTC by Ian Laurie
Modified: 2022-12-15 17:47 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-09-15 07:11:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ian Laurie 2022-09-06 06:27:25 UTC
Description of problem:
SELinux is preventing journal-offline from 'relabelto' accesses on the file .#system.

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

If you believe that journal-offline should be allowed relabelto 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@25e2b1133fed4598a48b8645da6b5f65-
                              00000000001b632b-
                              0005e7fc0f591927.journal4c17ac7fa7d7d794 [ 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.7-300.fc37.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon Sep 5 15:09:01 UTC 2022 x86_64
                              x86_64
Alert Count                   2
First Seen                    2022-09-06 16:10:59 AEST
Last Seen                     2022-09-06 16:12:08 AEST
Local ID                      016f9a06-8330-4742-a1dd-867656d8bbfe

Raw Audit Messages
type=AVC msg=audit(1662444728.395:406): avc:  denied  { relabelto } for  pid=628 comm="journal-offline" name=".#system" dev="sdc3" ino=10898693 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,relabelto

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.7-300.fc37.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-09-12 10:05:38 UTC
AVC from the dup:
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

Comment 2 Zdenek Pytela 2022-09-12 10:05:44 UTC
*** Bug 2125762 has been marked as a duplicate of this bug. ***

Comment 3 Dominik 'Rathann' Mierzejewski 2022-09-14 20:58:43 UTC
Possible duplicate: bug 2075527 .

Comment 4 Zdenek Pytela 2022-09-15 07:11:00 UTC
(In reply to Dominik 'Rathann' Mierzejewski from comment #3)
> Possible duplicate: bug 2075527 .

Thank you.

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

Comment 5 Gael 2022-11-29 16:37:03 UTC
*** Bug 2149346 has been marked as a duplicate of this bug. ***


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