[BusyBox-cvs] CVS update of busybox (Makefile loginutils/Config.in miscutils/Config.in)

Erik Andersen andersen at codepoet.org
Thu Aug 26 23:13:00 UTC 2004


    Date: Thursday, August 26, 2004 @ 17:13:00
  Author: andersen
    Path: /var/cvs/busybox

Modified: Makefile (1.296 -> 1.297) loginutils/Config.in (1.8 -> 1.9)
          miscutils/Config.in (1.18 -> 1.19)

Improve the setuid situation a bit, and make it more apparent
when people really ought to make busybox setuid root.
 -Erik


Index: busybox/Makefile
diff -u busybox/Makefile:1.296 busybox/Makefile:1.297
--- busybox/Makefile:1.296	Tue Jul 20 00:04:28 2004
+++ busybox/Makefile	Thu Aug 26 17:13:00 2004
@@ -57,6 +57,16 @@
 
 install: applets/install.sh busybox busybox.links
 	$(SHELL) $< $(PREFIX)
+ifeq ($(strip $(CONFIG_FEATURE_SUID)),y)
+	@echo
+	@echo
+	@echo --------------------------------------------------
+	@echo You will probably need to make your busybox binary
+	@echo setuid root to ensure all configured applets will
+	@echo work properly.
+	@echo --------------------------------------------------
+	@echo
+endif
 
 uninstall: busybox.links
 	rm -f $(PREFIX)/bin/busybox
Index: busybox/loginutils/Config.in
diff -u busybox/loginutils/Config.in:1.8 busybox/loginutils/Config.in:1.9
--- busybox/loginutils/Config.in:1.8	Fri Jul 30 11:24:47 2004
+++ busybox/loginutils/Config.in	Thu Aug 26 17:12:59 2004
@@ -69,9 +69,13 @@
 config CONFIG_LOGIN
 	bool "login"
 	default n
+	select CONFIG_FEATURE_SUID
 	help
 	  login is used when signing onto a system.
 
+	  Note that Busybox binary must be setuid root for this applet to
+	  work properly.
+
 config CONFIG_FEATURE_SECURETTY
 	bool "  Support for /etc/securetty"
 	default y
@@ -84,19 +88,27 @@
 config CONFIG_PASSWD
 	bool "passwd"
 	default n
+	select CONFIG_FEATURE_SUID
 	help
 	  passwd changes passwords for user and group accounts.  A normal user
 	  may only change the password for his/her own account, the super user
 	  may change the password for any account.  The administrator of a group
 	  may change the password for the group.
 
+	  Note that Busybox binary must be setuid root for this applet to
+	  work properly.
+
 config CONFIG_SU
 	bool "su"
 	default n
+	select CONFIG_FEATURE_SUID
 	help
 	  su is used to become another user during a login session.
 	  Invoked without a username, su defaults to becoming the super user.
 
+	  Note that Busybox binary must be setuid root for this applet to
+	  work properly.
+
 config CONFIG_SULOGIN
 	bool "sulogin"
 	default n
@@ -107,9 +119,13 @@
 config CONFIG_VLOCK
 	bool "vlock"
 	default n
+	select CONFIG_FEATURE_SUID
 	help
 	  Build the "vlock" applet which allows you to lock (virtual) terminals.
 
+	  Note that Busybox binary must be setuid root for this applet to
+	  work properly.
+
 comment "Common options for adduser, deluser, login, su"
 	depends on CONFIG_ADDUSER || CONFIG_DELUSER || CONFIG_LOGIN || CONFIG_SU
 
Index: busybox/miscutils/Config.in
diff -u busybox/miscutils/Config.in:1.18 busybox/miscutils/Config.in:1.19
--- busybox/miscutils/Config.in:1.18	Fri Jul 30 11:24:46 2004
+++ busybox/miscutils/Config.in	Thu Aug 26 17:12:59 2004
@@ -15,6 +15,7 @@
 config CONFIG_CROND
 	bool "crond"
 	default n
+	select CONFIG_FEATURE_SUID
 	help
 	  Crond is a background daemon that parses individual crontab
 	  files and executes commands on behalf of the users in question.
@@ -23,6 +24,8 @@
 	      $ cat /var/spool/cron/crontabs/root
 	      # Run daily cron jobs at 4:40 every day:
 	      40 4 * * * /etc/cron/daily > /dev/null 2>&1
+	  Note that Busybox binary must be setuid root for this applet to
+	  work properly.
 
 config CONFIG_FEATURE_CROND_CALL_SENDMAIL
 	bool "  Using /usr/sbin/sendmail?"



More information about the busybox-cvs mailing list