Skip to content

Commit aa6f857

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 fe6f2d6 commit aa6f857

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
@@ -1151,6 +1151,7 @@ static int sysctl_check_table(const char *path, struct ctl_table_header *header)
11511151
(entry->proc_handler == proc_douintvec) ||
11521152
(entry->proc_handler == proc_douintvec_minmax) ||
11531153
(entry->proc_handler == proc_dointvec_minmax) ||
1154+
(entry->proc_handler == proc_dointvec_minmax_sysadmin) ||
11541155
(entry->proc_handler == proc_dou8vec_minmax) ||
11551156
(entry->proc_handler == proc_dointvec_jiffies) ||
11561157
(entry->proc_handler == proc_dointvec_userhz_jiffies) ||

0 commit comments

Comments
 (0)