summaryrefslogtreecommitdiff
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorChris Wright <chrisw@osdl.org>2005-01-25 04:31:20 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-25 04:31:20 -0800
commit0a57f3e6600d47c2c99f53b757847ebfaa696e34 (patch)
tree0f7ab0b7690872eaf4d4bb4031047c5dfaae0985 /include/linux/fs.h
parentd360d565fdb3e416d3f9abf7c8b85b95676e4520 (diff)
[PATCH] compat ioctl security hook fixup
Fix a bug spotted by "Michael S. Tsirkin" <mst@mellanox.co.il> Introduce a simple helper, vfs_ioctl(), so that both sys_ioctl() and compat_sys_ioctl() call the security hook in all cases and without duplication. Signed-off-by: Chris Wright <chrisw@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index eb0af4c8905b..d97f23f248c9 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -1560,6 +1560,8 @@ extern int vfs_stat(char __user *, struct kstat *);
extern int vfs_lstat(char __user *, struct kstat *);
extern int vfs_fstat(unsigned int, struct kstat *);
+extern int vfs_ioctl(struct file *, unsigned int, unsigned int, unsigned long);
+
extern struct file_system_type *get_fs_type(const char *name);
extern struct super_block *get_super(struct block_device *);
extern struct super_block *user_get_super(dev_t);