sysctl: read-only dirty*_bytes

Signed-off-by: Joel Gómez <thegame455min@gmail.com>
This commit is contained in:
Joel Gómez 2024-09-20 11:35:01 -03:00 committed by Ksawlii
parent d30b7253ed
commit 613ee071be

View file

@ -2888,7 +2888,7 @@ static struct ctl_table vm_table[] = {
.procname = "dirty_background_bytes",
.data = &dirty_background_bytes,
.maxlen = sizeof(dirty_background_bytes),
.mode = 0644,
.mode = 0444,
.proc_handler = dirty_background_bytes_handler,
.extra1 = &one_ul,
},
@ -2905,7 +2905,7 @@ static struct ctl_table vm_table[] = {
.procname = "dirty_bytes",
.data = &vm_dirty_bytes,
.maxlen = sizeof(vm_dirty_bytes),
.mode = 0644,
.mode = 0444,
.proc_handler = dirty_bytes_handler,
.extra1 = &dirty_bytes_min,
},