selinux: remove redundant selinux_nlmsg_perm
authorHuaisheng Ye <yehs1@lenovo.com>
Mon, 13 Jan 2020 15:03:31 +0000 (23:03 +0800)
committerPaul Moore <paul@paul-moore.com>
Thu, 16 Jan 2020 19:34:36 +0000 (14:34 -0500)
commitdf4779b5d2732eb7550fe35249e82db1b3d4fb95
tree5909bc39b9d678525316c9b765f7df21d61521b3
parentae3d8c2e27bf95dbd2977f247123f88955a761db
selinux: remove redundant selinux_nlmsg_perm

selinux_nlmsg_perm is used for only by selinux_netlink_send. Remove
the redundant function to simplify the code.

Fix a typo by suggestion from Stephen.

Signed-off-by: Huaisheng Ye <yehs1@lenovo.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c