sched/headers: Prepare to remove <linux/cred.h> inclusion from <linux/sched.h>
authorIngo Molnar <mingo@kernel.org>
Thu, 2 Feb 2017 16:54:15 +0000 (17:54 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:31 +0000 (08:42 +0100)
Add #include <linux/cred.h> dependencies to all .c files rely on sched.h
doing that for them.

Note that even if the count where we need to add extra headers seems high,
it's still a net win, because <linux/sched.h> is included in over
2,200 files ...

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
65 files changed:
arch/arm/kernel/sys_oabi-compat.c
arch/mips/kernel/mips-mt-fpaff.c
arch/x86/include/asm/intel_rdt.h
arch/x86/kernel/cpu/intel_cacheinfo.c
block/ioprio.c
drivers/misc/eeprom/eeprom.c
drivers/misc/lkdtm_heap.c
drivers/misc/vmw_vmci/vmci_context.c
drivers/misc/vmw_vmci/vmci_host.c
drivers/staging/lustre/lustre/include/lustre_compat.h
drivers/staging/lustre/lustre/ptlrpc/sec.c
drivers/xen/balloon.c
fs/9p/v9fs.c
fs/affs/inode.c
fs/affs/super.c
fs/autofs4/dev-ioctl.c
fs/befs/linuxvfs.c
fs/binfmt_elf.c
fs/cachefiles/internal.h
fs/compat.c
fs/exportfs/expfs.c
fs/ext2/balloc.c
fs/ext4/ialloc.c
fs/file_table.c
fs/gfs2/inode.c
fs/gfs2/sys.c
fs/hfs/inode.c
fs/hfsplus/inode.c
fs/isofs/inode.c
fs/jffs2/fs.c
fs/libfs.c
fs/namespace.c
fs/ncpfs/ioctl.c
fs/notify/fanotify/fanotify.c
fs/notify/inotify/inotify_fsnotify.c
fs/omfs/inode.c
fs/overlayfs/copy_up.c
fs/overlayfs/inode.c
fs/overlayfs/namei.c
fs/overlayfs/super.c
fs/overlayfs/util.c
fs/posix_acl.c
fs/proc/proc_sysctl.c
fs/proc/root.c
fs/quota/dquot.c
fs/stat.c
fs/xfs/xfs_ioctl.c
include/linux/cred.h
include/linux/sched/signal.h
include/linux/wait.h
include/net/scm.h
include/rdma/ib.h
ipc/namespace.c
kernel/pid_namespace.c
kernel/ucount.c
kernel/uid16.c
kernel/utsname.c
mm/usercopy.c
net/dns_resolver/dns_query.c
net/netfilter/xt_owner.c
net/sunrpc/auth.c
security/apparmor/policy.c
security/keys/internal.h
security/keys/keyctl.c
security/keys/persistent.c

index 5f221acd21aebb3ca1c2ee560fb68241bc1e02c9..b9786f491873fae6a2f448e85b3fd76eb7511665 100644 (file)
@@ -76,6 +76,7 @@
 #include <linux/syscalls.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
+#include <linux/cred.h>
 #include <linux/fcntl.h>
 #include <linux/eventpoll.h>
 #include <linux/sem.h>
index 1a0a3b4ecc3efb37ef9db3a23d5acb1dc06a3b8d..ffc6bd3464d970f60e3738bd7ff3bd023e546d24 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/security.h>
 #include <linux/types.h>
 #include <linux/uaccess.h>
index 95ce5c85b0096bf81d8d5837fedfb4f7401708b9..0d64397cee58e05344a0d3a2d14038e6224381b7 100644 (file)
@@ -3,6 +3,7 @@
 
 #ifdef CONFIG_INTEL_RDT_A
 
+#include <linux/sched.h>
 #include <linux/kernfs.h>
 #include <linux/jump_label.h>
 
index 0282b0df004a86023d00abceb53cbed24fe118f6..c55fb2cb2acca8236741e94e2389aef35db424ff 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/cacheinfo.h>
 #include <linux/cpu.h>
 #include <linux/sched.h>
+#include <linux/capability.h>
 #include <linux/sysfs.h>
 #include <linux/pci.h>
 
index 89c43e07787dfb18b342934c3fcfc4d2dae23745..4b9ab8367ddaa5340b82036bdf3f94d0c8175208 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/kernel.h>
 #include <linux/export.h>
 #include <linux/ioprio.h>
+#include <linux/cred.h>
 #include <linux/blkdev.h>
 #include <linux/capability.h>
 #include <linux/sched/user.h>
index 3d1d55157e5f3b605bb4695c797eb12a6987bfff..2fad790db3bf05b0cfb14e4a60835b4b901852a1 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/device.h>
+#include <linux/capability.h>
 #include <linux/jiffies.h>
 #include <linux/i2c.h>
 #include <linux/mutex.h>
index 0f1581664c1c78e28149159f09f1c76e966fcc5d..ffb6aeac07b3ec56ed7febf153f222b13f8a8d38 100644 (file)
@@ -4,6 +4,7 @@
  */
 #include "lkdtm.h"
 #include <linux/slab.h>
+#include <linux/sched.h>
 
 /*
  * This tries to stay within the next largest power-of-2 kmalloc cache
index f35f0c8606b9ad6f094c6dfb3683d37ffc45304b..21d0fa592145c0b77fc0cad6f95d310ef8b456b7 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/slab.h>
 
 #include "vmci_queue_pair.h"
index ec090105eb4be7f9a8a3fbc2fd09168d011cca6c..8a16a26e9658f8ca246ad214cb0477183a0b93a2 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/slab.h>
 #include <linux/file.h>
 #include <linux/init.h>
index 300e96fb032ae9b202fccb786ee82020f3960c5f..da9ce195c52ecf788eb5c30012880f5408569419 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <linux/fs_struct.h>
 #include <linux/namei.h>
+#include <linux/cred.h>
 
 #include "lustre_patchless_compat.h"
 
index e860df7c45a2bde330be035b15b2cc1133df2f28..49f34fd655c3cb0320863f02a9a9202eb8e27c79 100644 (file)
@@ -38,6 +38,7 @@
 
 #include "../../include/linux/libcfs/libcfs.h"
 #include <linux/crypto.h>
+#include <linux/cred.h>
 #include <linux/key.h>
 
 #include "../include/obd.h"
index db107fa50ca14c800bddbb4daa875eab8171666a..a6d4378eb8d9fc8aeea4fe1961f5c0f030ce2060 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/cpu.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/errno.h>
 #include <linux/mm.h>
 #include <linux/bootmem.h>
index 072e7599583a81a273c2f6a6f585b42fedfafa45..a89f3cfe3c7d7fba5341ee5adac4a3a1ecd8adec 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/errno.h>
 #include <linux/fs.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/parser.h>
 #include <linux/idr.h>
 #include <linux/slab.h>
index a5e6097eb5a9dd157576db7e546d6b94a5a54970..abcc59899229c68165b9bcf0830885ecf707ecac 100644 (file)
@@ -10,6 +10,7 @@
  *  (C) 1991  Linus Torvalds - minix filesystem
  */
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/gfp.h>
 #include "affs.h"
 
index 37532538e8ab12fac95f5182512aedd104b56dbf..c2c27a8f128ef766ddafdc3eac59ca67834b3e97 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/parser.h>
 #include <linux/magic.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/slab.h>
 #include <linux/writeback.h>
 #include <linux/blkdev.h>
index 806df746f1a93b5a06ca970735faa3e775c28566..734cbf8d9676bd6f6f26561249504ccffd9f8360 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/file.h>
 #include <linux/fdtable.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/compat.h>
 #include <linux/syscalls.h>
 #include <linux/magic.h>
index 19407165f4aad9719ef5f339fabc31bb2c22ef9e..c500e954debba1b60a515697276d79c7bd145cdc 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/parser.h>
 #include <linux/namei.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/exportfs.h>
 
 #include "befs.h"
index fbbe52e1250e36f5b890f4f63af6fe8cc0ea9906..2c95257fa4da89309c9866457aef033d25aede8f 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/coredump.h>
 #include <linux/sched.h>
 #include <linux/sched/coredump.h>
+#include <linux/cred.h>
 #include <linux/dax.h>
 #include <linux/uaccess.h>
 #include <asm/param.h>
index cd1effee8a4912c0ee447b8d1d1b5694bd5db2e5..9bf90bcc56acd69c0e17cf96c9c91d16b498d552 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/fscache-cache.h>
 #include <linux/timer.h>
 #include <linux/wait.h>
+#include <linux/cred.h>
 #include <linux/workqueue.h>
 #include <linux/security.h>
 
index e50a2114f4740859667ba20e230adb2ee6ce7f2b..c61b506f5bc94ba0dcac0d9a28a7ab1070ac3a66 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/compat.h>
 #include <linux/errno.h>
 #include <linux/time.h>
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/fcntl.h>
 #include <linux/namei.h>
index a4b531be9168d576e7e5f875bf5af6dc9a01020c..9ec1038f937e8610fa6927ce86b8bb63c76fcc59 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/mount.h>
 #include <linux/namei.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 
 #define dprintk(fmt, args...) do{}while(0)
 
index 4c40c0786e168bf1c9c92a5c9afe3d538f63142f..d0bdb74f0e151bc0fd8471146b681442aec4137a 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/quotaops.h>
 #include <linux/slab.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/buffer_head.h>
 #include <linux/capability.h>
 
index b14bae2598bc5347ec98da206df043e081e15e33..17bc043308f33bb28cdb4d63ea7393b0dfc310e1 100644 (file)
@@ -21,6 +21,8 @@
 #include <linux/random.h>
 #include <linux/bitops.h>
 #include <linux/blkdev.h>
+#include <linux/cred.h>
+
 #include <asm/byteorder.h>
 
 #include "ext4.h"
index 6d982b57de9241de853b9ee592ff0564a0bad832..954d510b765af8fb36fac6f1f75706f5efb00417 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/security.h>
+#include <linux/cred.h>
 #include <linux/eventpoll.h>
 #include <linux/rcupdate.h>
 #include <linux/mount.h>
index eb7724b8578a0409889a20953005c98e1544b559..9d28f55fbd1dbfa9b728a7c56ac049ebc32a3593 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/buffer_head.h>
 #include <linux/namei.h>
 #include <linux/mm.h>
+#include <linux/cred.h>
 #include <linux/xattr.h>
 #include <linux/posix_acl.h>
 #include <linux/gfs2_ondisk.h>
index f8d30e41d1d33b966353290b77594bcb7c103834..7a515345610c28dc4b35e8aa15f4b5061754c060 100644 (file)
@@ -10,6 +10,7 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/spinlock.h>
 #include <linux/completion.h>
 #include <linux/buffer_head.h>
index f776acf2378a1cd5fdaa71984ba26e78248287c0..bfbba799430f1575d6e80b21f2159fe0fbe5968a 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/pagemap.h>
 #include <linux/mpage.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/uio.h>
 #include <linux/xattr.h>
 
index 2e796f8302ffac30315530676585b05f49ab9cb7..e8638d528195196232cc858f77d664e4fe79044e 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/pagemap.h>
 #include <linux/mpage.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/uio.h>
 
 #include "hfsplus_fs.h"
index 871c8b39209913d95708398688df19ca31b0eba7..020ba093614641e02920cf622840444c47edbbc1 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/module.h>
 
 #include <linux/slab.h>
+#include <linux/cred.h>
 #include <linux/nls.h>
 #include <linux/ctype.h>
 #include <linux/statfs.h>
index 567653f7c0ce2e342c56f155faeab5100f90610a..76fa814df3d1bfcacb3caea51cbaa9711854e120 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/capability.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/list.h>
 #include <linux/mtd/mtd.h>
index 28d6f35feed62855e26ede0073b3bcaf6b6564a9..217896ca4fae67cf862794f487e4a19e13dc1a85 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/export.h>
 #include <linux/pagemap.h>
 #include <linux/slab.h>
+#include <linux/cred.h>
 #include <linux/mount.h>
 #include <linux/vfs.h>
 #include <linux/quotaops.h>
index 8bfad42c1ccf2138b71e4ac87ed53e2796bb1a01..131cd7b94f4711477dc1979f0a3799022b94066e 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/user_namespace.h>
 #include <linux/namei.h>
 #include <linux/security.h>
+#include <linux/cred.h>
 #include <linux/idr.h>
 #include <linux/init.h>                /* init_rootfs */
 #include <linux/fs_struct.h>   /* get_fs_root et.al. */
index 4434e4977cf36ce09d35af63bd8129db17813aeb..12550c2320ccbb79f69868a2eeafa67fdfaa82ee 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/highuid.h>
 #include <linux/vmalloc.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 
 #include <linux/uaccess.h>
 
index a4c46221755ea6e2ed743ac1d060a6ab40b45070..e5f7e47de68e4bf3cc75dc1cf03e29fed3fda8be 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/kernel.h> /* UINT_MAX */
 #include <linux/mount.h>
 #include <linux/sched.h>
+#include <linux/sched/user.h>
 #include <linux/types.h>
 #include <linux/wait.h>
 
index f36c29398de371784feaa230b3b030554dbd2dc2..1aeb837ae41405c94c72041bbba87fa7e9d0e1a5 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/slab.h> /* kmem_* */
 #include <linux/types.h>
 #include <linux/sched.h>
+#include <linux/sched/user.h>
 
 #include "inotify.h"
 
index df7ea8543a2ef00e90010812c3d35e672608033d..8c9034ee7383a9b2c8f8edf6d6752322d62e79ef 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/slab.h>
 #include <linux/fs.h>
 #include <linux/vfs.h>
+#include <linux/cred.h>
 #include <linux/parser.h>
 #include <linux/buffer_head.h>
 #include <linux/vmalloc.h>
index f57043dace628767fddc0cb4b9f27692a6b672c3..53d3f830358fc6f1aed800008082095973a0fcff 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/security.h>
 #include <linux/uaccess.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/namei.h>
 #include <linux/fdtable.h>
 #include <linux/ratelimit.h>
index 08643ac44a0278ed04be96d6df267e3b13821692..6639f487f8351395667835424f14c7259d6aa260 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <linux/fs.h>
 #include <linux/slab.h>
+#include <linux/cred.h>
 #include <linux/xattr.h>
 #include <linux/posix_acl.h>
 #include "overlayfs.h"
index 023bb0b03352f4440d893b4e713d7d9ed937a771..b8b077821fb03bea9d63b3bf3508039836409e1b 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <linux/fs.h>
+#include <linux/cred.h>
 #include <linux/namei.h>
 #include <linux/xattr.h>
 #include <linux/ratelimit.h>
index 20f48abbb82fd3972cd58d7eecf09a2b37a70579..9aa37c2f7f7d0a877a06309702af3b81ce10c009 100644 (file)
@@ -7,6 +7,7 @@
  * the Free Software Foundation.
  */
 
+#include <uapi/linux/magic.h>
 #include <linux/fs.h>
 #include <linux/namei.h>
 #include <linux/xattr.h>
index 952286f4826cc590035e20e749a7be080aa1b671..9dc1c0af586bad0332cd3550dbeebe3d5b8e441d 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/fs.h>
 #include <linux/mount.h>
 #include <linux/slab.h>
+#include <linux/cred.h>
 #include <linux/xattr.h>
 #include "overlayfs.h"
 #include "ovl_entry.h"
index c9d48dc784953fa4af62f9af58dfbb56ed2faa70..eebf5f6cf6d5645a128b9b3560ac9ce853a4bdc7 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/atomic.h>
 #include <linux/fs.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/posix_acl.h>
 #include <linux/posix_acl_xattr.h>
 #include <linux/xattr.h>
index 3e64c6502dc8540c8b71959ed1aca1dbd9c8ace7..3d203b1f5a02344f2a3625e0d9d9add7404384d0 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/printk.h>
 #include <linux/security.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/namei.h>
 #include <linux/mm.h>
 #include <linux/module.h>
index b90da888b81a3aed2a64d83b9167ab81036fc452..5d5fed20bfffe1f2a242eb7c49baeb3afdb4da82 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/mount.h>
 #include <linux/pid_namespace.h>
 #include <linux/parser.h>
+#include <linux/cred.h>
 
 #include "internal.h"
 
index 406fed92362a3da805b7f1834268acd2e996d46f..74b489e3714d51cb66de83d4a9f3510c250456fe 100644 (file)
@@ -72,6 +72,7 @@
 #include <linux/proc_fs.h>
 #include <linux/security.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/kmod.h>
 #include <linux/namei.h>
 #include <linux/capability.h>
index 3f14d1ef086805ee56590d32f678c5099131ef5a..95bd41762770c4ee38dae89c7ddd0b8cda4c5822 100644 (file)
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -12,6 +12,7 @@
 #include <linux/fs.h>
 #include <linux/namei.h>
 #include <linux/security.h>
+#include <linux/cred.h>
 #include <linux/syscalls.h>
 #include <linux/pagemap.h>
 
index cf1363dbf32b91f4d0bf6f41bbbbd0e6b84e72ec..2fd7fdf5438f0be85220b9981bff09efce773079 100644 (file)
@@ -43,6 +43,7 @@
 #include "xfs_acl.h"
 
 #include <linux/capability.h>
+#include <linux/cred.h>
 #include <linux/dcache.h>
 #include <linux/mount.h>
 #include <linux/namei.h>
index 045d33e480694c56b59c8c982ca95f16d8b071cf..b03e7d049a64f4ca0081d78e93c49fda898a9733 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/selinux.h>
 #include <linux/atomic.h>
 #include <linux/uidgid.h>
+#include <linux/sched.h>
 #include <linux/sched/user.h>
 
 struct cred;
index ce93c4a02b79107283f748b2103087487f1fa147..0f4e9f4a43fd78518ad8d5dac1313f1bddc16055 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _LINUX_SCHED_SIGNAL_H
 #define _LINUX_SCHED_SIGNAL_H
 
+#include <linux/cred.h>
 #include <linux/sched.h>
 #include <linux/sched/jobctl.h>
 
index 1421132e90861be2112fdc22d511395ab933ae50..aacb1282d19a38d7b633bf7aedcc40fa258584f8 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/list.h>
 #include <linux/stddef.h>
 #include <linux/spinlock.h>
+
 #include <asm/current.h>
 #include <uapi/linux/wait.h>
 
index 59fa93c01d2a16a129298498f1d56556b895acd9..142ea9e7a6d0d88989c2ca0b23548427def59d87 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <linux/limits.h>
 #include <linux/net.h>
+#include <linux/cred.h>
 #include <linux/security.h>
 #include <linux/pid.h>
 #include <linux/nsproxy.h>
index a6b93706b0fc96494d7de3d7408c26fb57436a02..9b4c22a36931884520b4b25e42d3b99c2bd8b733 100644 (file)
@@ -35,6 +35,7 @@
 
 #include <linux/types.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 
 struct ib_addr {
        union {
index 0abdea496493da66166db5a8b8a24780ade4fc2c..1f1d713ac19c4e3927c4aad4b3caf239561063a9 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/rcupdate.h>
 #include <linux/nsproxy.h>
 #include <linux/slab.h>
+#include <linux/cred.h>
 #include <linux/fs.h>
 #include <linux/mount.h>
 #include <linux/user_namespace.h>
index eef2ce9686366a72e9dadaa9056bcda8295ae93d..25314c96fbe64a8b4c4283099d21763c4fe82a10 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/pid_namespace.h>
 #include <linux/user_namespace.h>
 #include <linux/syscalls.h>
+#include <linux/cred.h>
 #include <linux/err.h>
 #include <linux/acct.h>
 #include <linux/slab.h>
index 8a11fc0cb45912f68c0dd5510d8a5b959de6d0eb..62630a40ab3a4225291c7804ff67917aa997646c 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/stat.h>
 #include <linux/sysctl.h>
 #include <linux/slab.h>
+#include <linux/cred.h>
 #include <linux/hash.h>
 #include <linux/user_namespace.h>
 
index 71645ae9303a522c04c0eb307eb2dfa8c2fa0f4f..5c2dc5b2bf4fe8ecd05e2423d1a820e25b16d1ec 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/init.h>
 #include <linux/highuid.h>
 #include <linux/security.h>
+#include <linux/cred.h>
 #include <linux/syscalls.h>
 
 #include <linux/uaccess.h>
index 6976cd47dcf6028270eee444228eca7a340ca2d2..06585ad296ffc27764d7cca0f9a84f2a89b2c8d9 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/utsname.h>
 #include <linux/err.h>
 #include <linux/slab.h>
+#include <linux/cred.h>
 #include <linux/user_namespace.h>
 #include <linux/proc_ns.h>
 
index 8345299e3e3b08e617f425ae18050a794b50b5e4..7ccad05c0d5c4222410e2d9ba8c95fd59c88d529 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <linux/mm.h>
 #include <linux/slab.h>
+#include <linux/sched.h>
 #include <asm/sections.h>
 
 enum {
index ecc28cff08ab8110a9d96d6f7abe690ca77e9962..ab9fec00a788e4ab22520a0c645ca14cba1c01a9 100644 (file)
 
 #include <linux/module.h>
 #include <linux/slab.h>
+#include <linux/cred.h>
 #include <linux/dns_resolver.h>
 #include <linux/err.h>
+
 #include <keys/dns_resolver-type.h>
 #include <keys/user-type.h>
 
index 16477df45b3bf12fc1e92c083a3314ad28ece042..3d705c688a27b53afdcb53460ed6509e3e8024f4 100644 (file)
@@ -13,6 +13,8 @@
 #include <linux/module.h>
 #include <linux/skbuff.h>
 #include <linux/file.h>
+#include <linux/cred.h>
+
 #include <net/sock.h>
 #include <net/inet_sock.h>
 #include <linux/netfilter/x_tables.h>
index a1ee933e3029b32f46e4352e1499ba6bdf22818a..d2623b9f23d66c20243d57d69d91e5da6a3cf4c0 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/types.h>
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/errno.h>
index f44312a19522b6fd1e83a877c6e3557500d1a127..462c5d36b871577d2646288b947cd9fb5f9171fd 100644 (file)
@@ -76,6 +76,7 @@
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 #include <linux/string.h>
+#include <linux/cred.h>
 #include <linux/user_namespace.h>
 
 #include "include/apparmor.h"
index a705a7d92ad7a95ca513ae2d3da8a18879196a2a..a2f4c0abb8d847325465131e7a4e219489b441e6 100644 (file)
@@ -13,6 +13,7 @@
 #define _INTERNAL_H
 
 #include <linux/sched.h>
+#include <linux/cred.h>
 #include <linux/key-type.h>
 #include <linux/task_work.h>
 #include <linux/keyctl.h>
index 04a764f71ec88e6385f2c3fc38d5cb903817dfce..bcb0b597c39187b1906fc732b612234c0a23397a 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/keyctl.h>
 #include <linux/fs.h>
 #include <linux/capability.h>
+#include <linux/cred.h>
 #include <linux/string.h>
 #include <linux/err.h>
 #include <linux/vmalloc.h>
index 1edc1f0a0ce2c47babfbc53ab88ed6f825bb82cf..d0cb5b32eff7baffc030190d606058143542cfd6 100644 (file)
@@ -10,6 +10,8 @@
  */
 
 #include <linux/user_namespace.h>
+#include <linux/cred.h>
+
 #include "internal.h"
 
 unsigned persistent_keyring_expiry = 3 * 24 * 3600; /* Expire after 3 days of non-use */