mirror of https://github.com/google/oss-fuzz.git
[infra] do not create uid 0
This commit is contained in:
parent
c2f88ee60f
commit
a7ed13b878
|
@ -44,7 +44,7 @@ echo "CXXFLAGS=$CXXFLAGS"
|
|||
echo "---------------------------------------------------------------"
|
||||
|
||||
BUILD_CMD="bash -eux $SRC/build.sh"
|
||||
if [ -n "${BUILD_UID-}" ]; then
|
||||
if [ -n "${BUILD_UID-}" -a "$BUILD_ID" -ne "0"]; then
|
||||
adduser -u $BUILD_UID --disabled-password --gecos '' builder
|
||||
chown -R builder $SRC $OUT $WORK
|
||||
su -c "$BUILD_CMD" builder
|
||||
|
|
Loading…
Reference in New Issue