All of lore.kernel.org
 help / color / mirror / Atom feed
* network packet context
@ 2012-08-29 13:02 Ole Kliemann
  2012-08-29 14:38 ` Stephen Smalley
  0 siblings, 1 reply; 2+ messages in thread
From: Ole Kliemann @ 2012-08-29 13:02 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 726 bytes --]

I have another one of those 'Is it normal?' questions.

To begin with my system does not label network packets in any 
way, packets are not unlabeled_t, they just seem to be ignored by 
LSM. There is no rule of the type 'allow X Y:packet { send recv }'
required, all domains can access the network.

When I introduce just a single iptables rule utilizing SECMARK, say

    iptables -A INPUT -t security -i tun0 -j SECMARK system_u:object_r:sec_tun_t:s0

to label all packets coming in at tun0, then suddenly all traffic 
on all devices gets labeled. Those which lack an iptables rule 
get unlabeled_t. Suddenly all network is locked down and I need 
'allow X Y:packet { send recv }' rules in the policy.

Ole

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2012-08-29 14:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-29 13:02 network packet context Ole Kliemann
2012-08-29 14:38 ` Stephen Smalley

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.