Bug 2152588 - SE Linux prohibits jounal-offline from relabeling some file
Summary: SE Linux prohibits jounal-offline from relabeling some file
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-12-12 12:19 UTC by Tiago d'Almeida
Modified: 2022-12-15 17:48 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-12-12 12:25:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2144899 0 unspecified CLOSED SE Linux prohibits colord from acessing some files 2023-12-06 11:29:58 UTC

Description Tiago d'Almeida 2022-12-12 12:19:50 UTC
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

Comment 1 Zdenek Pytela 2022-12-12 12:25: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.