All of lore.kernel.org
 help / color / mirror / Atom feed
* RES: Problem with SELinux and Squid+Winbind+Samba
@ 2004-12-08 10:36 Luis Fernando C. Talora
  2004-12-08 14:24 ` Daniel J Walsh
  2004-12-08 15:18 ` Colin Walters
  0 siblings, 2 replies; 3+ messages in thread
From: Luis Fernando C. Talora @ 2004-12-08 10:36 UTC (permalink / raw)
  To: 'Luke Kenneth Casson Leighton'; +Cc:  (SELinux@tycho.nsa.gov)

That´s the problem: I have no idea of how to build policies for SELinux...
Is there a way to remove SELinux features without reinstaling the OS from
the scratch? Or (maybe it´s better) could you please tell me where to find
some documentation about SELinux? Some tips on how to build the policies
would be nice, too... :) 

I´m using Fedora Core 3.

Thank you very much!

Regards,

_____________________
Luis Fernando C. Talora


-----Mensagem original-----
De: Luke Kenneth Casson Leighton [mailto:lkcl@lkcl.net] 
Enviada em: terça-feira, 7 de dezembro de 2004 18:41
Para: Luis Fernando C. Talora
Cc: (SELinux@tycho.nsa.gov)
Assunto: Re: Problem with SELinux and Squid+Winbind+Samba

On Tue, Dec 07, 2004 at 09:19:14AM -0200, Luis Fernando C. Talora wrote:
> Fellows,
>  
> I?m trying to put a server running Squid with Microsoft Windows Active 
> Directory integrated authentication (using Samba 3 and Winbind). When 
> I start the squid service, I get the following message (it repeats 
> itself many
> times):
>  
> Dec  7 08:48:56 svux8-250 kernel: audit(1102416536.028:0): avc:  
> denied  { getattr } for  pid=3825 exe=/usr/lib/squid/wb_ntlmauth 
> path=/var/run/winbindd/pipe dev=hda7 ino=627398 
> scontext=root:system_r:squid_t tcontext=root:object_r:var_run_t 
> tclass=sock_file
  
> Since I?m new in SELinux, I have no idea how to solve this. Could 
> someone give some help?
 
  ah.   there's quite a lot involved!

  the first thing is, ideally, to write a separate policy for winbindd,
  esp. making /var/run/winbindd have its own file context.

  then you can grant wb_ntlmmauth (or squid_t) the right to access
  /var/run/winbindd/pipe.

 ... anyone got any opinions as to whether winbind should be creating a
socket in /var/run?  is that FHS compliant?

 l.


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov
with the words "unsubscribe selinux" without quotes as the message.
===================================================================
Esta mensagem pode conter informação confidencial e/ou privilegiada.
Se você não for o destinatário ou a pessoa autorizada a receber esta 
mensagem, não deverá utilizar, copiar, alterar, divulgar a informação 
nela contida ou tomar qualquer ação baseada nessas informações. Se 
você recebeu esta mensagem por engano, por favor avise imediatamente 
o remetente, respondendo o e-mail e em seguida apague-o.Agradecemos 
sua cooperação. 

This message may contain confidential and/or privileged information. 
If you are not the addressee or authorized to receive this for the 
addressee, you must not use, copy, disclose, change, take any action 
based on this message or any information herein. If you have received
this message in error, please advise the sender immediately by reply 
e-mail and delete this message. Thank you for your cooperation.
===================================================================


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: RES: Problem with SELinux and Squid+Winbind+Samba
  2004-12-08 10:36 RES: Problem with SELinux and Squid+Winbind+Samba Luis Fernando C. Talora
@ 2004-12-08 14:24 ` Daniel J Walsh
  2004-12-08 15:18 ` Colin Walters
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel J Walsh @ 2004-12-08 14:24 UTC (permalink / raw)
  To: Luis Fernando C. Talora
  Cc: 'Luke Kenneth Casson Leighton', (SELinux@tycho.nsa.gov)

Luis Fernando C. Talora wrote:

>That´s the problem: I have no idea of how to build policies for SELinux...
>Is there a way to remove SELinux features without reinstaling the OS from
>the scratch? Or (maybe it´s better) could you please tell me where to find
>some documentation about SELinux? Some tips on how to build the policies
>would be nice, too... :) 
>
>I´m using Fedora Core 3.
>
>Thank you very much!
>
>Regards,
>
>  
>
system-config-securitylevel will allow you to adjust or turn off SELinux 
on you FC3 machine.
If you just want to turn off squid enforcement you can select
Disable SELinux protection for squid daemon
under the SELinux Service Protection list item.
Then restart the squid service.

