* [PATCH] Fix selinux_file_fcntl
@ 2003-08-26 13:51 Stephen Smalley
0 siblings, 0 replies; only message in thread
From: Stephen Smalley @ 2003-08-26 13:51 UTC (permalink / raw)
To: Andrew Morton, James Morris, Randy.Dunlap, Arnd Bergmann, lkml
From: James Morris <jmorris@redhat.com>
This patch adds the appropriate #if around the F_*64 commands
in the selinux_file_fcntl hook function.
security/selinux/hooks.c | 2 ++
1 files changed, 2 insertions(+)
diff -urN -X dontdiff linux-2.6.0-test4.orig/security/selinux/hooks.c linux-2.6.0-test4.w1/security/selinux/hooks.c
--- linux-2.6.0-test4.orig/security/selinux/hooks.c 2003-08-23 11:53:14.000000000 +1000
+++ linux-2.6.0-test4.w1/security/selinux/hooks.c 2003-08-25 01:23:11.690432168 +1000
@@ -2057,9 +2057,11 @@
case F_GETLK:
case F_SETLK:
case F_SETLKW:
+#if BITS_PER_LONG == 32
case F_GETLK64:
case F_SETLK64:
case F_SETLKW64:
+#endif
if (!file->f_dentry || !file->f_dentry->d_inode) {
err = -EINVAL;
break;
--
Stephen Smalley <sds@epoch.ncsc.mil>
National Security Agency
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-26 13:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-26 13:51 [PATCH] Fix selinux_file_fcntl Stephen Smalley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).