All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ole Kliemann <ole@plastictree.net>
To: selinux@tycho.nsa.gov
Subject: network packet context
Date: Wed, 29 Aug 2012 15:02:33 +0200	[thread overview]
Message-ID: <20120829130233.GA14196@telmora.telvanni> (raw)

[-- 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 --]

             reply	other threads:[~2012-08-29 13:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-29 13:02 Ole Kliemann [this message]
2012-08-29 14:38 ` network packet context Stephen Smalley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120829130233.GA14196@telmora.telvanni \
    --to=ole@plastictree.net \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.