Skip to content

Commit 1d2a168

Browse files
geliangtangpcmoore
authored andcommitted
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: Geliang Tang <geliangtang@163.com> Acked-by: Jeff Vander Stoep <jeffv@google.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <pmoore@redhat.com>
1 parent 9529c78 commit 1d2a168

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

security/selinux/hooks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3235,7 +3235,7 @@ static void selinux_file_free_security(struct file *file)
32353235
* Check whether a task has the ioctl permission and cmd
32363236
* operation to an inode.
32373237
*/
3238-
int ioctl_has_perm(const struct cred *cred, struct file *file,
3238+
static int ioctl_has_perm(const struct cred *cred, struct file *file,
32393239
u32 requested, u16 cmd)
32403240
{
32413241
struct common_audit_data ad;

0 commit comments

Comments
 (0)