From: Paul Moore <paul@paul-moore.com>
To: Chris PeBenito <cpebenito@tresys.com>, selinux@tycho.nsa.gov
Subject: Re: [PATCH 1/1] Add SELinux policy capability for always checking packet and peer classes.
Date: Fri, 03 May 2013 17:24:30 -0400 [thread overview]
Message-ID: <3098007.l65VPEx95O@sifl> (raw)
In-Reply-To: <1367586339-12509-1-git-send-email-cpebenito@tresys.com>
On Friday, May 03, 2013 09:05:39 AM Chris PeBenito wrote:
> Currently the packet class in SELinux is not checked if there are no
> SECMARK rules in the security or mangle netfilter tables. Some systems
> prefer that packets are always checked, for example, to protect the system
> should the netfilter rules fail to load or if the nefilter rules
> were maliciously flushed.
>
> Add the always_check_network policy capability which, when enabled, treats
> SECMARK as enabled, even if there are no netfilter SECMARK rules and
> treats peer labeling as enabled, even if there is no Netlabel or
> labeled IPSEC configuration.
For those who have forgotten the previous discussion on this I feel the need
to renew my comment that if you are really serious about this you need to also
provide a mechanism to validate the current secmark labeling configuration
against the policy.
> Includes definition of "redhat1" SELinux policy capability, which
> exists in the SELinux userpace library, to keep ordering correct.
This is a bit of a nit, but I might suggest submitting the "redhat1" policy
capability as a distinct patch just to make it clear that it isn't really
related to this change and to also document what the "redhat1" policy
capability signifies.
> The SELinux userpace portion of this was merged last year, but this kernel
> change fell on the floor.
>
> Signed-off-by: Chris PeBenito <cpebenito@tresys.com>
It likely won't matter, but NACK'd in principle to get Chris to do this the
right way and also provide a way to validate the secmark configuration.
--
paul moore
www.paul-moore.com
--
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.
prev parent reply other threads:[~2013-05-03 21:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-03 13:05 [PATCH 1/1] Add SELinux policy capability for always checking packet and peer classes Chris PeBenito
2013-05-03 18:11 ` redhat1 polcap (was Re: [PATCH 1/1] Add SELinux policy capability for always checking packet and peer classes.) Sven Vermeulen
2013-05-06 13:55 ` Christopher J. PeBenito
2013-05-06 18:43 ` Sven Vermeulen
2013-05-03 21:24 ` Paul Moore [this message]
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=3098007.l65VPEx95O@sifl \
--to=paul@paul-moore.com \
--cc=cpebenito@tresys.com \
--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.