Centos-kernel-stream-9/fs
Pavel Emelyanov b488893a39 pid namespaces: changes to show virtual ids to user
This is the largest patch in the set. Make all (I hope) the places where
the pid is shown to or get from user operate on the virtual pids.

The idea is:
 - all in-kernel data structures must store either struct pid itself
   or the pid's global nr, obtained with pid_nr() call;
 - when seeking the task from kernel code with the stored id one
   should use find_task_by_pid() call that works with global pids;
 - when showing pid's numerical value to the user the virtual one
   should be used, but however when one shows task's pid outside this
   task's namespace the global one is to be used;
 - when getting the pid from userspace one need to consider this as
   the virtual one and use appropriate task/pid-searching functions.

[akpm@linux-foundation.org: build fix]
[akpm@linux-foundation.org: nuther build fix]
[akpm@linux-foundation.org: yet nuther build fix]
[akpm@linux-foundation.org: remove unneeded casts]
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Cc: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Paul Menage <menage@google.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-19 11:53:40 -07:00
..
9p
adfs
affs
afs
autofs pid namespaces: round up the API 2007-10-19 11:53:37 -07:00
autofs4 pid namespaces: round up the API 2007-10-19 11:53:37 -07:00
befs
bfs
cifs CIFS: ignore mode change if it's just for clearing setuid/setgid bits 2007-10-18 14:37:22 -07:00
coda pid namespaces: round up the API 2007-10-19 11:53:37 -07:00
configfs
cramfs fs/cramfs/inode.c: replace hardcoded value with preprocessor constant 2007-10-18 14:37:29 -07:00
debugfs
devpts
dlm
ecryptfs ecryptfs: allow lower fs to interpret ATTR_KILL_S*ID 2007-10-18 14:37:21 -07:00
efs
exportfs
ext2
ext3 JBD: Fix JBD warnings when compiling with CONFIG_JBD_DEBUG 2007-10-19 11:53:35 -07:00
ext4 ext4: lighten up resize transaction requirements 2007-10-17 18:50:04 -04:00
fat
freevxfs
fuse fuse: add blksize field to fuse_attr 2007-10-18 14:37:31 -07:00
gfs2
hfs
hfsplus
hostfs
hpfs
hppfs
hugetlbfs
isofs
jbd JBD: Fix JBD warnings when compiling with CONFIG_JBD_DEBUG 2007-10-19 11:53:35 -07:00
jbd2
jffs2
jfs
lockd
minix
msdos
ncpfs
nfs NFS: if ATTR_KILL_S*ID bits are set, then skip mode change 2007-10-18 14:37:22 -07:00
nfs_common
nfsd knfsd: only set ATTR_KILL_S*ID if ATTR_MODE isn't being explicitly set 2007-10-18 14:37:22 -07:00
nls sparse pointer use of zero as null 2007-10-18 14:37:31 -07:00
ntfs
ocfs2
openpromfs
partitions
proc pid namespaces: changes to show virtual ids to user 2007-10-19 11:53:40 -07:00
qnx4
ramfs
reiserfs reiserfs: ignore on disk s_bmap_nr value 2007-10-19 11:53:35 -07:00
romfs
smbfs
sysfs
sysv
udf
ufs
vfat
xfs
Kconfig jbd: config_jbd_debug cannot create /proc entry 2007-10-19 11:53:35 -07:00
Kconfig.binfmt
Makefile
aio.c Remove struct task_struct::io_wait 2007-10-18 14:37:20 -07:00
anon_inodes.c
attr.c VFS: make notify_change pass ATTR_KILL_S*ID to setattr operations 2007-10-18 14:37:22 -07:00
bad_inode.c
binfmt_aout.c
binfmt_elf.c pid namespaces: changes to show virtual ids to user 2007-10-19 11:53:40 -07:00
binfmt_elf_fdpic.c pid namespaces: changes to show virtual ids to user 2007-10-19 11:53:40 -07:00
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
binfmt_som.c
bio.c
block_dev.c
buffer.c
char_dev.c
compat.c
compat_ioctl.c sparse pointer use of zero as null 2007-10-18 14:37:31 -07:00
dcache.c
dcookies.c
direct-io.c
dnotify.c
dquot.c
drop_caches.c
eventfd.c
eventpoll.c fs/eventpoll.c: use list_for_each_entry() instead of list_for_each() 2007-10-19 11:53:38 -07:00
exec.c pid namespaces: changes to show virtual ids to user 2007-10-19 11:53:40 -07:00
fcntl.c pid namespaces: changes to show virtual ids to user 2007-10-19 11:53:40 -07:00
fifo.c
file.c
file_table.c fs/file_table.c: use list_for_each_entry() instead of list_for_each() 2007-10-19 11:53:38 -07:00
filesystems.c
fs-writeback.c
generic_acl.c
inode.c
inotify.c
inotify_user.c
internal.h
ioctl.c
ioprio.c pid namespaces: changes to show virtual ids to user 2007-10-19 11:53:40 -07:00
libfs.c
locks.c
mbcache.c
mpage.c
namei.c VFS: allow filesystems to implement atomic open+truncate 2007-10-18 14:37:30 -07:00
namespace.c pid namespaces: introduce MS_KERNMOUNT flag 2007-10-19 11:53:38 -07:00
nfsctl.c
no-block.c
open.c
pipe.c
pnode.c
pnode.h
posix_acl.c
quota.c
quota_v1.c
quota_v2.c
read_write.c
read_write.h
readdir.c
select.c
seq_file.c
signalfd.c
splice.c
stack.c
stat.c
super.c pid namespaces: introduce MS_KERNMOUNT flag 2007-10-19 11:53:38 -07:00
sync.c
timerfd.c
utimes.c
xattr.c
xattr_acl.c