]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf50af5e4d06d98fa7f1b7f56fa5c4b4e770b3c7d
treed345f8a8dffe94affcf309e3e2e24553e7aae811
parenteefde6fcf245f7af0bf31aab1047bffb005e98ae
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