From 53c67bc8c2c161c0cab6da00f91ca5d26e11440f Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 30 Dec 2016 14:34:34 +0100 Subject: [PATCH] Fix permissions of the DLL files and game executables The DLL files should not be exectable, nor should the game executables be writeable by the group. --- packaging/linux/deb/buildpackage.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/linux/deb/buildpackage.sh b/packaging/linux/deb/buildpackage.sh index 446c9e97b3..424a8aef2f 100755 --- a/packaging/linux/deb/buildpackage.sh +++ b/packaging/linux/deb/buildpackage.sh @@ -22,12 +22,14 @@ mkdir "${DEB_BUILD_ROOT}" cp -R DEBIAN "${DEB_BUILD_ROOT}" cp -R "${LINUX_BUILD_ROOT}/usr" "${DEB_BUILD_ROOT}" cp -R Eluant.dll.config "${DEB_BUILD_ROOT}/${LIBDIR}/" +chmod 0644 "${DEB_BUILD_ROOT}/${LIBDIR}/"*.dll +chmod 0644 "${DEB_BUILD_ROOT}/${LIBDIR}/"*/**/*.dll # Binaries go in /usr/games mv "${DEB_BUILD_ROOT}/usr/bin/" "${DEB_BUILD_ROOT}/usr/games/" sed "s|/usr/bin|/usr/games|g" "${DEB_BUILD_ROOT}/usr/games/openra" > temp mv -f temp "${DEB_BUILD_ROOT}/usr/games/openra" -chmod +x "${DEB_BUILD_ROOT}/usr/games/openra" +chmod 0755 "${DEB_BUILD_ROOT}/usr/games/openra"* # Put the copyright and changelog in /usr/share/doc/openra/ mkdir -p "${DEB_BUILD_ROOT}/${DOCDIR}"