Skip to contentSkip to conversation

Shouldn't this avc message be dontaudited?

DISCUSSION Daniel J Walsh 3 participants 4 messages Oct 6, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

How come I am getting this avc message

Oct  6 11:58:44 localhost kernel: audit(1097078324.850:0): avc:  denied  { name_bind } for  pid=2471 exe=/usr/sbin/nscd src=953 scontext=user_u:system_r:nscd_t tcontext=system_u:object_r:rndc_port_t tclass=tcp_socket

When I have this rule?

dontaudit nscd_t reserved_port_t:{ tcp_socket udp_socket } name_bind;

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 10 lines · Daniel J Walsh

How come I am getting this avc message

Oct  6 11:58:44 localhost kernel: audit(1097078324.850:0): avc:  denied  

{ name_bind } for pid=2471 exe=/usr/sbin/nscd src=953 scontext=user_u:system_r:nscd_t tcontext=system_u:object_r:rndc_port_t tclass=tcp_socket

When I have this rule?

dontaudit nscd_t reserved_port_t:{ tcp_socket udp_socket } name_bind;

Different types - reserved_port_t (covers any otherwise unspecified reserved ports) vs. rndc_port_t. Why would nscd try binding to this port anyway?

Signature · 8 lines
Stephen Smalley <[email protected]>
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 9 lines · Stephen Smalley
Quoted 6 lines · Daniel J Walsh

How come I am getting this avc message

Oct  6 11:58:44 localhost kernel: audit(1097078324.850:0): avc:  denied  { name_bind } for  pid=2471 exe=/usr/sbin/nscd src=953 scontext=user_u:system_r:nscd_t tcontext=system_u:object_r:rndc_port_t tclass=tcp_socket

When I have this rule?

Quoted 10 lines
Quoted 3 lines

dontaudit nscd_t reserved_port_t:{ tcp_socket udp_socket } name_bind;

Different types - reserved_port_t (covers any otherwise unspecified reserved ports) vs. rndc_port_t. Why would nscd try binding to this port anyway?

I don't know. I am seeing this avc on a targeted policy machine.

Dan

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
In reply to Daniel J Walsh

ah, i got exactly the same thing: stephen assures me that this is because i am using an older version of checkpolicy with a recent version of everything-else.

by installing checkpolicy from the sf.net cvs he assures me that the problem goes away.

sure enough, i find that two weeks ago i upgraded everything but checkpolicy.

l.

Quoted 17 lines · Daniel J Walsh

How come I am getting this avc message

Oct  6 11:58:44 localhost kernel: audit(1097078324.850:0): avc:  denied  

{ name_bind } for pid=2471 exe=/usr/sbin/nscd src=953 scontext=user_u:system_r:nscd_t tcontext=system_u:object_r:rndc_port_t tclass=tcp_socket

When I have this rule?

dontaudit nscd_t reserved_port_t:{ tcp_socket udp_socket } name_bind;

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.

Signature · 13 lines
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.