aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2017-03-09 21:52:02 +0100
committerCatalin Marinas <[email protected]>2017-03-23 13:54:33 +0000
commit28b066da69b937ea4104341cb5d9324109faab7f (patch)
treefd756df58f4a49ff370059200cd7a920dbe04e55 /net/unix/sysctl_net_unix.c
parent5ea5306c3235a157f06040c59730b1133115ed26 (diff)
arm64: mmu: map .text as read-only from the outset
Now that alternatives patching code no longer relies on the primary mapping of .text being writable, we can remove the code that removes the writable permissions post-init time, and map it read-only from the outset. To preserve the existing behavior under rodata=off, which is relied upon by external debuggers to manage software breakpoints (as pointed out by Mark), add an early_param() check for rodata=, and use RWX permissions if it set to 'off'. Reviewed-by: Laura Abbott <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Mark Rutland <[email protected]> Tested-by: Mark Rutland <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions