Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
audit-tmpdir hook: use abspath matching on RPATH entries #51317
Motivation for this change
This ensures that RPATH entries like "/foo/build" doesn't trigger a match when TMPDIR is "/build. (I've had this problem with a prebuilt package.)
Multiple patterns can be added with -e. But with the -F option the only way I found (yet) to lock to start of string is the --line-regex option. But that fails to allow trailing chars after the match, since it matches whole lines.
(Fails to match "/build/bar".)
Here is one possibility: