Bug 220794

Summary: iptables gives an avc error on type 'nscd_var_run_t'
Product: [Fedora] Fedora Reporter: Need Real Name <bugzilla>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Current Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-22 14:03:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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