CRED: Separate task security context from task_struct
authorDavid Howells <dhowells@redhat.com>
Thu, 13 Nov 2008 23:39:16 +0000 (10:39 +1100)
committerJames Morris <jmorris@namei.org>
Thu, 13 Nov 2008 23:39:16 +0000 (10:39 +1100)
commitb6dff3ec5e116e3af6f537d4caedcad6b9e5082a
tree9e76f972eb7ce9b84e0146c8e4126a3f86acb428
parent15a2460ed0af7538ca8e6c610fe607a2cd9da142
CRED: Separate task security context from task_struct

Separate the task security context from task_struct.  At this point, the
security data is temporarily embedded in the task_struct with two pointers
pointing to it.

Note that the Alpha arch is altered as it refers to (E)UID and (E)GID in
entry.S via asm-offsets.

With comment fixes Signed-off-by: Marc Dionne <marc.c.dionne@gmail.com>

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: James Morris <jmorris@namei.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
63 files changed:
arch/alpha/kernel/asm-offsets.c
arch/alpha/kernel/entry.S
arch/ia64/ia32/sys_ia32.c
arch/mips/kernel/kspd.c
arch/s390/kernel/compat_linux.c
drivers/connector/cn_proc.c
fs/binfmt_elf.c
fs/binfmt_elf_fdpic.c
fs/exec.c
fs/fcntl.c
fs/file_table.c
fs/fuse/dir.c
fs/hugetlbfs/inode.c
fs/ioprio.c
fs/nfsd/auth.c
fs/nfsd/nfs4recover.c
fs/nfsd/nfsfh.c
fs/open.c
fs/proc/array.c
fs/proc/base.c
fs/xfs/linux-2.6/xfs_cred.h
fs/xfs/linux-2.6/xfs_globals.h
fs/xfs/xfs_inode.h
fs/xfs/xfs_vnodeops.h
include/linux/cred.h
include/linux/init_task.h
include/linux/sched.h
include/linux/securebits.h
ipc/mqueue.c
ipc/shm.c
kernel/auditsc.c
kernel/capability.c
kernel/cgroup.c
kernel/exit.c
kernel/fork.c
kernel/futex.c
kernel/futex_compat.c
kernel/ptrace.c
kernel/sched.c
kernel/signal.c
kernel/sys.c
kernel/trace/trace.c
kernel/tsacct.c
kernel/uid16.c
kernel/user.c
mm/mempolicy.c
mm/migrate.c
mm/oom_kill.c
net/core/scm.c
net/sunrpc/auth.c
security/commoncap.c
security/keys/keyctl.c
security/keys/permission.c
security/keys/process_keys.c
security/keys/request_key.c
security/keys/request_key_auth.c
security/selinux/exports.c
security/selinux/hooks.c
security/selinux/selinuxfs.c
security/selinux/xfrm.c
security/smack/smack_access.c
security/smack/smack_lsm.c
security/smack/smackfs.c