aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vorel <[email protected]>2022-10-20 17:06:45 +0200
committerGreg Kroah-Hartman <[email protected]>2022-10-20 18:12:52 +0200
commit54de93cd8740d52a83728802b4270f953d1a636f (patch)
treeebc2e7b0f8a238289c34677ae2691536eb2f8557
parent9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff)
kernel/utsname_sysctl.c: Add missing enum uts_proc value
bfca3dd3d068 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: bfca3dd3d068 ("kernel/utsname_sysctl.c: print kernel arch") Reported-by: Torsten Hilbrich <[email protected]> Signed-off-by: Petr Vorel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--include/linux/utsname.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/utsname.h b/include/linux/utsname.h
index 2b1737c9b244..bf7613ba412b 100644
--- a/include/linux/utsname.h
+++ b/include/linux/utsname.h
@@ -10,6 +10,7 @@
#include <uapi/linux/utsname.h>
enum uts_proc {
+ UTS_PROC_ARCH,
UTS_PROC_OSTYPE,
UTS_PROC_OSRELEASE,
UTS_PROC_VERSION,