[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug#273507: Final solution for SUID programs
From: |
Ognyan Kulev |
Subject: |
Bug#273507: Final solution for SUID programs |
Date: |
Sun, 26 Sep 2004 20:52:14 +0300 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040918 Thunderbird/0.8 Mnenhy/0.6.0.104 |
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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug#273507: Final solution for SUID programs,
Ognyan Kulev <=