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]
Showing the changes to include (1 of 3 files). Show all
Unified · Split
| @@ -49,6 +49,9 @@ struct ctl_dir; · 48 unmodified lines | |||
| 49 | #define SYSCTL_THREE_THOUSAND ((void *)&sysctl_vals[8]) | 49 | #define SYSCTL_THREE_THOUSAND ((void *)&sysctl_vals[8]) |
| 50 | #define SYSCTL_INT_MAX ((void *)&sysctl_vals[9]) | 50 | #define SYSCTL_INT_MAX ((void *)&sysctl_vals[9]) |
| 51 | 51 | ||
| 52 | /* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */ | ||
| 53 | #define SYSCTL_MAXOLDUID ((void *)&sysctl_vals[10]) | ||
| 54 | |||
| 52 | extern const int sysctl_vals[]; | 55 | extern const int sysctl_vals[]; |
| 53 | 56 | ||
| 54 | #define SYSCTL_LONG_ZERO ((void *)&sysctl_long_vals[0]) | 57 | #define SYSCTL_LONG_ZERO ((void *)&sysctl_long_vals[0]) |