kernel_samsung_a53x/fs/proc
Thomas Weißschuh 0d42f39bfb sysctl: always initialize i_uid/i_gid
[ Upstream commit 98ca62ba9e2be5863c7d069f84f7166b45a5b2f4 ]

Always initialize i_uid/i_gid inside the sysfs core so set_ownership()
can safely skip setting them.

Commit 5ec27ec735ba ("fs/proc/proc_sysctl.c: fix the default values of
i_uid/i_gid on /proc/sys inodes.") added defaults for i_uid/i_gid when
set_ownership() was not implemented. It also missed adjusting
net_ctl_set_ownership() to use the same default values in case the
computation of a better value failed.

Fixes: 5ec27ec735ba ("fs/proc/proc_sysctl.c: fix the default values of i_uid/i_gid on /proc/sys inodes.")
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:19 +01:00
..
array.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
base.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bootconfig.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cmdline.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
consoles.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpuinfo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devices.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fd.c proc/fd: In fdinfo seq_show don't use get_files_struct 2024-11-19 12:27:28 +01:00
fd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fslog.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
internal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
interrupts.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kcore.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kmsg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loadavg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meminfo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
namespaces.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
page.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
proc_net.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
proc_sysctl.c sysctl: always initialize i_uid/i_gid 2024-11-23 23:20:19 +01:00
proc_tty.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
root.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
self.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
softirqs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
task_mmu.c fs/proc/task_mmu: indicate PM_FILE for PMD-mapped file THP 2024-11-23 23:20:11 +01:00
task_nommu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thread_self.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uptime.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
util.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
version.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmcore.c fs/proc: fix softlockup in __read_vmcore 2024-11-19 14:19:04 +01:00