SELinux is preventing journal-offline from 'relabelto' accesses on the file .#system@25e2b1133fed4598a48b8645da6b5f65-00000000001b632b-0005e7fc0f591927.journal4c17ac7fa7d7d794.
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
(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 ***
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