Browse Source

Remove world readable&writeable&executable perms

We do not want anything world readable, writeable or executable.

Fixes #840.
android-5
Fredrik Fornwall 8 years ago
parent
commit
174285d970
  1. 5
      build-package.sh
  2. 3
      packages/libpulseaudio/build.sh

5
build-package.sh

@ -865,10 +865,11 @@ termux_step_massage() {
# Move over sbin to bin:
for file in sbin/*; do if test -f "$file"; then mv "$file" bin/; fi; done
# Remove world permissions and add write permissions.
# Remove world permissions and add write permissions.
# The -f flag is used to suppress warnings about dangling symlinks (such
# as ones to /system/... which may not exist on the build machine):
find . -exec chmod -f u+w,o-rwx \{\} \;
find . -exec chmod -f u+w,g-rwx,o-rwx \{\} \;
if [ "$TERMUX_DEBUG" = "" ]; then
# Strip binaries. file(1) may fail for certain unusual files, so disable pipefail.
set +e +o pipefail

3
packages/libpulseaudio/build.sh

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=http://www.freedesktop.org/wiki/Software/PulseAudio
TERMUX_PKG_HOMEPAGE=https://www.freedesktop.org/wiki/Software/PulseAudio
TERMUX_PKG_DESCRIPTION="A featureful, general-purpose sound server - shared libraries"
TERMUX_PKG_VERSION=10.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=a3186824de9f0d2095ded5d0d0db0405dc73133983c2fbb37291547e37462f57
TERMUX_PKG_DEPENDS="libltdl, libsndfile"

Loading…
Cancel
Save