LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-14-2008, 11:05 AM   #1
ocgltd
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Fedora 12 i386
Posts: 57

Rep: Reputation: 16
SeLinux local policy won't work


I am running a program (called pluto) which is denied be selinux. I have tried several times to add the local policy for this but it still fails. Can anyone help?

Here is the syslog error:
Sep 14 11:53:22 firewall setroubleshoot: SELinux is preventing pluto (ipsec_t) "bind" to <Unknown> (ipsec_t). For complete SELinux messages. run sealert -l b7d18b53-fd62-4806-b16e-5a19c723c125

So I get the sealert info (extracting this line to file avc) as follows:
sealert -l b7d18b53-fd62-4806-b16e-5a19c723c125 | grep AVC > avc
The file contains
host=firewall.ocg.ca type=AVC msg=audit(1221407602.428:4482): avc: denied { bind } for pid=24677 comm="pluto" scontext=unconfined_u:system_r:ipsec_t:s0 tcontext=unconfined_u:system_r:ipsec_t:s0 tclass=netlink_xfrm_socket

then I:
audit2allow -M local < avc
semodule -i local.pp


and finally restart my program. But the same SELinux alert appears in the syslog. What am I doing wrong?

Many thanks...
MD
 
Old 09-15-2008, 04:14 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Is it exactly the same message?
 
Old 09-15-2008, 07:55 AM   #3
ocgltd
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Fedora 12 i386
Posts: 57

Original Poster
Rep: Reputation: 16
Yes, even the same sealert number / string. That's what seems odd...
 
Old 09-16-2008, 01:28 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
The SE Linux rule Sealert says is missing IIRC is "allow ipsec_t self:netlink_xfrm_socket bind;" (Reference Policy). It seems 'pluto' is running in "unconfined_u" and I wonder it should be that way?..
 
Old 09-16-2008, 09:59 AM   #5
ocgltd
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Fedora 12 i386
Posts: 57

Original Poster
Rep: Reputation: 16
I'm afraid I'm beyond my depth on security contexts & SELinux etc...

Is there a way to cause SeLinux to allow Pluto to run in "unconfined_u" ? (Is that the limitation?)

Thanks,
MD
 
Old 09-16-2008, 02:10 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I don't know policy for IPSEC, could look it up in the Reference Policy (policy source RPM or Tresys?).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice on SElinux Policy Editors? mrbinky3000 Linux - Security 1 06-03-2007 02:46 PM
ncpfs selinux policy rhoekstra Linux - Security 2 10-17-2006 03:58 AM
selinux policy or attribute ?? dansawyer Linux - Security 3 09-12-2006 02:08 AM
SELinux policy and Cisco vpn client NetArch Linux - Security 1 10-28-2005 03:21 AM
selinux:policy.conf silvercloud Linux - Enterprise 0 08-23-2005 04:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration