From 174285d97053e7f396ef47e366f41ce8c25e2565 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 17 Apr 2017 22:23:21 +0200 Subject: [PATCH] Remove world readable&writeable&executable perms We do not want anything world readable, writeable or executable. Fixes #840. --- build-package.sh | 5 +++-- packages/libpulseaudio/build.sh | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build-package.sh b/build-package.sh index c70e25b9..dad64a0b 100755 --- a/build-package.sh +++ b/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 diff --git a/packages/libpulseaudio/build.sh b/packages/libpulseaudio/build.sh index 1413c2c5..804222eb 100644 --- a/packages/libpulseaudio/build.sh +++ b/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" -- 2.11.0