selinux: remove redundant allocation and helper functions
authorPaul Moore <paul@paul-moore.com>
Fri, 10 Jan 2020 21:32:10 +0000 (16:32 -0500)
committerPaul Moore <paul@paul-moore.com>
Thu, 16 Jan 2020 19:38:03 +0000 (14:38 -0500)
commitcb89e2465896f30d4247ac9ff47d30522e39745a
treed345f8a8dffe94affcf309e3e2e24553e7aae811
parentdf4779b5d2732eb7550fe35249e82db1b3d4fb95
selinux: remove redundant allocation and helper functions

This patch removes the inode, file, and superblock security blob
allocation functions and moves the associated code into the
respective LSM hooks.  This patch also removes the inode_doinit()
function as it was a trivial wrapper around
inode_doinit_with_dentry() and called from one location in the code.

Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c