diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2021-03-21 13:18:43 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2021-03-21 13:41:30 -0400 |
commit | f2e6186ed0ce9b68362ad25d897f1e3c697728ec (patch) | |
tree | 5b9639ecfed66bcba2c4ec398096d2b7368ffae0 /ctx.h | |
parent | 75950323dcf086e89e23e923fa1e2bd31f1c2f62 (diff) | |
download | bfs-f2e6186ed0ce9b68362ad25d897f1e3c697728ec.tar.xz |
tests: Drop capabilities when run as root on Linux
bfs's tests rely on file permissions being enforced, which leads them to
work incorrectly when run as root. This is probably the most common
packaging issue for bfs, most recently seen with Void Linux's update to
bfs 2.2.
Make it easier on packagers by using capsh, if it's available, to drop
the DAC privileges for the tests.
Link: https://github.com/void-linux/void-packages/pull/29437#issuecomment-798670288
Link: https://salsa.debian.org/lamby/pkg-bfs/-/commit/b173efb35da126adb39b0984219d6a2fd9ff428f
Diffstat (limited to 'ctx.h')
0 files changed, 0 insertions, 0 deletions