Bug 2152588
| Summary: | SE Linux prohibits jounal-offline from relabeling some file | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tiago d'Almeida <tjamadeira> |
| 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, 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-12-12 12:25: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: SElinux is prohiting journal-offline to relabel some file. Version-Release number of selected component (if applicable): How reproducible: I do not know. Steps to Reproduce: 1. Turn on the computer and wait to Cinnamon to boot. 2. Check if there is some SELinux alert. Actual results: An error is launched at boot time. Expected results: No error. Additional info: SELinux está a proibir journal-offline de relabelfrom aceder a ficheiro .#user-1000. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that journal-offline should be allowed relabelfrom access on the .#user-1000 file by default. Em seguida you should report this as a bug. You can generate a local policy module to allow this access. Fazer allow this access for now by executing: # ausearch -c 'journal-offline' --raw | audit2allow -M my-journaloffline # semodule -X 300 -i my-journaloffline.pp Informações adicionais: Contexto de Origem system_u:system_r:syslogd_t:s0 Contexto de Destino system_u:object_r:var_log_t:s0 Objectos de Destino .#user-1000@41d9411cf6734ed7bfb0b264b6ca98b2- 000000000002b899- 0005edefbd2ff450.journal399424ec438b793d [ file ] Fonte journal-offline Caminho de Origem journal-offline Porto <Desconhecido> Máquina .... Pacotes RPM Fonte Pacotes RPM Destino SELinux Policy RPM selinux-policy-targeted-37.14-1.fc37.noarch Local Policy RPM selinux-policy-targeted-37.14-1.fc37.noarch Selinux Activo True Tipo de Política targeted Modo de Execução Forçada Enforcing Nome da Máquina .... Plataforma Linux .... 6.0.9-300.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 16 17:36:22 UTC 2022 x86_64 x86_64 Contador de Alertas 2 Primeira Vez Visto 2022-12-12 11:03:06 WET Última Vez Visto 2022-12-12 11:03:08 WET ID Local dc9060a7-17ba-407f-a64d-38582b3f80bd Mensagens de Auditoria em Bruto type=AVC msg=audit(1670842988.901:222): avc: denied { relabelfrom } for pid=508 comm="journal-offline" name=".#user-1000" dev="sda6" ino=352499 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,relabelfrom