Commit 4218788b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix selinux_file_fcntl

From: Stephen Smalley <sds@epoch.ncsc.mil>, James Morris <jmorris@redhat.com>

This patch adds the appropriate #if around the F_*64 commands in the
selinux_file_fcntl hook function.
parent e2d964e6
...@@ -2057,9 +2057,11 @@ static int selinux_file_fcntl(struct file *file, unsigned int cmd, ...@@ -2057,9 +2057,11 @@ static int selinux_file_fcntl(struct file *file, unsigned int cmd,
case F_GETLK: case F_GETLK:
case F_SETLK: case F_SETLK:
case F_SETLKW: case F_SETLKW:
#if BITS_PER_LONG == 32
case F_GETLK64: case F_GETLK64:
case F_SETLK64: case F_SETLK64:
case F_SETLKW64: case F_SETLKW64:
#endif
if (!file->f_dentry || !file->f_dentry->d_inode) { if (!file->f_dentry || !file->f_dentry->d_inode) {
err = -EINVAL; err = -EINVAL;
break; break;
......
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