mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
[SELINUX] Fix build after ipsec decap state changes.
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' Signed-off-by: Dave Jones <davej@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
66004a6ca2
commit
6764472631
1 changed files with 2 additions and 2 deletions
|
@ -281,7 +281,7 @@ u32 selinux_socket_getpeer_dgram(struct sk_buff *skb)
|
|||
int 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_sid, struct sk_buff *skb)
|
|||
* 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;
|
||||
|
|
Loading…
Reference in a new issue