Bug 2139623
| Summary: | SELinux is preventing journal-offline from relabelto access on the file .#user-1001@ | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | hannes <johannes.lips> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 37 | CC: | dwalsh, grepl.miroslav, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-03 08:49:24 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 2075527 *** |
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