[PATCH] capable/capability.h (fs/)
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 11 Jan 2006 20:17:46 +0000 (12:17 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 12 Jan 2006 02:42:13 +0000 (18:42 -0800)
fs: Use <linux/capability.h> where capable() is used.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Tim Schmielau <tim@physik3.uni-rostock.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
46 files changed:
fs/attr.c
fs/autofs/root.c
fs/autofs4/root.c
fs/buffer.c
fs/compat_ioctl.c
fs/dcookies.c
fs/dquot.c
fs/ext2/acl.c
fs/ext2/balloc.c
fs/ext2/ioctl.c
fs/ext2/xattr_trusted.c
fs/ext3/acl.c
fs/ext3/balloc.c
fs/ext3/ioctl.c
fs/ext3/xattr_trusted.c
fs/fat/file.c
fs/fcntl.c
fs/file_table.c
fs/hfsplus/ioctl.c
fs/hugetlbfs/inode.c
fs/ioctl.c
fs/ioprio.c
fs/jffs2/fs.c
fs/jfs/xattr.c
fs/namei.c
fs/namespace.c
fs/ncpfs/ioctl.c
fs/ocfs2/file.c
fs/open.c
fs/proc/base.c
fs/proc/kcore.c
fs/quota.c
fs/reiserfs/ioctl.c
fs/reiserfs/xattr.c
fs/reiserfs/xattr_acl.c
fs/reiserfs/xattr_trusted.c
fs/smbfs/proc.c
fs/sysfs/inode.c
fs/udf/file.c
fs/ufs/balloc.c
fs/xfs/linux-2.6/xfs_ioctl.c
fs/xfs/linux-2.6/xfs_iops.c
fs/xfs/quota/xfs_qm_syscalls.c
fs/xfs/xfs_acl.c
fs/xfs/xfs_attr.c
fs/xfs/xfs_vnodeops.c

index d63e5096f2f2f235fd90cf7337515a3a715e041f..97de946708781df074388be1da5e4f811872766a 100644 (file)
--- a/fs/attr.c
+++ b/fs/attr.c
@@ -10,6 +10,7 @@
 #include <linux/mm.h>
 #include <linux/string.h>
 #include <linux/smp_lock.h>
+#include <linux/capability.h>
 #include <linux/fsnotify.h>
 #include <linux/fcntl.h>
 #include <linux/quotaops.h>
index 808134a5a2fa63896bc4349415f478aaf440d1ad..870e2cf3301653030bb9cf29512c163f8e172398 100644 (file)
@@ -10,6 +10,7 @@
  *
  * ------------------------------------------------------------------------- */
 
+#include <linux/capability.h>
 #include <linux/errno.h>
 #include <linux/stat.h>
 #include <linux/param.h>
index 14aa70282e8ca8feb20875cfbe86485386f556d8..e93a7ae467c996644a189d5b73d4d538459dd758 100644 (file)
@@ -12,6 +12,7 @@
  *
  * ------------------------------------------------------------------------- */
 
+#include <linux/capability.h>
 #include <linux/errno.h>
 #include <linux/stat.h>
 #include <linux/param.h>
index 6466bc8a3dc7069522d821bb8325fea75823492e..b9bb7ad6897b90456332813bc15615741171c9c8 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/percpu.h>
 #include <linux/slab.h>
 #include <linux/smp_lock.h>
+#include <linux/capability.h>
 #include <linux/blkdev.h>
 #include <linux/file.h>
 #include <linux/quotaops.h>
index 890bc30fbe2003563e4dbd52559decd06d724c23..f51696358a21b34efd65ca324fd418f72a6a2210 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/types.h>
 #include <linux/compat.h>
 #include <linux/kernel.h>
+#include <linux/capability.h>
 #include <linux/compiler.h>
 #include <linux/sched.h>
 #include <linux/smp.h>
index 02aa0ddc582a6a169fe855883cf069923e63bb74..f8274a8f83bd1a7c7051749c7a2de689369fb850 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/slab.h>
 #include <linux/list.h>
 #include <linux/mount.h>
+#include <linux/capability.h>
 #include <linux/dcache.h>
 #include <linux/mm.h>
 #include <linux/errno.h>
index cb6d5bfbdfd5157a96a9af7a6137b37880190151..1966c890b48d1df00e04bc09e612ade805ad77f6 100644 (file)
@@ -77,6 +77,7 @@
 #include <linux/kmod.h>
 #include <linux/namei.h>
 #include <linux/buffer_head.h>
+#include <linux/capability.h>
 #include <linux/quotaops.h>
 
 #include <asm/uaccess.h>
index 239133d01d91aa7fad26b676c232af53331408da..35acc43b897f7e46b1563b2fa696973dec67ebe7 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
  */
 
+#include <linux/capability.h>
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
index bb6908066494e5dd158894b15232700f062fc8c4..2c00953d4b0b909b483f05f94b33da7f893c3acf 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/quotaops.h>
 #include <linux/sched.h>
 #include <linux/buffer_head.h>
+#include <linux/capability.h>
 
 /*
  * balloc.c contains the blocks allocation and deallocation routines
index 709d8676b962b3505de210db2d446d4f3d1ba408..3ca9afdf713d579d92f2037cc5ee4f69db9ab3da 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include "ext2.h"
+#include <linux/capability.h>
 #include <linux/time.h>
 #include <linux/sched.h>
 #include <asm/current.h>
index 2c072bfea23ba9a5f55049ab410b62fc529badd5..f28a6a499c9650bb6d612947d9b78ff7650151db 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <linux/module.h>
 #include <linux/string.h>
+#include <linux/capability.h>
 #include <linux/fs.h>
 #include <linux/smp_lock.h>
 #include <linux/ext2_fs.h>
index 9ed132c960348da2227cbab44b02dc15530a932d..47a9da2dfb4fbd9739ab46531fca3ec2d5040c9d 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
+#include <linux/capability.h>
 #include <linux/fs.h>
 #include <linux/ext3_jbd.h>
 #include <linux/ext3_fs.h>
index c6393fb4c35a476997e6938e3afacfd105a489a0..6250fcdf14a14ee2ca772046c666464901ffaab6 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <linux/config.h>
 #include <linux/time.h>
+#include <linux/capability.h>
 #include <linux/fs.h>
 #include <linux/jbd.h>
 #include <linux/ext3_fs.h>
index 706d686083814393d942f86eebf7530c0313f85d..556cd5510078a5e83e3c9490ae4439fb41605c06 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <linux/fs.h>
 #include <linux/jbd.h>
+#include <linux/capability.h>
 #include <linux/ext3_fs.h>
 #include <linux/ext3_jbd.h>
 #include <linux/time.h>
index 7c693c94f14d8eb7e070e2bc74ad1ce4a92e7bcc..86d91f1186dce11da40650e0c716cfc2214cbb6d 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <linux/module.h>
 #include <linux/string.h>
+#include <linux/capability.h>
 #include <linux/fs.h>
 #include <linux/smp_lock.h>
 #include <linux/ext3_jbd.h>
index d30876cf35f56c31fcbb8275a24095e7909520f0..e99c5a73b39e6f172e52ee394cba5b9289a78e87 100644 (file)
@@ -6,6 +6,7 @@
  *  regular file handling primitives for fat-based filesystems
  */
 
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/time.h>
 #include <linux/msdos_fs.h>
index 9903bde475f2ec4877bd0f0f32e76b2939ebf81f..d0767fe5836247dd68aac8d7f3bd5818984e2790 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/mm.h>
 #include <linux/fs.h>
 #include <linux/file.h>
+#include <linux/capability.h>
 #include <linux/dnotify.h>
 #include <linux/smp_lock.h>
 #include <linux/slab.h>
index 6142250104a6dbdc2acd0a5eca5ad7263105785b..768b581675433ed0e02eb0a9bcf35288de7adca5 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/eventpoll.h>
 #include <linux/rcupdate.h>
 #include <linux/mount.h>
+#include <linux/capability.h>
 #include <linux/cdev.h>
 #include <linux/fsnotify.h>
 
index e07aa096e07c3a221d39167b46c673d81a121d96..13cf848ac8330ef03ebfbce82e3ce3ba07d5bc2c 100644 (file)
@@ -12,6 +12,7 @@
  * hfsplus ioctls
  */
 
+#include <linux/capability.h>
 #include <linux/fs.h>
 #include <linux/sched.h>
 #include <linux/xattr.h>
index ff1b7d108bd021f7ebe1dbcaac5aa6569e4aeee9..ab4c3a9d51b88948650d345378934fe912c8c440 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/highmem.h>
 #include <linux/init.h>
 #include <linux/string.h>
+#include <linux/capability.h>
 #include <linux/backing-dev.h>
 #include <linux/hugetlb.h>
 #include <linux/pagevec.h>
index 569209181425d20f5860c80b3a6dbfb92db4919b..f8aeec3ca10c20985146e292023e5554b2290765 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/syscalls.h>
 #include <linux/mm.h>
 #include <linux/smp_lock.h>
+#include <linux/capability.h>
 #include <linux/file.h>
 #include <linux/fs.h>
 #include <linux/security.h>
index 4bf1c6365a19d2ce3d9ae52da457026792528f40..ca77008146c02494018bf84c28b370f0e0a6b39a 100644 (file)
@@ -22,6 +22,7 @@
 #include <linux/kernel.h>
 #include <linux/ioprio.h>
 #include <linux/blkdev.h>
+#include <linux/capability.h>
 #include <linux/syscalls.h>
 
 static int set_task_ioprio(struct task_struct *task, int ioprio)
index d0fcc5f3497ed1e757f6b420b78d3ba7193c3c3d..09e5d10b88401ca736bbd70d099d847fd9698bed 100644 (file)
@@ -11,6 +11,7 @@
  *
  */
 
+#include <linux/capability.h>
 #include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
index 952da5f917cdc7ad4133ccc1a8cf46e5bd94ec14..f23048f9471f0c921c1e2514f91c9ff5afb5fd97 100644 (file)
@@ -17,6 +17,7 @@
  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
+#include <linux/capability.h>
 #include <linux/fs.h>
 #include <linux/xattr.h>
 #include <linux/posix_acl_xattr.h>
index 0a8f073435af7c1bc9bee409f58dc44d8e9308b3..1e5746eb13809777ca97c5cb4db2fc778008c30c 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/syscalls.h>
 #include <linux/mount.h>
 #include <linux/audit.h>
+#include <linux/capability.h>
 #include <linux/file.h>
 #include <asm/namei.h>
 #include <asm/uaccess.h>
index 2ca6145f43d6b047a4b98eabab9e1ccfd447ba81..8bc15b362d239f211ca0e28a1054df9b2094804c 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/init.h>
 #include <linux/quotaops.h>
 #include <linux/acct.h>
+#include <linux/capability.h>
 #include <linux/module.h>
 #include <linux/seq_file.h>
 #include <linux/namespace.h>
index fd3efdca5ae39cc5d923392785ae2c03bbb88c5c..d6e0c089e1b110830b0e596160867f4c3bd93856 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/config.h>
 
 #include <asm/uaccess.h>
+#include <linux/capability.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
 #include <linux/ioctl.h>
index ca5f9f90d794d27321cba47d5e8e146ab7136b7a..eaf33caa0a1f8b73dad142387216bd837dda5add 100644 (file)
@@ -23,6 +23,7 @@
  * Boston, MA 021110-1307, USA.
  */
 
+#include <linux/capability.h>
 #include <linux/fs.h>
 #include <linux/types.h>
 #include <linux/slab.h>
index a3b3a9b5c2ff615434a9ff7b88448341dc61cded..8e20c1f32563f19aeb7386c729e2fc11c3839cfa 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -16,6 +16,7 @@
 #include <linux/tty.h>
 #include <linux/namei.h>
 #include <linux/backing-dev.h>
+#include <linux/capability.h>
 #include <linux/security.h>
 #include <linux/mount.h>
 #include <linux/vfs.h>
index 634355e169869c3369959acbe5261542bb4cacb6..20feb7568deb4e3456f596ed98318c49e6de2c09 100644 (file)
@@ -55,6 +55,7 @@
 #include <linux/proc_fs.h>
 #include <linux/stat.h>
 #include <linux/init.h>
+#include <linux/capability.h>
 #include <linux/file.h>
 #include <linux/string.h>
 #include <linux/seq_file.h>
index 1c7da988fcc3a3df6f1c30e372f6883fe3354937..adc2cd95169a0793b69cde85db8949a11ef8c898 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/proc_fs.h>
 #include <linux/user.h>
 #include <linux/a.out.h>
+#include <linux/capability.h>
 #include <linux/elf.h>
 #include <linux/elfcore.h>
 #include <linux/vmalloc.h>
index d14d872646d4fc0b4082b50e6722d7467ed79d5c..ba9e0bf32f67554d7c531871be937726d3274c24 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/security.h>
 #include <linux/syscalls.h>
 #include <linux/buffer_head.h>
+#include <linux/capability.h>
 #include <linux/quotaops.h>
 
 /* Check validity of generic quotactl commands */
index ba8bf8df6dc77743bfa690d526f2e90c09193b9b..745c8810089512e0b9a77d6f3847ea7683500037 100644 (file)
@@ -2,6 +2,7 @@
  * Copyright 2000 by Hans Reiser, licensing governed by reiserfs/README
  */
 
+#include <linux/capability.h>
 #include <linux/fs.h>
 #include <linux/reiserfs_fs.h>
 #include <linux/time.h>
index 6f99e01f94abac117509ef97247624c52c30f1a9..cc061bfd437b00b4c3aed01b3e0983fb83dba152 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 #include <linux/reiserfs_fs.h>
+#include <linux/capability.h>
 #include <linux/dcache.h>
 #include <linux/namei.h>
 #include <linux/errno.h>
index 2dc953504cc021e1cf3e71462c39c79ce0221583..43de3ba833327d35618cd156d12ab96d53440c41 100644 (file)
@@ -1,3 +1,4 @@
+#include <linux/capability.h>
 #include <linux/fs.h>
 #include <linux/posix_acl.h>
 #include <linux/reiserfs_fs.h>
index 2501f7e66ab9413effe8c08ec8607b9f90cb3b65..024a938ca60f1a77238703f648f78733f64f8df4 100644 (file)
@@ -1,4 +1,5 @@
 #include <linux/reiserfs_fs.h>
+#include <linux/capability.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
 #include <linux/pagemap.h>
index d6baec0f24ad5fb28f3bb34ba65e11428c186989..b1b878b817306c22d0a9c06712e723f8992c1c3f 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <linux/types.h>
+#include <linux/capability.h>
 #include <linux/errno.h>
 #include <linux/slab.h>
 #include <linux/fs.h>
index c3133219941cbeaa8deacc5fb13f012a6c2945b0..689f7bcfaf3043b5585853f33589d59a77398008 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/pagemap.h>
 #include <linux/namei.h>
 #include <linux/backing-dev.h>
+#include <linux/capability.h>
 #include "sysfs.h"
 
 extern struct super_block * sysfs_sb;
index 8a388289040dbb66de764c8ccc92fdade27253eb..a6f2acc1f15c01929dd0ecc48a93b6c00e981d11 100644 (file)
@@ -31,6 +31,7 @@
 #include <asm/uaccess.h>
 #include <linux/kernel.h>
 #include <linux/string.h> /* memset */
+#include <linux/capability.h>
 #include <linux/errno.h>
 #include <linux/smp_lock.h>
 #include <linux/pagemap.h>
index faf1512173eb23d36cf861b651b3572ded618999..a9f4421ddb6f6e4b93975c72eb234039f48bd91a 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/string.h>
 #include <linux/quotaops.h>
 #include <linux/buffer_head.h>
+#include <linux/capability.h>
 #include <linux/sched.h>
 #include <linux/bitops.h>
 #include <asm/byteorder.h>
index f98c5be3dfe7072689bb766d404e1a337fcd6dc4..21667ba6dcd590c6a3a726f27184f948578c4dc0 100644 (file)
@@ -52,6 +52,7 @@
 #include "xfs_dfrag.h"
 #include "xfs_fsops.h"
 
+#include <linux/capability.h>
 #include <linux/dcache.h>
 #include <linux/mount.h>
 #include <linux/namei.h>
index 97fb1470cf28693478aeb05cb6e338e7347a6e80..9b8ee3470ecc6448b6527db7de1f4aba10dec775 100644 (file)
@@ -51,6 +51,7 @@
 #include "xfs_buf_item.h"
 #include "xfs_utils.h"
 
+#include <linux/capability.h>
 #include <linux/xattr.h>
 #include <linux/namei.h>
 
index 86a1d09f48d56bc1a4a569553362ed523fff6c0c..676884394aaeb598772c87e99fa48f15a328e54b 100644 (file)
@@ -15,6 +15,9 @@
  * along with this program; if not, write the Free Software Foundation,
  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
+
+#include <linux/capability.h>
+
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_bit.h"
index cc9c91b9e77197ffdec8c497200c3ea4f64dc586..4ff0f4e41c6132227bba56c7565379aca0d90c5b 100644 (file)
@@ -36,6 +36,7 @@
 #include "xfs_mac.h"
 #include "xfs_attr.h"
 
+#include <linux/capability.h>
 #include <linux/posix_acl_xattr.h>
 
 STATIC int     xfs_acl_setmode(vnode_t *, xfs_acl_t *, int *);
index 1a11c2b517011f5e49840e92b0bebc4f92c78117..e5e91e9c7e898d9f65299813115b8373c22e4c26 100644 (file)
@@ -15,6 +15,9 @@
  * along with this program; if not, write the Free Software Foundation,
  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
+
+#include <linux/capability.h>
+
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"
index e03fa2a3d5ed4bb2af022b31c4bf0309c481d702..e92cacde02f5966b8e289806ea829dbea1008d91 100644 (file)
@@ -15,6 +15,9 @@
  * along with this program; if not, write the Free Software Foundation,
  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
+
+#include <linux/capability.h>
+
 #include "xfs.h"
 #include "xfs_fs.h"
 #include "xfs_types.h"