mirror of
https://github.com/shadow-maint/shadow.git
synced 2026-01-26 14:03:17 +00:00
tests/run_some: make sure unshared root user can descend build dir
This was causing errors in my local testing in vms. Signed-off-by: Serge Hallyn <serge@hallyn.com>
This commit is contained in:
parent
488bf4a519
commit
2457fc7c6b
@ -7,6 +7,22 @@ unset LANG
|
||||
unset LANGUAGE
|
||||
. common/config.sh
|
||||
|
||||
# When we unshare -Ur, we must be able to descend the build path.
|
||||
# But $HOME might not be world x. Fix that.
|
||||
fixup_home_perms() {
|
||||
p="${build_path}"
|
||||
d=""
|
||||
echo "$p" | tr '/' '\n' | while read f; do
|
||||
if [ -z "$f" ]; then
|
||||
continue
|
||||
fi
|
||||
d="$d/$f"
|
||||
chmod ugo+x "$d"
|
||||
done
|
||||
}
|
||||
|
||||
fixup_home_perms
|
||||
|
||||
USE_PAM="yes"
|
||||
FAILURE_TESTS="yes"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user