microsoft / azurelinux

Linux OS for Azure 1P services and edge appliances
MIT License
4.08k stars 498 forks source link

elfutils: use more secure ptrace scope configuration by default #9492

Closed christopherco closed 1 week ago

christopherco commented 1 week ago
Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)


Summary

By default, set the yama ptrace_scope configuration to "1" meaning to only allow restricted ptrace attach to child processes. This is the more secure default setting for the system.

Users can opt to change this setting by changing the sysctl option to "0" if they need unrestricted ptrace attach properties for things like debugging.

Signed-off-by: Chris Co chrco@microsoft.com

Does this affect the toolchain?

YES

Associated issues
Test Methodology
christopherco commented 1 week ago

Approved, but can you please check on the toolchain build before merging? https://dev.azure.com/mariner-org/mariner/_build/results?buildId=593224&view=results

toolchain builds passed: