Closed ldilley closed 5 years ago
During hardening, the kernel parameter kernel.yama.ptrace_scope
was set to a value of 2
which only allows privileged use of ptrace()
. I've reset the value to 0
which allows non-privileged use of clang to work when the leak sanitizer is enabled. I've also backed out of the register.cgi
workaround of permitting exit code 1
since this is now resolved.
@dracc and void from Discord reported earlier this morning that web-based account registration was not working properly on blue. Upon inspection, it was found that
dbtool
compiled with the clang address and undefined behavior sanitizers cause an exit code other than 0 to be returned even upon successful account creation. With leak detection enabled, it returns 1 as noted below.Leak detection can be disabled as a workaround by setting the following environment variables:
This will likely make
dbtool
return 0 again. Once #34 is implemented and used instead, the above will no longer be an issue.