Skip to content

Commit d4cfc7d

Browse files
authored
Fix proc_handler
1 parent 58c6988 commit d4cfc7d

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
@@ -2005,7 +2005,7 @@ static struct ctl_table fs_table[] = {
20052005
.data = &security_tpe,
20062006
.maxlen = sizeof(int),
20072007
.mode = 0644,
2008-
.proc_handler = proc_dointvec,
2008+
.proc_handler = proc_dointvec_minmax_sysadmin,
20092009
.extra1 = SYSCTL_ZERO,
20102010
.extra2 = SYSCTL_ONE,
20112011
},
@@ -2014,7 +2014,7 @@ static struct ctl_table fs_table[] = {
20142014
.data = &security_tpe_all,
20152015
.maxlen = sizeof(int),
20162016
.mode = 0644,
2017-
.proc_handler = proc_dointvec,
2017+
.proc_handler = proc_dointvec_minmax_sysadmin,
20182018
.extra1 = SYSCTL_ZERO,
20192019
.extra2 = SYSCTL_ONE,
20202020
},
@@ -2023,7 +2023,7 @@ static struct ctl_table fs_table[] = {
20232023
.data = &security_tpe_invert,
20242024
.maxlen = sizeof(int),
20252025
.mode = 0644,
2026-
.proc_handler = proc_dointvec,
2026+
.proc_handler = proc_dointvec_minmax_sysadmin,
20272027
.extra1 = SYSCTL_ZERO,
20282028
.extra2 = SYSCTL_ONE,
20292029
},

0 commit comments

Comments
 (0)