Skip to content

Commit ad45af9

Browse files
t-8chJoelgranados
authored andcommitted
ucounts: constify sysctl table user_table
The data of user_table is never modified, but only used as a template to create copies from. Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Joel Granados <[email protected]>
1 parent 50a191a commit ad45af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/ucount.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static long ue_int_max = INT_MAX;
7070
.extra1 = &ue_zero, \
7171
.extra2 = &ue_int_max, \
7272
}
73-
static struct ctl_table user_table[] = {
73+
static const struct ctl_table user_table[] = {
7474
UCOUNT_ENTRY("max_user_namespaces"),
7575
UCOUNT_ENTRY("max_pid_namespaces"),
7676
UCOUNT_ENTRY("max_uts_namespaces"),

0 commit comments

Comments
 (0)