linux-stable/fs/proc
Andreas Gruenbacher 891160f166 proc: Pass file mode to proc_pid_make_inode
commit db978da8fa upstream.

Pass the file mode of the proc inode to be created to
proc_pid_make_inode.  In proc_pid_make_inode, initialize inode->i_mode
before calling security_task_to_inode.  This allows selinux to set
isec->sclass right away without introducing "half-initialized" inode
security structs.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Alexander Grund <theflamefire89@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-25 11:09:21 +02:00
..
Kconfig
Makefile
array.c fs/proc/array.c: allow reporting eip/esp for all coredumping threads 2019-07-10 09:55:38 +02:00
base.c proc: Pass file mode to proc_pid_make_inode 2022-08-25 11:09:21 +02:00
cmdline.c
consoles.c
cpuinfo.c
devices.c
fd.c proc: Pass file mode to proc_pid_make_inode 2022-08-25 11:09:21 +02:00
fd.h
generic.c proc: Fix unbalanced hard link numbers 2017-05-25 15:44:37 +02:00
inode.c proc: Use new_inode not new_inode_pseudo 2020-06-20 10:24:11 +02:00
internal.h proc: Pass file mode to proc_pid_make_inode 2022-08-25 11:09:21 +02:00
interrupts.c
kcore.c vfs/proc/kcore, x86/mm/kcore: Fix SMAP fault when dumping vsyscall user page 2018-05-30 07:50:26 +02:00
kmsg.c
loadavg.c
meminfo.c
namespaces.c proc: Pass file mode to proc_pid_make_inode 2022-08-25 11:09:21 +02:00
nommu.c
page.c
proc_net.c
proc_sysctl.c fs/proc/proc_sysctl.c: fix the default values of i_uid/i_gid on /proc/sys inodes. 2019-08-04 09:33:28 +02:00
proc_tty.c tty fix oops when rmmod 8250 2017-12-20 10:07:32 +01:00
root.c
self.c proc: don't allow async path resolution of /proc/self components 2020-12-02 08:31:26 +01:00
softirqs.c
stat.c sched/cputime: Convert kcpustat to nsecs 2018-10-20 09:51:32 +02:00
task_mmu.c mm: add cond_resched() in gather_pte_stats() 2021-04-16 11:59:09 +02:00
task_nommu.c
thread_self.c proc: Use new_inode not new_inode_pseudo 2020-06-20 10:24:11 +02:00
uptime.c sched/cputime: Convert kcpustat to nsecs 2018-10-20 09:51:32 +02:00
version.c
vmcore.c proc/vmcore: fix clearing user buffer by properly using clear_user() 2021-12-08 08:45:04 +01:00