RE: [PATCH 7/7] secid reconciliation-v02: Enforcement for SELinux

From: Venkat Yekkirala <hidden>
Date: 2006-09-18 19:15:31
Also in: selinux

On Fri, 8 Sep 2006, Venkat Yekkirala wrote:
quoted
+	if (selinux_compat_net) {
+		err = selinux_xfrm_decode_session(skb, &peersid, 0);
+		BUG_ON(err);
I'm pretty sure this should not be a BUG_ON.  IIUC, you want 
to panic the 
kernel because one of the nested SAs has a different security context.
No, we are sending in 0 for the ckall param by which we are telling
the function NOT to do any checks, but to simply set the return param
peersid to the secid on the first xfrm if any and succeed by returning 0.
Must not fail.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help