Remove world readable&writeable&executable perms
authorFredrik Fornwall <fredrik@fornwall.net>
Mon, 17 Apr 2017 20:23:21 +0000 (22:23 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Mon, 17 Apr 2017 20:23:21 +0000 (22:23 +0200)
We do not want anything world readable, writeable or executable.

Fixes #840.

build-package.sh
packages/libpulseaudio/build.sh

index c70e25b..dad64a0 100755 (executable)
@@ -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
index 1413c2c..804222e 100644 (file)
@@ -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"