Commit 1d2a168a authored by Geliang Tang's avatar Geliang Tang Committed by Paul Moore

selinux: ioctl_has_perm should be static

Fixes the following sparse warning:

 security/selinux/hooks.c:3242:5: warning: symbol 'ioctl_has_perm' was
 not declared. Should it be static?
Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Acked-by: default avatarJeff Vander Stoep <jeffv@google.com>
Acked-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: default avatarPaul Moore <pmoore@redhat.com>
parent 9529c788
...@@ -3235,7 +3235,7 @@ static void selinux_file_free_security(struct file *file) ...@@ -3235,7 +3235,7 @@ static void selinux_file_free_security(struct file *file)
* Check whether a task has the ioctl permission and cmd * Check whether a task has the ioctl permission and cmd
* operation to an inode. * operation to an inode.
*/ */
int ioctl_has_perm(const struct cred *cred, struct file *file, static int ioctl_has_perm(const struct cred *cred, struct file *file,
u32 requested, u16 cmd) u32 requested, u16 cmd)
{ {
struct common_audit_data ad; struct common_audit_data ad;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment