Bug 2139623 - SELinux is preventing journal-offline from relabelto access on the file .#user-1001@
Summary: SELinux is preventing journal-offline from relabelto access on the file .#use...
Keywords:
Status: CLOSED DUPLICATE of bug 2075527
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-03 06:08 UTC by hannes
Modified: 2022-12-15 17:47 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-11-03 08:49:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description hannes 2022-11-03 06:08:49 UTC
Description of problem:
I've upgraded this notebook from f36 to f37 and I also needed to restore my backup, since the harddrive died before the upgrade. I can't figure out where that file actually is and because it changes the name at each boot, I can't use the solution proposed to allow the access.

SELinux outpu:

SELinux is preventing journal-offline from relabelto access on the file .#user-1001.

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

If you believe that journal-offline should be allowed relabelto access on the .#user-1001 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                .#user-1001@3d14fe66e7734945850499a9270674b6-
                              0000000000120899-
                              0005ec7637ed9998.journal864ed9dc59dbd73f [ file ]
Source                        journal-offline
Source Path                   journal-offline
Port                          <Unknown>
Host                          newcaprica
Source RPM Packages           Target RPM Packages           SELinux Policy RPM            selinux-policy-targeted-37.14-1.fc37.noarch
Local Policy RPM              selinux-policy-targeted-37.14-1.fc37.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     newcaprica
Platform                      Linux newcaprica 6.0.5-300.fc37.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Wed Oct 26 17:24:18 UTC 2022
                              x86_64 x86_64
Alert Count                   2
First Seen                    2022-11-03 06:59:59 CET
Last Seen                     2022-11-03 06:59:59 CET
Local ID                      8891097b-361f-464e-ac0a-ada5e7731afa

Raw Audit Messages
type=AVC msg=audit(1667455199.846:331): avc:  denied  { relabelto } for  pid=570 comm="journal-offline" name=".#user-1001" dev="sda3" ino=1712485 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file permissive=0


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

Comment 1 Zdenek Pytela 2022-11-03 08:49:24 UTC

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


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