Skip to content

Commit 0fc29be

Browse files
nbouchinet-anssianthraxx
authored andcommitted
sysctl: Add proc_dointvec_minmax_sysadmin sanity check
Since we expose proc_dointvec_minmax_sysadmin, add it to sanity checking functions. Signed-off-by: Nicolas Bouchinet <[email protected]>
1 parent d4dc79e commit 0fc29be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/proc/proc_sysctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,7 @@ static int sysctl_check_table(const char *path, struct ctl_table_header *header)
11551155
(entry->proc_handler == proc_douintvec) ||
11561156
(entry->proc_handler == proc_douintvec_minmax) ||
11571157
(entry->proc_handler == proc_dointvec_minmax) ||
1158+
(entry->proc_handler == proc_dointvec_minmax_sysadmin) ||
11581159
(entry->proc_handler == proc_dou8vec_minmax) ||
11591160
(entry->proc_handler == proc_dointvec_jiffies) ||
11601161
(entry->proc_handler == proc_dointvec_userhz_jiffies) ||

0 commit comments

Comments
 (0)