lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1252015231.3475.9.camel@localhost>
Date:	Thu, 03 Sep 2009 23:00:31 +0100
From:	Ben Hutchings <ben@...adent.org.uk>
To:	linux-kernel@...r.kernel.org
Cc:	maximilian attems <max@...o.at>, Frans Pop <elendil@...net.nl>
Subject: [PATCH] builddeb: Fix packaged file permissions

The packaged files' permissions are implicitly dependent on the
current umask.  Not only can this result in surprisingly restrictive
permissions, but dpkg-deb will fail if the DEBIAN directory does not
have permissions 755 or 775.  Therefore, set the umask to 022 before
building a package.

Signed-off-by: Ben Hutchings <ben@...adent.org.uk>
---
 scripts/package/builddeb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 8b357b0..24cfd80 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -12,6 +12,8 @@
 
 set -e
 
+umask 022
+
 create_package() {
 	local pname="$1" pdir="$2"
 
-- 
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