* [PATCH 1/7] secid reconciliation-v02
@ 2006-09-08 16:50 ` Venkat Yekkirala
0 siblings, 0 replies; 5+ messages in thread
From: Venkat Yekkirala @ 2006-09-08 16:50 UTC (permalink / raw)
To: netdev, selinux; +Cc: jmorris, sds, chanson
Currently a packet accumulates multiple security identifiers, each of a
different class, as it enters/leaves the system. This patch set reconciles these
identifiers into a single identifier while also allowing LSM (SELinux is
addressed in this patch set) to impose flow control checks based on the
identifiers.
The reconciliation steps for SELinux are explained in the Labeled Networking
document at:
http://marc.theaimsgroup.com/?l=linux-netdev&m=115136637800361&w=2
with the change that SELinux transition rules are used when available
to arrive at the new secid.
The following are the identifiers handled here:
1. secmark on the skb
2. xfrm security identifier associated with the skb if it used any xfrms,
a zero secid otherwise.
This patch: Add new flask definitions to SELinux
Adds a new avperm "flow_in" to arbitrate among the identifiers on the
inbound (input/forward). Also adds a new avperm "flow_out" to enable flow
control checks on the outbound (output/forward), addressed in this patch
as well.
Signed-off-by: Venkat Yekkirala <vyekkirala@TrustedCS.com>
---
security/selinux/include/av_perm_to_string.h | 2 ++
security/selinux/include/av_permissions.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/security/selinux/include/av_perm_to_string.h b/security/selinux/include/av_perm_to_string.h
index 09fc8a2..1e65d28 100644
--- a/security/selinux/include/av_perm_to_string.h
+++ b/security/selinux/include/av_perm_to_string.h
@@ -245,6 +245,8 @@
S_(SECCLASS_PACKET, PACKET__SEND, "send")
S_(SECCLASS_PACKET, PACKET__RECV, "recv")
S_(SECCLASS_PACKET, PACKET__RELABELTO, "relabelto")
+ S_(SECCLASS_PACKET, PACKET__FLOW_IN, "flow_in")
+ S_(SECCLASS_PACKET, PACKET__FLOW_OUT, "flow_out")
S_(SECCLASS_KEY, KEY__VIEW, "view")
S_(SECCLASS_KEY, KEY__READ, "read")
S_(SECCLASS_KEY, KEY__WRITE, "write")
diff --git a/security/selinux/include/av_permissions.h b/security/selinux/include/av_permissions.h
index 81f4f52..2faf3d8 100644
--- a/security/selinux/include/av_permissions.h
+++ b/security/selinux/include/av_permissions.h
@@ -962,6 +962,8 @@ #define APPLETALK_SOCKET__NAME_BIND
#define PACKET__SEND 0x00000001UL
#define PACKET__RECV 0x00000002UL
#define PACKET__RELABELTO 0x00000004UL
+#define PACKET__FLOW_IN 0x00000008UL
+#define PACKET__FLOW_OUT 0x00000010UL
#define KEY__VIEW 0x00000001UL
#define KEY__READ 0x00000002UL
--
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 related [flat|nested] 5+ messages in thread
* [PATCH 1/7] secid reconciliation-v02
@ 2006-09-08 16:50 ` Venkat Yekkirala
0 siblings, 0 replies; 5+ messages in thread
From: Venkat Yekkirala @ 2006-09-08 16:50 UTC (permalink / raw)
To: netdev, selinux; +Cc: jmorris, sds, chanson
Currently a packet accumulates multiple security identifiers, each of a
different class, as it enters/leaves the system. This patch set reconciles these
identifiers into a single identifier while also allowing LSM (SELinux is
addressed in this patch set) to impose flow control checks based on the
identifiers.
The reconciliation steps for SELinux are explained in the Labeled Networking
document at:
http://marc.theaimsgroup.com/?l=linux-netdev&m=115136637800361&w=2
with the change that SELinux transition rules are used when available
to arrive at the new secid.
The following are the identifiers handled here:
1. secmark on the skb
2. xfrm security identifier associated with the skb if it used any xfrms,
a zero secid otherwise.
This patch: Add new flask definitions to SELinux
Adds a new avperm "flow_in" to arbitrate among the identifiers on the
inbound (input/forward). Also adds a new avperm "flow_out" to enable flow
control checks on the outbound (output/forward), addressed in this patch
as well.
Signed-off-by: Venkat Yekkirala <vyekkirala@TrustedCS.com>
---
security/selinux/include/av_perm_to_string.h | 2 ++
security/selinux/include/av_permissions.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/security/selinux/include/av_perm_to_string.h b/security/selinux/include/av_perm_to_string.h
index 09fc8a2..1e65d28 100644
--- a/security/selinux/include/av_perm_to_string.h
+++ b/security/selinux/include/av_perm_to_string.h
@@ -245,6 +245,8 @@
S_(SECCLASS_PACKET, PACKET__SEND, "send")
S_(SECCLASS_PACKET, PACKET__RECV, "recv")
S_(SECCLASS_PACKET, PACKET__RELABELTO, "relabelto")
+ S_(SECCLASS_PACKET, PACKET__FLOW_IN, "flow_in")
+ S_(SECCLASS_PACKET, PACKET__FLOW_OUT, "flow_out")
S_(SECCLASS_KEY, KEY__VIEW, "view")
S_(SECCLASS_KEY, KEY__READ, "read")
S_(SECCLASS_KEY, KEY__WRITE, "write")
diff --git a/security/selinux/include/av_permissions.h b/security/selinux/include/av_permissions.h
index 81f4f52..2faf3d8 100644
--- a/security/selinux/include/av_permissions.h
+++ b/security/selinux/include/av_permissions.h
@@ -962,6 +962,8 @@ #define APPLETALK_SOCKET__NAME_BIND
#define PACKET__SEND 0x00000001UL
#define PACKET__RECV 0x00000002UL
#define PACKET__RELABELTO 0x00000004UL
+#define PACKET__FLOW_IN 0x00000008UL
+#define PACKET__FLOW_OUT 0x00000010UL
#define KEY__VIEW 0x00000001UL
#define KEY__READ 0x00000002UL
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/7] secid reconciliation-v02
2006-09-08 16:50 ` Venkat Yekkirala
(?)
@ 2006-09-18 19:44 ` Stephen Smalley
2006-09-18 23:09 ` James Morris
-1 siblings, 1 reply; 5+ messages in thread
From: Stephen Smalley @ 2006-09-18 19:44 UTC (permalink / raw)
To: Venkat Yekkirala
Cc: Daniel J Walsh, Christopher J. PeBenito, Joshua Brindle, selinux,
jmorris, chanson
On Fri, 2006-09-08 at 11:50 -0500, Venkat Yekkirala wrote:
> Currently a packet accumulates multiple security identifiers, each of a
> different class, as it enters/leaves the system. This patch set reconciles these
> identifiers into a single identifier while also allowing LSM (SELinux is
> addressed in this patch set) to impose flow control checks based on the
> identifiers.
>
> The reconciliation steps for SELinux are explained in the Labeled Networking
> document at:
> http://marc.theaimsgroup.com/?l=linux-netdev&m=115136637800361&w=2
> with the change that SELinux transition rules are used when available
> to arrive at the new secid.
>
> The following are the identifiers handled here:
>
> 1. secmark on the skb
> 2. xfrm security identifier associated with the skb if it used any xfrms,
> a zero secid otherwise.
>
> This patch: Add new flask definitions to SELinux
>
> Adds a new avperm "flow_in" to arbitrate among the identifiers on the
> inbound (input/forward). Also adds a new avperm "flow_out" to enable flow
> control checks on the outbound (output/forward), addressed in this patch
> as well.
What does the resulting policy look like given this sequence of checks
and transitions? How does this integrate with the current refpolicy-
secmark / netfilter_contexts rules or what would you replace them with?
What are some samples of how one might configure xfrm in combination
with secmark to achieve useful goals? Does this help with the usability
issues raised by Dan?
I think answering the above questions would help to make clearer whether
the patches are on the right track, as well as motivate their acceptance
if they are.
--
Stephen Smalley
National Security Agency
--
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
* Re: [PATCH 1/7] secid reconciliation-v02
2006-09-18 19:44 ` Stephen Smalley
@ 2006-09-18 23:09 ` James Morris
0 siblings, 0 replies; 5+ messages in thread
From: James Morris @ 2006-09-18 23:09 UTC (permalink / raw)
To: Stephen Smalley
Cc: Venkat Yekkirala, Daniel J Walsh, Christopher J. PeBenito,
Joshua Brindle, selinux, chanson, Paul Moore
On Mon, 18 Sep 2006, Stephen Smalley wrote:
> I think answering the above questions would help to make clearer whether
> the patches are on the right track, as well as motivate their acceptance
> if they are.
I would also recommend working with Paul Moore to make a final patchset
which addresses all of the issues for xfrm labeling and CIPSO, so that we
can get this stuff completed upstream and in the distros.
- James
--
James Morris
<jmorris@namei.org>
--
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
* RE: [PATCH 1/7] secid reconciliation-v02
@ 2006-09-20 19:51 Venkat Yekkirala
0 siblings, 0 replies; 5+ messages in thread
From: Venkat Yekkirala @ 2006-09-20 19:51 UTC (permalink / raw)
To: Stephen Smalley
Cc: Daniel J Walsh, Christopher J. PeBenito, Joshua Brindle, selinux,
jmorris, Chad Hanson
> What does the resulting policy look like given this sequence of checks
> and transitions? How does this integrate with the current refpolicy-
> secmark / netfilter_contexts rules or what would you replace
> them with?
> What are some samples of how one might configure xfrm in combination
> with secmark to achieve useful goals? Does this help with
> the usability
> issues raised by Dan?
I am hoping the thread at
http://marc.theaimsgroup.com/?l=selinux&m=115870100405571&w=2
has addressed the above. Please let me know if it didn't.
--
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:[~2006-09-20 19:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-08 16:50 [PATCH 1/7] secid reconciliation-v02 Venkat Yekkirala
2006-09-08 16:50 ` Venkat Yekkirala
2006-09-18 19:44 ` Stephen Smalley
2006-09-18 23:09 ` James Morris
-- strict thread matches above, loose matches on Subject: below --
2006-09-20 19:51 Venkat Yekkirala
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.