summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-04-02 23:10:34 +0200
committerJoel Granados <j.granados@samsung.com>2024-06-03 15:11:58 +0200
commit98ca62ba9e2be5863c7d069f84f7166b45a5b2f4 (patch)
treee3930db028b6760c7e3bdfe734d647b50765de61 /kernel/sysctl.c
parentc3f38fa61af77b49866b006939479069cd451173 (diff)
downloadlinux-stable-98ca62ba9e2be5863c7d069f84f7166b45a5b2f4.tar.gz
linux-stable-98ca62ba9e2be5863c7d069f84f7166b45a5b2f4.tar.bz2
linux-stable-98ca62ba9e2be5863c7d069f84f7166b45a5b2f4.zip
sysctl: always initialize i_uid/i_gid
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>
Diffstat (limited to 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions