Package: hurd
Version: 20040508-4 UNRELEASED
Severity: important
Tags: sid patch

SVN hurd package doesn't really set SUID bit for /bin/login because chmod u+s is not executed on the correct file. The attached patch sets SUID of /bin/login and other SUID programs.

Regards,
ogi
Index: rules
===================================================================
--- rules	(revision 53)
+++ rules	(working copy)
@@ -29,10 +29,14 @@
 DEB_CONFIGURE_USER_FLAGS := --disable-profile
 DEB_MAKE_INSTALL_TARGET = install prefix=$(DEB_DESTDIR) sysconfdir=$(DEB_DESTDIR)/etc localstatedir=$(DEB_DESTDIR)/var
 
+# Set-UID programs.  To get the list of Set-UID programs in the Hurd,
+# use the following command:
+#   find -name Makefile | xargs grep ^INSTALL-
+SUID_PROGRAMS = /bin/ids /bin/login /bin/ps /bin/w
+
 install/hurd::
 	# runsystem is managed by update-alternatives
 	mv debian/tmp/libexec/runsystem debian/tmp/libexec/runsystem.gnu
 
 binary-predeb/hurd::
-	chmod u+s $(DEB_DESTDIR)/bin/login
-
+	chmod u+s $(patsubst %, debian/$(cdbs_curpkg)%, $(SUID_PROGRAMS))
_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to