Skip to content

Commit 54de93c

Browse files
pevikgregkh
authored andcommitted
kernel/utsname_sysctl.c: Add missing enum uts_proc value
bfca3dd added new struct ctl_table uts_kern_table[], but not new enum uts_proc value. It broke the notification mechanism between the sethostname syscall and the pollers of /proc/sys/kernel/hostname. The table uts_kern_table is addressed within uts_proc_notify by the enum value, that's why new enum value is needed. Fixes: bfca3dd ("kernel/utsname_sysctl.c: print kernel arch") Reported-by: Torsten Hilbrich <torsten.hilbrich@secunet.com> Signed-off-by: Petr Vorel <pvorel@suse.cz> Link: https://lore.kernel.org/r/20221020150645.11719-1-pvorel@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9abf231 commit 54de93c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/linux/utsname.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <uapi/linux/utsname.h>
1111

1212
enum uts_proc {
13+
UTS_PROC_ARCH,
1314
UTS_PROC_OSTYPE,
1415
UTS_PROC_OSRELEASE,
1516
UTS_PROC_VERSION,

0 commit comments

Comments
 (0)