mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
lsm: infrastructure management of the dev_tun blob
Move management of the dev_tun security blob out of the individual security modules and into the LSM infrastructure. The security modules tell the infrastructure how much space they require at initialization. There are no longer any modules that require the dev_tun_free hook. The hook definition has been removed. Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> Reviewed-by: John Johansen <john.johansen@canonical.com> [PM: subject tweak, selinux style fixes] Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
committed by
Paul Moore
parent
09001284ee
commit
a39c0f77db
@@ -207,4 +207,9 @@ static inline struct sk_security_struct *selinux_sock(const struct sock *sock)
|
||||
return sock->sk_security + selinux_blob_sizes.lbs_sock;
|
||||
}
|
||||
|
||||
static inline struct tun_security_struct *selinux_tun_dev(void *security)
|
||||
{
|
||||
return security + selinux_blob_sizes.lbs_tun_dev;
|
||||
}
|
||||
|
||||
#endif /* _SELINUX_OBJSEC_H_ */
|
||||
|
||||
Reference in New Issue
Block a user