Home | Downloads | Fórums | Notícias | Preferências | Galeria | Cadastro | Wiki-BR
 

[ Comunidade Fedora Brasil ]: Forums



Comunidade Fedora Brasil :: Exibir tópico - SELinux não deixa NFS funcionar direito [Resolvido]
 FAQFAQ   PesquisarPesquisar   GruposGrupos   PerfilPerfil   Entrar e ver Mensagens ParticularesEntrar e ver Mensagens Particulares   LoginLogin 

SELinux não deixa NFS funcionar direito [Resolvido]

 
Novo Tópico   Responder Mensagem    Comunidade Fedora Brasil - Índice do Fórum -> Sistema/Configurações
Exibir mensagem anterior :: Exibir próxima mensagem  
Autor Mensagem
zekkerj
Novato
Novato


Registrado em: Jul 26, 2007
Mensagens: 26

MensagemEnviada: Ter Ago 14, 2007 10:16 pm    Assunto: SELinux não deixa NFS funcionar direito [Resolvido] Responder com Citação

Fala Comunidade,

Tô tentando compartilhar um diretório baseado numa máquina FC7 com um cliente Kurumin 7 e tô apanhando Sad

Primeiro a máquina Kurumin 7 dizia que o servidor Fedora tava fora do ar, descobri que o problema era o firewall do Fedora q tava barrando a porta SunRPC.

Agora na hora que eu mando o Kurumin montar o compartilhamento, o SELinux barra dois processos do serviço nfs:

Citação:
Summary
SELinux is preventing /sbin/rpc.statd (rpcd_t) "write" to <Unknown>
(sysctl_fs_t).

Detailed Description
SELinux denied access requested by /sbin/rpc.statd. It is not expected that
this access is required by /sbin/rpc.statd and this access may signal an
intrusion attempt. It is also possible that the specific version or
configuration of the application is causing it to require additional access.

Allowing Access
Sometimes labeling problems can cause SELinux denials. You could try to
restore the default system file context for <Unknown>, restorecon -v
<Unknown> If this does not work, there is currently no automatic way to
allow this access. Instead, you can generate a local policy module to allow
this access - see http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385
Or you can disable SELinux protection altogether. Disabling SELinux
protection is not recommended. Please file a
http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.

Additional Information

Source Context system_u:system_r:rpcd_t
Target Context system_u:object_r:sysctl_fs_t
Target Objects None [ file ]
Affected RPM Packages nfs-utils-1.1.0-3.fc7 [application]
Policy RPM
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Permissive
Plugin Name plugins.catchall_file
Host Name fedora7.wvaeditora
Platform Linux fedora7.wvaeditora 2.6.21-1.3228.fc7 #1 SMP
Tue Jun 12 15:37:31 EDT 2007 i686 athlon
Alert Count 2
First Seen Ter 14 Ago 2007 21:46:24 BRT
Last Seen Ter 14 Ago 2007 21:47:26 BRT
Local ID a8f8ae16-8432-47b1-9294-ecdd4312d6dd
Line Numbers

Raw Audit Messages

avc: denied { write } for comm="rpc.statd" egid=0 euid=0 exe="/sbin/rpc.statd"
exit=8 fsgid=0 fsuid=0 gid=0 items=0 pid=15567
scontext=system_u:system_r:rpcd_t:s0 sgid=0 subj=system_u:system_r:rpcd_t:s0
suid=0 tclass=file tcontext=system_u:object_r:sysctl_fs_t:s0 tty=(none) uid=0


Citação:
Summary
SELinux is preventing /usr/sbin/sm-notify (rpcd_t) "read" to /usr/sbin/sm-
notify (bin_t).

Detailed Description
SELinux denied access requested by /usr/sbin/sm-notify. It is not expected
that this access is required by /usr/sbin/sm-notify and this access may
signal an intrusion attempt. It is also possible that the specific version
or configuration of the application is causing it to require additional
access.

Allowing Access
Sometimes labeling problems can cause SELinux denials. You could try to
restore the default system file context for /usr/sbin/sm-notify, restorecon
-v /usr/sbin/sm-notify If this does not work, there is currently no
automatic way to allow this access. Instead, you can generate a local
policy module to allow this access - see http://fedora.redhat.com/docs
/selinux-faq-fc5/#id2961385 Or you can disable SELinux protection
altogether. Disabling SELinux protection is not recommended. Please file a
http://bugzilla.redhat.com/bugzilla/enter_bug.cgi against this package.

Additional Information

Source Context system_u:system_r:rpcd_t
Target Context system_u:object_r:bin_t
Target Objects /usr/sbin/sm-notify [ file ]
Affected RPM Packages nfs-utils-1.1.0-3.fc7 [application]nfs-
utils-1.1.0-3.fc7 [target]
Policy RPM
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Permissive
Plugin Name plugins.catchall_file
Host Name fedora7.wvaeditora
Platform Linux fedora7.wvaeditora 2.6.21-1.3228.fc7 #1 SMP
Tue Jun 12 15:37:31 EDT 2007 i686 athlon
Alert Count 2
First Seen Ter 14 Ago 2007 21:46:23 BRT
Last Seen Ter 14 Ago 2007 21:47:26 BRT
Local ID 4461bcca-d435-43ac-91a1-d82b9a183393
Line Numbers

Raw Audit Messages

avc: denied { read } for comm="sm-notify" dev=sda3 egid=0 euid=0 exe="/usr/sbin
/sm-notify" exit=0 fsgid=0 fsuid=0 gid=0 items=0 name="sm-notify"
path="/usr/sbin/sm-notify" pid=15568 scontext=system_u:system_r:rpcd_t:s0 sgid=0
subj=system_u:system_r:rpcd_t:s0 suid=0 tclass=file
tcontext=system_u:object_r:bin_t:s0 tty=(none) uid=0



alguém sabe como eu faço pra liberar esses processos sem ter que tirar o SELinux todo?

vlw


Editado pela última vez por zekkerj em Qui Ago 16, 2007 12:02 am, num total de 1 vez
Voltar ao Topo
Ver o perfil de Usuários Enviar Mensagem Particular
zekkerj
Novato
Novato


Registrado em: Jul 26, 2007
Mensagens: 26

MensagemEnviada: Qui Ago 16, 2007 12:01 am    Assunto: Responder com Citação

Up e resolvido.

No fim, era apenas o firewall... ou pelo menos eu acho que era, pois o erro do SELinux não voltou a acontecer.

Tive que colocar uma regra no firewall liberando a entrada de todas as mensagens UDP vindas da rede local. Mas foi tiro e queda.
Voltar ao Topo
Ver o perfil de Usuários Enviar Mensagem Particular
Mostrar os tópicos anteriores:   
Novo Tópico   Responder Mensagem    Comunidade Fedora Brasil - Índice do Fórum -> Sistema/Configurações Todos os horários são GMT - 3 Hours
Página 1 de 1

 
Ir para:  
Enviar Mensagens Novas: Proibido.
Responder Tópicos Proibido
Editar Mensagens: Proibido.
Excluir Mensagens: Proibido.
Votar em Enquetes: Proibido.

Powered by phpBB © 2001, 2005 phpBB Group

Forums ©
_