diff options
Diffstat (limited to 'security/selinux/xfrm.c')
| -rw-r--r-- | security/selinux/xfrm.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/security/selinux/xfrm.c b/security/selinux/xfrm.c index c4d87d4dca7b..5b7776504e4c 100644 --- a/security/selinux/xfrm.c +++ b/security/selinux/xfrm.c | |||
| @@ -137,15 +137,9 @@ static int selinux_xfrm_sec_ctx_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_us | |||
| 137 | * Must be permitted to relabel from default socket type (process type) | 137 | * Must be permitted to relabel from default socket type (process type) |
| 138 | * to specified context | 138 | * to specified context |
| 139 | */ | 139 | */ |
| 140 | rc = avc_has_perm(tsec->sid, tsec->sid, | ||
| 141 | SECCLASS_ASSOCIATION, | ||
| 142 | ASSOCIATION__RELABELFROM, NULL); | ||
| 143 | if (rc) | ||
| 144 | goto out; | ||
| 145 | |||
| 146 | rc = avc_has_perm(tsec->sid, ctx->ctx_sid, | 140 | rc = avc_has_perm(tsec->sid, ctx->ctx_sid, |
| 147 | SECCLASS_ASSOCIATION, | 141 | SECCLASS_ASSOCIATION, |
| 148 | ASSOCIATION__RELABELTO, NULL); | 142 | ASSOCIATION__SETCONTEXT, NULL); |
| 149 | if (rc) | 143 | if (rc) |
| 150 | goto out; | 144 | goto out; |
| 151 | 145 | ||
