All of lore.kernel.org
 help / color / mirror / Atom feed
* denial even with appropriate allow rules
@ 2010-04-23 21:49 Thomson, David-P63356
  2010-04-26 13:07 ` Stephen Smalley
  0 siblings, 1 reply; 5+ messages in thread
From: Thomson, David-P63356 @ 2010-04-23 21:49 UTC (permalink / raw)
  To: SELinux

I'm helping a co-worker with a policy problem.  In permissive he gets a
couple denials:

type=AVC msg=audit(1272049866.598:32539): avc:  denied  { send_msg } for
saddr=192.168.99.128 src=32786 daddr=192.168.99.1 dest=22 netif=eth0
scontext=system_u:system_r:sshd_t tcontext=system_u:object_r:ssh_port_t
tclass=tcp_socket

type=AVC msg=audit(1272049866.598:32540): avc:  denied  { recv_msg } for
saddr=192.168.99.1 src=22 daddr=192.168.99.128 dest=32786 netif=eth0
scontext=system_u:system_r:sshd_t tcontext=system_u:object_r:ssh_port_t
tclass=tcp_socket

I've checked his source policy and even checked the policy.18 file on
his target machine, they both show:

Allow sshd_t ssh_port_t : tcp_socket { recv_msg send_msg ... };

The only time I've seen it ignore networking policy was when I was doing
it the old (pre-secmark) way but forgot to put selinux_compat_net=1 on
the kernel line.  His kernel version is 2.6.9 so this should predate
secmark and need no flag, correct?  There is no /selinux/compat_net file
on the machine so I assume it should just work.

This is a fairly old and well "customized" policy, if that matters.  


Any ideas?

Dave Thomson


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-27 12:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-23 21:49 denial even with appropriate allow rules Thomson, David-P63356
2010-04-26 13:07 ` Stephen Smalley
2010-04-26 17:55   ` Thomson, David-P63356
2010-04-26 19:17     ` Stephen Smalley
2010-04-27 12:49     ` Daniel J Walsh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.