Bug 220794 - iptables gives an avc error on type 'nscd_var_run_t'
Summary: iptables gives an avc error on type 'nscd_var_run_t'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-27 02:42 UTC by Need Real Name
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-22 14:03:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2006-12-27 02:42:01 UTC
Description of problem:
Running iptables gives the following avc error:

audit(1167186952.297:105): avc:  denied  { search } for  pid=9262
comm="iptables-restor" name="nscd" dev=hda7 ino=584937
scontext=user_u:system_r:iptables_t:s0
tcontext=system_u:object_r:nscd_var_run_t:s0 tclass=dir

My guess is that this occurs when iptables looks up chains that have a machine
name rather than ip address as the source or destination addresses.

I would think that this should be allowed:

Solution would be to allow something like the following:

require {
        class dir search;
        type iptables_t;
        type nscd_var_run_t;
        role system_r;
};

allow iptables_t nscd_var_run_t:dir search;

Comment 1 Daniel Walsh 2006-12-29 15:23:00 UTC
Fixed in selinux-policy-2.4.6-20

Comment 2 Need Real Name 2007-01-04 05:49:57 UTC
When are these versions of selinux-policy going to be pushed to the 'updates'
server?

Currently 'updates' seems stuck at version 2.4.6-13 and even 'testing' is only
up to '2.4.6-17'

Thanks


Comment 3 Daniel Walsh 2007-01-05 21:06:58 UTC
'2.4.6-17 should be released and
'2.4.6-23 is in going into testing today.

Comment 4 Daniel Walsh 2007-08-22 14:03:04 UTC
Closed as all fixes are in the current release


Note You need to log in before you can comment on or make changes to this bug.