Move kernel sysctl
This commit is contained in:
parent
1f49ab84e6
commit
2758b47f5b
@ -1,13 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
def kernel_va_space() -> list:
|
|
||||||
va = list()
|
|
||||||
sysctl.append({
|
|
||||||
"from": "cis",
|
|
||||||
"id": "",
|
|
||||||
"description": "",
|
|
||||||
"flag": "kernel.randomize_va_space",
|
|
||||||
"value": 2,
|
|
||||||
"level": "medium",
|
|
||||||
})
|
|
||||||
return va
|
|
@ -214,6 +214,16 @@ def sysctl() -> list:
|
|||||||
"value": 0,
|
"value": 0,
|
||||||
"level": "medium",
|
"level": "medium",
|
||||||
})
|
})
|
||||||
|
# Random VirtualAddress
|
||||||
|
sysctl.append({
|
||||||
|
"from": "cis",
|
||||||
|
"id": "",
|
||||||
|
"description": "Enable random VirtualAddress space for avoiding buffer overflow attacks",
|
||||||
|
"flag": "kernel.randomize_va_space",
|
||||||
|
"value": 2,
|
||||||
|
"level": "medium",
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return sysctl
|
return sysctl
|
||||||
|
Loading…
Reference in New Issue
Block a user