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

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-09-12 10:05:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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