>_____________________
>Luis Fernando C. Talora
>
>
>-----Mensagem original-----
>De: Luke Kenneth Casson Leighton [mailto:lkcl@lkcl.net] 
>Enviada em: terça-feira, 7 de dezembro de 2004 18:41
>Para: Luis Fernando C. Talora
>Cc: (SELinux@tycho.nsa.gov)
>Assunto: Re: Problem with SELinux and Squid+Winbind+Samba
>
>On Tue, Dec 07, 2004 at 09:19:14AM -0200, Luis Fernando C. Talora wrote:
>  
>
>>Fellows,
>> 
>>I?m trying to put a server running Squid with Microsoft Windows Active 
>>Directory integrated authentication (using Samba 3 and Winbind). When 
>>I start the squid service, I get the following message (it repeats 
>>itself many
>>times):
>> 
>>Dec  7 08:48:56 svux8-250 kernel: audit(1102416536.028:0): avc:  
>>denied  { getattr } for  pid=3825 exe=/usr/lib/squid/wb_ntlmauth 
>>path=/var/run/winbindd/pipe dev=hda7 ino=627398 
>>scontext=root:system_r:squid_t tcontext=root:object_r:var_run_t 
>>tclass=sock_file
>>    
>>
>  
>  
>
>>Since I?m new in SELinux, I have no idea how to solve this. Could 
>>someone give some help?
>>    
>>
> 
>  ah.   there's quite a lot involved!
>
>  the first thing is, ideally, to write a separate policy for winbindd,
>  esp. making /var/run/winbindd have its own file context.
>
>  then you can grant wb_ntlmmauth (or squid_t) the right to access
>  /var/run/winbindd/pipe.
>
> ... anyone got any opinions as to whether winbind should be creating a
>socket in /var/run?  is that FHS compliant?
>
> l.
>
>
>--
>This message was distributed to subscribers of the selinux mailing list.
>If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov
>with the words "unsubscribe selinux" without quotes as the message.
>===================================================================
>Esta mensagem pode conter informação confidencial e/ou privilegiada.
>Se você não for o destinatário ou a pessoa autorizada a receber esta 
>mensagem, não deverá utilizar, copiar, alterar, divulgar a informação 
>nela contida ou tomar qualquer ação baseada nessas informações. Se 
>você recebeu esta mensagem por engano, por favor avise imediatamente 
>o remetente, respondendo o e-mail e em seguida apague-o.Agradecemos 
>sua cooperação. 
>
>This message may contain confidential and/or privileged information. 
>If you are not the addressee or authorized to receive this for the 
>addressee, you must not use, copy, disclose, change, take any action 
>based on this message or any information herein. If you have received
>this message in error, please advise the sender immediately by reply 
>e-mail and delete this message. Thank you for your cooperation.
>===================================================================
>
>
>--
>This message was distributed to subscribers of the selinux mailing list.
>If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
>the words "unsubscribe selinux" without quotes as the message.
>  
>


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: RES: Problem with SELinux and Squid+Winbind+Samba
  2004-12-08 10:36 RES: Problem with SELinux and Squid+Winbind+Samba Luis Fernando C. Talora
  2004-12-08 14:24 ` Daniel J Walsh
@ 2004-12-08 15:18 ` Colin Walters
  1 sibling, 0 replies; 3+ messages in thread
From: Colin Walters @ 2004-12-08 15:18 UTC (permalink / raw)
  To: Luis Fernando C. Talora
  Cc: 'Luke Kenneth Casson Leighton', (SELinux@tycho.nsa.gov)

[-- Attachment #1: Type: text/plain, Size: 591 bytes --]

On Wed, 2004-12-08 at 08:36 -0200, Luis Fernando C. Talora wrote:
> That´s the problem: I have no idea of how to build policies for SELinux...
> Is there a way to remove SELinux features without reinstaling the OS from
> the scratch? 

You can disable SELinux enforcement just for Squid.
http://fedora.redhat.com/docs/selinux-faq-fc3/index.html#using-s-c-securitylevel

> Or (maybe it´s better) could you please tell me where to find
> some documentation about SELinux? 

http://fedora.redhat.com/docs/selinux-faq-fc3/index.html
And there's a lot of other links from there.


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-08 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-08 10:36 RES: Problem with SELinux and Squid+Winbind+Samba Luis Fernando C. Talora
2004-12-08 14:24 ` Daniel J Walsh
2004-12-08 15:18 ` Colin Walters

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.