Bug 145796 - After installing libselinux-1.21.1-1, policycoreutils-1.21.1-1, and libsepol-1.2.1.1-1, avc: denied in dmesg
Summary: After installing libselinux-1.21.1-1, policycoreutils-1.21.1-1, and libsepol-...
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-01-21 17:51 UTC by sangu
Modified: 2007-11-30 22:10 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2005-01-25 15:26:20 UTC


Attachments (Terms of Use)
dmesg (20.10 KB, text/plain)
2005-01-21 17:51 UTC, sangu
no flags Details

Description sangu 2005-01-21 17:51:32 UTC
Description of problem:
After installing libselinux-1.21.1-1, policycoreutils-1.21.1-1, and
libsepol-1.2.1.1-1, "avc: denied" happens in dmesg.

[...]
audit(1106323997.144:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.280:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.281:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.281:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.281:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.281:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.339:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.382:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.382:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.382:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.382:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.382:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.382:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.382:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.382:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.382:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
audit(1106323997.383:0): avc:  denied  { search } for  pid=3009
exe=/usr/sbin/dhcpd name=/ dev=tmpfs ino=606 scontext=user_u:system_r:dhcpd_t
tcontext=user_u:object_r:tmpfs_t tclass=dir
[...]

Version-Release number of selected component (if applicable):
selinux-policy-targeted-1.17.30-2.72.

How reproducible:
Always

Steps to Reproduce:
1. Install libselinux-1.21.1-1, policycoreutils-1.21.1-1, and libsepol-1.2.1.1-1.
2.
3.
  
Actual results:


Expected results:


Additional info:

dhcp-3.0.2rc3-1

Comment 1 sangu 2005-01-21 17:51:33 UTC
Created attachment 110064 [details]
dmesg

Comment 2 sangu 2005-01-21 18:02:10 UTC
My linux Box's policy is targeted.

$cat /etc/sysconfig/selinux
# This is a comment field in /etc/sysconfig/selinux
#
# Allowable values are:
#     enforcing  -  enables enforcing mode
#     permissive -  enables permissive mode
#     disabled   -  disables SELinux
SELINUX=Enforcing

# SELINUXTYPE= can take one of these two values:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted


Comment 3 Daniel Walsh 2005-01-21 19:00:40 UTC
Is this a machine that did not have SELinux on it before you added those packages.

If yes then you need to 
touch /.autorelabel 
reboot 

to label the file system.  If you can not login you can add 
enforcing=0 to the boot line to turn off SELinux enforcing mode.



Comment 4 sangu 2005-01-22 03:39:51 UTC
After doing "touch /.autorelabel;reboot", the same problem happens.

But after installing old versions (libselinux-1.20.1-2
, policycoreutils-1.20.1-2,libsepol-1.2.1-1), this problem disappears.


Addition Info: 
Update to selinux-policy-targeted-1.17.30-2.73.


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