Quote:
Originally Posted by domg472
Hi,
Do you mind giving us a bit more details. I would for example like to have a look at the complete avc denial, not just the short version that you have provided.
Also i would like to know what you did that caused this to happen.
From the information that you have supplied my guess is that this is a "leaked file descriptor" issue, either caused by a bug in a program or by using a program in a way not recommended.
A solution for leaked file descriptor issues was posted just yesterday on the fedora-selinux mailing list, which is a great resource for solving selinux issues.
here is a quote (thanks dwalsh)
cat > kdeleaks.te << __eof
policy_module(kdeleaks, 1.0)
require {
type unconfined_t;
attribute domain;
class unix_stream_socket { read write };
}
#============= dhcpc_t ==============
dontaudit domain unconfined_t:unix_stream_socket { read write };
_eof
# make -f /usr/share/selinux/devel/Makefile
# semodule -i kdeleaks.pp
Here is the fedora-selinux mail list archive:
http://marc.info/?l=fedora-selinux-list&r=1&w=2
And here is the posting that discusses (what i think might be similar to ) your issue:
http://marc.info/?l=fedora-selinux-l...3728427238&w=2
hth,
|
Thanks for the info. I have not read your solution carefully yet. But I am going to post the detail out anyway.
"
SELinux is preventing ntpd (ntpd_t) "read write" unconfined_t.
detail: SELinux denied access requested by ntpd. It is not expected that this access is required by ntpd and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access.
access permission(?): You can generate a local policy module to allow this access - see FAQ Or you can disable SELinux protection altogether. Disabling SELinux protection is not recommended. Please file a bug report against this package.
additional detail
source code(?):**unconfined_u:system_r:ntpd_t:s0
target code(?):**unconfined_u:unconfined_r:unconfined_t:s 0
target (?):**socket [ unix_stream_socket ]
souce:**ntpd
source directory:**/usr/sbin/ntpd
socket (?):**unknown
machine:**XXXX
souce RPM package:**ntp-4.2.4p6-1.fc10
target RPM package:*
RPM policy:**selinux-policy-3.5.13-46.fc10
activate Selinux:**True
policy type:**targeted
activat MLS:**True
Enforcing mode:**Enforcing
plugin name:**catchall
machine name:**XXXXX
platform:**Linux Lenovo-SR410A 2.6.27.19-170.2.35.fc10.i686 #1 SMP Mon Feb 23 13:21:22 EST 2009 i686 i686
warning count:**5
First occur:**2009,03,08 sun 01:10:21
Latest occur:**2009.03.09 Mon 08:13:59
local ID:**45d62d7b-813e-4ea3-be37-460ccef9f2e0
Line numember(?):*
*Original core(?) info:
node=Lenovo-SR410A type=AVC msg=audit(1236600839.981:74): avc: denied { read write } for pid=7452 comm="ntpd" path="socket:[303249]" dev=sockfs ino=303249 scontext=unconfined_u:system_r:ntpd_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0 tclass=unix_stream_socket node=Lenovo-SR410A type=SYSCALL msg=audit(1236600839.981:74): arch=40000003 syscall=11 success=yes exit=0 a0=8363968 a1=8362f80 a2=8363ea0 a3=0 items=0 ppid=7451 pid=7452 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="ntpd" exe="/usr/sbin/ntpd" subj=unconfined_u:system_r:ntpd_t:s0 key=(null)
"
Sorry for the modification. My OS had been localize. So, I have to translate those term into English. If it does not make sense I will tried to change the language orientation of the system, then do it again.