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>] [day] [month] [year] [list]
Message-ID: <20100110120100.GB16225@os.inf.tu-dresden.de>
Date:	Sun, 10 Jan 2010 13:01:00 +0100
From:	Adam Lackorzynski <adam@...inf.tu-dresden.de>
To:	Michal Marek <mmarek@...e.cz>, linux-kernel@...r.kernel.org
Subject: [PATCH] deb-pkg: Fix package creation with arbitrary used umask


The used umask has influence on the permissions of the created files,
resulting in errors such as:

dpkg-deb: building package `linux-image-2.6.33-rc3' in `../linux-image-2.6.33-rc3_2.6.33-rc3-3_i386.deb'.
dpkg-deb: control directory has bad permissions 700 (must be >=0755 and <=0775)
make[1]: *** [deb-pkg] Error 2

Signed-off-by: Adam Lackorzynski <adam@...inf.tu-dresden.de>
---
 scripts/package/builddeb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 8b357b0..ddca190 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -21,7 +21,7 @@ create_package() {
 
 	# Fix ownership and permissions
 	chown -R root:root "$pdir"
-	chmod -R go-w "$pdir"
+	chmod -R go=u-w "$pdir"
 
 	# Create the package
 	dpkg-gencontrol -isp -p$pname -P"$pdir"
-- 
1.5.6.5


Adam
-- 
Adam                 adam@...inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/
--
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