Skip to content

Commit afc15ea

Browse files
committed
Fix proc_handler
1 parent bca382c commit afc15ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/sysctl.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1984,7 +1984,7 @@ static struct ctl_table fs_table[] = {
19841984
.data = &security_tpe,
19851985
.maxlen = sizeof(int),
19861986
.mode = 0644,
1987-
.proc_handler = proc_dointvec,
1987+
.proc_handler = proc_dointvec_minmax_sysadmin,
19881988
.extra1 = SYSCTL_ZERO,
19891989
.extra2 = SYSCTL_ONE,
19901990
},
@@ -1993,7 +1993,7 @@ static struct ctl_table fs_table[] = {
19931993
.data = &security_tpe_all,
19941994
.maxlen = sizeof(int),
19951995
.mode = 0644,
1996-
.proc_handler = proc_dointvec,
1996+
.proc_handler = proc_dointvec_minmax_sysadmin,
19971997
.extra1 = SYSCTL_ZERO,
19981998
.extra2 = SYSCTL_ONE,
19991999
},
@@ -2002,7 +2002,7 @@ static struct ctl_table fs_table[] = {
20022002
.data = &security_tpe_invert,
20032003
.maxlen = sizeof(int),
20042004
.mode = 0644,
2005-
.proc_handler = proc_dointvec,
2005+
.proc_handler = proc_dointvec_minmax_sysadmin,
20062006
.extra1 = SYSCTL_ZERO,
20072007
.extra2 = SYSCTL_ONE,
20082008
},

0 commit comments

Comments
 (0)