net: Put flowi_* prefix on AF independent members of struct flowi
I intend to turn struct flowi into a union of AF specific flowi structs. There will be a common structure that each variant includes first, much like struct sock_common. This is the first step to move in that direction. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -4306,7 +4306,7 @@ static void selinux_secmark_refcount_dec(void)
|
||||
static void selinux_req_classify_flow(const struct request_sock *req,
|
||||
struct flowi *fl)
|
||||
{
|
||||
fl->secid = req->secid;
|
||||
fl->flowi_secid = req->secid;
|
||||
}
|
||||
|
||||
static int selinux_tun_dev_create(void)
|
||||
|
@@ -135,10 +135,10 @@ int selinux_xfrm_state_pol_flow_match(struct xfrm_state *x, struct xfrm_policy *
|
||||
|
||||
state_sid = x->security->ctx_sid;
|
||||
|
||||
if (fl->secid != state_sid)
|
||||
if (fl->flowi_secid != state_sid)
|
||||
return 0;
|
||||
|
||||
rc = avc_has_perm(fl->secid, state_sid, SECCLASS_ASSOCIATION,
|
||||
rc = avc_has_perm(fl->flowi_secid, state_sid, SECCLASS_ASSOCIATION,
|
||||
ASSOCIATION__SENDTO,
|
||||
NULL)? 0:1;
|
||||
|
||||
|
مرجع در شماره جدید
Block a user