You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What this test is doing is check the PIE and non-PIE values to determine what the potential range of ASLR is. Because ASLR is determined by the combination of the kernel and compiler/runtime linker, we do not need to use the distro settings. We are checking the default kernel capability. The -fPIE flag tells gcc and the runtime linker to maximize ASLR opportunities. This generally means to use mmap, which has the most bits of ASLR, to allocate memory objects. The kernel side is controlled by /proc/sys/kernel/randomize_va_space. As long as it is set to 2, it will maximize everything. But it might not be and this test will show you what you get by default.
The https://github.com/stevegrubb/distro-elf-inspector/blob/main/bin/distro-features/aslr/Makefile defines a bunch of PIE-related compiler parameters. However, if this is focused on the distro functionality, checking the behaviour with the compiler parameters defined by the distros might be more relevant.
I'm thinking about something like
but I'd like to hear about other potential ways of using the values configured via redhat-rpm-config.
The text was updated successfully, but these errors were encountered: