Skip to content

Commit

Permalink
Fix busybox applets overriding system binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Yash D. Saraf <[email protected]>
  • Loading branch information
Travis committed May 9, 2017
1 parent 7921f0e commit 24cf193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bbx/88-busybox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ case "$1" in
for applet in `$file --list`
do
appletToInstall="${file%/*}/$applet"
ln -sf $file $appletToInstall
ln -s $file $appletToInstall
if ! [ -e $appletToInstall ]
then
echo "#!$file" > $appletToInstall
chmod 0755 $appletToInstall
( chown 0.2000 $appletToInstall || chown 0:2000 $appletToInstall ) 2>/dev/null
(( $SELINUXPRESENT )) && chcon u:object_r:system_file:s0 $appletToInstall
[ ! -z $SELINUXPRESENT ] && chcon u:object_r:system_file:s0 $appletToInstall
fi
done
fi
Expand Down

0 comments on commit 24cf193

Please sign in to comment.