History

sysctl: move maxolduid as a sysctl specific const

The maxolduid value is only shared for sysctl purposes for use on a max range. Just stuff this into our shared const array. [akpm@linux-foundation.org: fix sysctl_vals[], per Mickaël]

Luis Chamberlain committed 4 years ago

Commit 54771611 parent c8c0c233 files · +8 −9Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/linux/sysctl.h+3−0
@@ -49,6 +49,9 @@ struct ctl_dir; · 48 unmodified lines
4949 #define SYSCTL_THREE_THOUSAND ((void *)&sysctl_vals[8])
5050 #define SYSCTL_INT_MAX ((void *)&sysctl_vals[9])
5151
52+/* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */
53+#define SYSCTL_MAXOLDUID ((void *)&sysctl_vals[10])
54+
5255 extern const int sysctl_vals[];
5356
5457 #define SYSCTL_LONG_ZERO ((void *)&sysctl_long_vals[0])

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t