: Kill unused decap state argument
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 12 lines · Linux Kernel
commit
e695633e21ffb6a443a8c2f8b3f095c7f1a48eb0
tree52a679683a11eb42ec5888309a82ec5811a21e03
parent15901dc93fa4253bfb3661644ecad67c2e83213c
author Herbert Xu <[email protected]> Sat, 01 Apr 2006 16:52:46 -0800 committer David S. Miller <[email protected]> Sat, 01 Apr 2006 16:52:46 -0800[IPSEC]: Kill unused decap state argument
This patch removes the
decap_stateargument from the xfrm input hook. Previously this function allowed the input hook to share state with thepost_inputhook. The latter has since been removed.
Quoted 7 lines
The only purpose for it now is to check the encap type. However, it is easier and better to move the encap type check to the generic
xfrm_rcvfunction. This allows us to get rid of the decap state argument altogether.Signed-off-by Herbert Xu <[email protected]>Signed-off-by David S. Miller <[email protected]>
This breaks SELinux compilation.security/selinux/xfrm.c: In function 'selinux_socket_getpeer_dgram':security/selinux/xfrm.c:284: error: 'struct sec_path' has no member named 'x' security/selinux/xfrm.c: In function 'selinux_xfrm_sock_rcv_skb':security/selinux/xfrm.c:317: error: 'struct sec_path' has no member named 'x'
Does this look sane ?
security/selinux/xfrm.c renamed from security/selinux/xfrm.c~ +2 -2
@@ -281,7 +281,7 @@ u32 selinux_socket_getpeer_dgram(structint i;for (i = sp->len-1 ; i >=0 ; i--) { -struct xfrm_state *x = sp->x[i].xvec; +struct xfrm_state *x = sp->xvec[i];if (selinux_authorizable_xfrm (x)) {struct xfrm_sec_ctx *ctx = x->security;return ctx->ctx_sid;
@@ -314,7 +314,7 @@ int selinux_xfrm_sock_rcv_skb(u32 isec_s* Only need to verify the existence of an authorizable sp. */ for (i =0 ; i < sp->len; i++) { -struct xfrm_state *x = sp->x[i].xvec; +struct xfrm_state *x = sp->xvec[i];if (x &&selinux_authorizable_xfrm (x)) goto accept;
Signature · 1 line
http://www.codemonkey.org.uk
David S. Miller
maintainerFrom: Dave Jones <[email protected]>
Date: Sun, 2 Apr 2006 23:31:34 -0500
Quoted 7 lines
This breaks SELinux compilation.
security/selinux/xfrm.c: In function 'selinux_socket_getpeer_dgram':security/selinux/xfrm.c:284: error: 'structsec_path' has no member named 'x'security/selinux/xfrm.c: In function 'selinux_xfrm_sock_rcv_skb':security/selinux/xfrm.c:317: error: 'structsec_path' has no member named 'x'Does this look sane ?
Yes it does, thanks Dave.