]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: account for ADDR_NO_RANDOMIZE if it's set
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 9 Jun 2022 09:34:09 +0000 (11:34 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 9 Jun 2022 20:34:01 +0000 (05:34 +0900)
commit894dad2975c61f59e71561cab21d6f85e8523b57
tree7efc9fa8f1f8374fdaaf6393b8ceaa3270528d6e
parent677ec2d609eccddd709636752a374ed40b463d0d
test: account for ADDR_NO_RANDOMIZE if it's set

On ppc64le sanitizers disable ASLR (i.e. by setting ADDR_NO_RANDOMIZE),
which opinionated_personality() doesn't return. Let's tweak the current
personality ourselves in such cases.

See: https://github.com/llvm/llvm-project/commit/78f7a6eaa601bfdd6ae70ffd3da2254c21ff77f9

Resolves: #23666
src/test/test-seccomp.c