Bug 149602 - nscd, WINS, and SELinux don't mix
Summary: nscd, WINS, and SELinux don't mix
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: policy
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Russell Coker
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-02-24 12:52 UTC by Nicholas Miell
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version: 1.25.4-10.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-15 16:00:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nicholas Miell 2005-02-24 12:52:40 UTC
Attempting to use the wins NSS module from samba-common with nscd results in the
following:

avc:  denied  { search } for  pid=29246 exe=/usr/sbin/nscd name=samba dev=dm-1
ino=2229524 scontext=root:system_r:nscd_t tcontext=system_u:object_r:samba_etc_t
tclass=dir
avc:  denied  { search } for  pid=29246 exe=/usr/sbin/nscd name=samba dev=dm-1
ino=2229524 scontext=root:system_r:nscd_t tcontext=system_u:object_r:samba_etc_t
tclass=dir
avc:  denied  { getattr } for  pid=29246 exe=/usr/sbin/nscd
path=/var/cache/samba dev=dm-1 ino=7241973 scontext=root:system_r:nscd_t
tcontext=system_u:object_r:samba_var_t tclass=dir
avc:  denied  { read } for  pid=29246 exe=/usr/sbin/nscd name=unexpected.tdb
dev=dm-1 ino=7242850 scontext=root:system_r:nscd_t tcontext=root:object_r:var_t
tclass=file
avc:  denied  { getattr } for  pid=29246 exe=/usr/sbin/nscd
path=/var/cache/samba dev=dm-1 ino=7241973 scontext=root:system_r:nscd_t
tcontext=system_u:object_r:samba_var_t tclass=dir

NSCD may also want write access to things in /var/cache/samba (it being a
cache), but it obviously doesn't get that far.

The winbind NSS module may also trigger something similar, although since that
talks to an external daemon, it'll probably require different rules.

Comment 1 Daniel Walsh 2005-02-24 15:25:27 UTC
Please update to the latest policy 

yum update selinux-policy-targeted

And try it again.

Comment 2 Nicholas Miell 2005-02-24 15:52:59 UTC
After updating to selinux-policy-targeted-1.21.14-2, relabeling /var/cache/samba
(mostly var_t -> samba_var_t, nothing that should matter) and restarting nscd, I
still get the same denials.


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