diff options
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/Config.in | 68 | ||||
-rw-r--r-- | loginutils/Kbuild | 17 | ||||
-rw-r--r-- | loginutils/Makefile | 23 | ||||
-rw-r--r-- | loginutils/Makefile.in | 52 |
4 files changed, 51 insertions, 109 deletions
diff --git a/loginutils/Config.in b/loginutils/Config.in index 6e45b706a..f434585ef 100644 --- a/loginutils/Config.in +++ b/loginutils/Config.in | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | menu "Login/Password Management Utilities" | 6 | menu "Login/Password Management Utilities" |
7 | 7 | ||
8 | config CONFIG_FEATURE_SHADOWPASSWDS | 8 | config FEATURE_SHADOWPASSWDS |
9 | bool "Support for shadow passwords" | 9 | bool "Support for shadow passwords" |
10 | default n | 10 | default n |
11 | help | 11 | help |
@@ -13,10 +13,10 @@ config CONFIG_FEATURE_SHADOWPASSWDS | |||
13 | readable by root and thus the encrypted passwords are no longer | 13 | readable by root and thus the encrypted passwords are no longer |
14 | publicly readable. | 14 | publicly readable. |
15 | 15 | ||
16 | config CONFIG_USE_BB_SHADOW | 16 | config USE_BB_SHADOW |
17 | bool " Use busybox shadow password functions" | 17 | bool " Use busybox shadow password functions" |
18 | default y | 18 | default y |
19 | depends on CONFIG_USE_BB_PWD_GRP && CONFIG_FEATURE_SHADOWPASSWDS | 19 | depends on USE_BB_PWD_GRP && FEATURE_SHADOWPASSWDS |
20 | help | 20 | help |
21 | If you leave this disabled, busybox will use the system's shadow | 21 | If you leave this disabled, busybox will use the system's shadow |
22 | password handling functions. And if you are using the GNU C library | 22 | password handling functions. And if you are using the GNU C library |
@@ -32,7 +32,7 @@ config CONFIG_USE_BB_SHADOW | |||
32 | able to use PAM to access shadow passwords from remote LDAP | 32 | able to use PAM to access shadow passwords from remote LDAP |
33 | password servers and whatnot. | 33 | password servers and whatnot. |
34 | 34 | ||
35 | config CONFIG_USE_BB_PWD_GRP | 35 | config USE_BB_PWD_GRP |
36 | bool "Use internal password and group functions rather than system functions" | 36 | bool "Use internal password and group functions rather than system functions" |
37 | default n | 37 | default n |
38 | help | 38 | help |
@@ -53,86 +53,86 @@ config CONFIG_USE_BB_PWD_GRP | |||
53 | 53 | ||
54 | If you enable this option, it will add about 1.5k to busybox. | 54 | If you enable this option, it will add about 1.5k to busybox. |
55 | 55 | ||
56 | config CONFIG_ADDGROUP | 56 | config ADDGROUP |
57 | bool "addgroup" | 57 | bool "addgroup" |
58 | default n | 58 | default n |
59 | help | 59 | help |
60 | Utility for creating a new group account. | 60 | Utility for creating a new group account. |
61 | 61 | ||
62 | config CONFIG_DELGROUP | 62 | config DELGROUP |
63 | bool "delgroup" | 63 | bool "delgroup" |
64 | default n | 64 | default n |
65 | help | 65 | help |
66 | Utility for deleting a group account. | 66 | Utility for deleting a group account. |
67 | 67 | ||
68 | config CONFIG_ADDUSER | 68 | config ADDUSER |
69 | bool "adduser" | 69 | bool "adduser" |
70 | default n | 70 | default n |
71 | help | 71 | help |
72 | Utility for creating a new user account. | 72 | Utility for creating a new user account. |
73 | 73 | ||
74 | config CONFIG_DELUSER | 74 | config DELUSER |
75 | bool "deluser" | 75 | bool "deluser" |
76 | default n | 76 | default n |
77 | help | 77 | help |
78 | Utility for deleting a user account. | 78 | Utility for deleting a user account. |
79 | 79 | ||
80 | config CONFIG_GETTY | 80 | config GETTY |
81 | bool "getty" | 81 | bool "getty" |
82 | default n | 82 | default n |
83 | select CONFIG_FEATURE_SYSLOG | 83 | select FEATURE_SYSLOG |
84 | help | 84 | help |
85 | getty lets you log in on a tty, it is normally invoked by init. | 85 | getty lets you log in on a tty, it is normally invoked by init. |
86 | 86 | ||
87 | config CONFIG_FEATURE_UTMP | 87 | config FEATURE_UTMP |
88 | bool "Support utmp file" | 88 | bool "Support utmp file" |
89 | depends on CONFIG_GETTY || CONFIG_LOGIN || CONFIG_SU || CONFIG_WHO | 89 | depends on GETTY || LOGIN || SU || WHO |
90 | default n | 90 | default n |
91 | help | 91 | help |
92 | The file /var/run/utmp is used to track who is currently logged in. | 92 | The file /var/run/utmp is used to track who is currently logged in. |
93 | 93 | ||
94 | config CONFIG_FEATURE_WTMP | 94 | config FEATURE_WTMP |
95 | bool "Support wtmp file" | 95 | bool "Support wtmp file" |
96 | depends on CONFIG_GETTY || CONFIG_LOGIN || CONFIG_SU || CONFIG_LAST | 96 | depends on GETTY || LOGIN || SU || LAST |
97 | default n | 97 | default n |
98 | select CONFIG_FEATURE_UTMP | 98 | select FEATURE_UTMP |
99 | help | 99 | help |
100 | The file /var/run/wtmp is used to track when user's have logged into | 100 | The file /var/run/wtmp is used to track when user's have logged into |
101 | and logged out of the system. | 101 | and logged out of the system. |
102 | 102 | ||
103 | config CONFIG_LOGIN | 103 | config LOGIN |
104 | bool "login" | 104 | bool "login" |
105 | default n | 105 | default n |
106 | select CONFIG_FEATURE_SUID | 106 | select FEATURE_SUID |
107 | select CONFIG_FEATURE_SYSLOG | 107 | select FEATURE_SYSLOG |
108 | help | 108 | help |
109 | login is used when signing onto a system. | 109 | login is used when signing onto a system. |
110 | 110 | ||
111 | Note that Busybox binary must be setuid root for this applet to | 111 | Note that Busybox binary must be setuid root for this applet to |
112 | work properly. | 112 | work properly. |
113 | 113 | ||
114 | config CONFIG_LOGIN_SCRIPTS | 114 | config LOGIN_SCRIPTS |
115 | bool "Support for login scripts" | 115 | bool "Support for login scripts" |
116 | depends on CONFIG_LOGIN | 116 | depends on LOGIN |
117 | default n | 117 | default n |
118 | help | 118 | help |
119 | Enable this if you want login to execute $LOGIN_PRE_SUID_SCRIPT | 119 | Enable this if you want login to execute $LOGIN_PRE_SUID_SCRIPT |
120 | just prior to swithching from root to logged-in user. | 120 | just prior to swithching from root to logged-in user. |
121 | 121 | ||
122 | config CONFIG_FEATURE_SECURETTY | 122 | config FEATURE_SECURETTY |
123 | bool "Support for /etc/securetty" | 123 | bool "Support for /etc/securetty" |
124 | default y | 124 | default y |
125 | depends on CONFIG_LOGIN | 125 | depends on LOGIN |
126 | help | 126 | help |
127 | The file /etc/securetty is used by (some versions of) login(1). | 127 | The file /etc/securetty is used by (some versions of) login(1). |
128 | The file contains the device names of tty lines (one per line, | 128 | The file contains the device names of tty lines (one per line, |
129 | without leading /dev/) on which root is allowed to login. | 129 | without leading /dev/) on which root is allowed to login. |
130 | 130 | ||
131 | config CONFIG_PASSWD | 131 | config PASSWD |
132 | bool "passwd" | 132 | bool "passwd" |
133 | default n | 133 | default n |
134 | select CONFIG_FEATURE_SUID | 134 | select FEATURE_SUID |
135 | select CONFIG_FEATURE_SYSLOG | 135 | select FEATURE_SYSLOG |
136 | help | 136 | help |
137 | passwd changes passwords for user and group accounts. A normal user | 137 | passwd changes passwords for user and group accounts. A normal user |
138 | may only change the password for his/her own account, the super user | 138 | may only change the password for his/her own account, the super user |
@@ -142,11 +142,11 @@ config CONFIG_PASSWD | |||
142 | Note that Busybox binary must be setuid root for this applet to | 142 | Note that Busybox binary must be setuid root for this applet to |
143 | work properly. | 143 | work properly. |
144 | 144 | ||
145 | config CONFIG_SU | 145 | config SU |
146 | bool "su" | 146 | bool "su" |
147 | default n | 147 | default n |
148 | select CONFIG_FEATURE_SUID | 148 | select FEATURE_SUID |
149 | select CONFIG_FEATURE_SYSLOG | 149 | select FEATURE_SYSLOG |
150 | help | 150 | help |
151 | su is used to become another user during a login session. | 151 | su is used to become another user during a login session. |
152 | Invoked without a username, su defaults to becoming the super user. | 152 | Invoked without a username, su defaults to becoming the super user. |
@@ -154,25 +154,25 @@ config CONFIG_SU | |||
154 | Note that Busybox binary must be setuid root for this applet to | 154 | Note that Busybox binary must be setuid root for this applet to |
155 | work properly. | 155 | work properly. |
156 | 156 | ||
157 | config CONFIG_SU_SYSLOG | 157 | config SU_SYSLOG |
158 | bool "Support for syslog in su" | 158 | bool "Support for syslog in su" |
159 | default y | 159 | default y |
160 | depends on CONFIG_SU | 160 | depends on SU |
161 | help | 161 | help |
162 | Enables support for syslog in su. | 162 | Enables support for syslog in su. |
163 | 163 | ||
164 | config CONFIG_SULOGIN | 164 | config SULOGIN |
165 | bool "sulogin" | 165 | bool "sulogin" |
166 | default n | 166 | default n |
167 | select CONFIG_FEATURE_SYSLOG | 167 | select FEATURE_SYSLOG |
168 | help | 168 | help |
169 | sulogin is invoked when the system goes into single user | 169 | sulogin is invoked when the system goes into single user |
170 | mode (this is done through an entry in inittab). | 170 | mode (this is done through an entry in inittab). |
171 | 171 | ||
172 | config CONFIG_VLOCK | 172 | config VLOCK |
173 | bool "vlock" | 173 | bool "vlock" |
174 | default n | 174 | default n |
175 | select CONFIG_FEATURE_SUID | 175 | select FEATURE_SUID |
176 | help | 176 | help |
177 | Build the "vlock" applet which allows you to lock (virtual) terminals. | 177 | Build the "vlock" applet which allows you to lock (virtual) terminals. |
178 | 178 | ||
diff --git a/loginutils/Kbuild b/loginutils/Kbuild new file mode 100644 index 000000000..6c9d193e1 --- /dev/null +++ b/loginutils/Kbuild | |||
@@ -0,0 +1,17 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | lib-y:= | ||
8 | lib-$(CONFIG_ADDGROUP) += addgroup.o | ||
9 | lib-$(CONFIG_ADDUSER) += adduser.o | ||
10 | lib-$(CONFIG_GETTY) += getty.o | ||
11 | lib-$(CONFIG_LOGIN) += login.o | ||
12 | lib-$(CONFIG_PASSWD) += passwd.o | ||
13 | lib-$(CONFIG_SU) += su.o | ||
14 | lib-$(CONFIG_SULOGIN) += sulogin.o | ||
15 | lib-$(CONFIG_VLOCK) += vlock.o | ||
16 | lib-$(CONFIG_DELUSER) += deluser.o | ||
17 | lib-$(CONFIG_DELGROUP) += deluser.o | ||
diff --git a/loginutils/Makefile b/loginutils/Makefile deleted file mode 100644 index b81f42964..000000000 --- a/loginutils/Makefile +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | ifndef top_srcdir | ||
8 | top_srcdir=.. | ||
9 | endif | ||
10 | ifndef top_builddir | ||
11 | top_builddir=.. | ||
12 | endif | ||
13 | srcdir=$(top_srcdir)/loginutils | ||
14 | LOGINUTILS_DIR:=./ | ||
15 | include $(top_srcdir)/Rules.mak | ||
16 | include $(top_builddir)/.config | ||
17 | include Makefile.in | ||
18 | all: $(libraries-y) | ||
19 | -include $(top_builddir)/.depend | ||
20 | |||
21 | clean: | ||
22 | rm -f *.o *.a $(AR_TARGET) | ||
23 | |||
diff --git a/loginutils/Makefile.in b/loginutils/Makefile.in deleted file mode 100644 index 0063762ab..000000000 --- a/loginutils/Makefile.in +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | LOGINUTILS_AR:=loginutils.a | ||
8 | ifndef LOGINUTILS_DIR | ||
9 | LOGINUTILS_DIR:=$(top_builddir)/loginutils/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/loginutils | ||
12 | |||
13 | LOGINUTILS-y:= | ||
14 | LOGINUTILS-$(CONFIG_ADDGROUP) += addgroup.o | ||
15 | LOGINUTILS-$(CONFIG_ADDUSER) += adduser.o | ||
16 | LOGINUTILS-$(CONFIG_GETTY) += getty.o | ||
17 | LOGINUTILS-$(CONFIG_LOGIN) += login.o | ||
18 | LOGINUTILS-$(CONFIG_PASSWD) += passwd.o | ||
19 | LOGINUTILS-$(CONFIG_SU) += su.o | ||
20 | LOGINUTILS-$(CONFIG_SULOGIN) += sulogin.o | ||
21 | LOGINUTILS-$(CONFIG_VLOCK) += vlock.o | ||
22 | LOGINUTILS-$(CONFIG_DELUSER) += deluser.o | ||
23 | LOGINUTILS-$(CONFIG_DELGROUP) += deluser.o | ||
24 | |||
25 | LOGINUTILS-y:=$(sort $(LOGINUTILS-y)) | ||
26 | |||
27 | ifneq ($(strip $(LOGINUTILS-y)),) | ||
28 | libraries-y+=$(LOGINUTILS_DIR)$(LOGINUTILS_AR) | ||
29 | endif | ||
30 | |||
31 | LOGINUTILS_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(LOGINUTILS-y)) | ||
32 | LOGINUTILS_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
33 | APPLET_SRC-y+=$(LOGINUTILS_SRC-y) | ||
34 | APPLET_SRC-a+=$(LOGINUTILS_SRC-a) | ||
35 | |||
36 | needcrypt-y:= | ||
37 | needcrypt-$(CONFIG_LOGIN) := y | ||
38 | needcrypt-$(CONFIG_PASSWD) := y | ||
39 | needcrypt-$(CONFIG_SU) := y | ||
40 | needcrypt-$(CONFIG_SULOGIN) := y | ||
41 | needcrypt-$(CONFIG_VLOCK) := y | ||
42 | |||
43 | |||
44 | ifeq ($(needcrypt-y),y) | ||
45 | LIBRARIES := -lcrypt $(filter-out -lcrypt,$(LIBRARIES)) | ||
46 | endif | ||
47 | |||
48 | $(LOGINUTILS_DIR)$(LOGINUTILS_AR): $(patsubst %,$(LOGINUTILS_DIR)%, $(LOGINUTILS-y)) | ||
49 | $(do_ar) | ||
50 | |||
51 | $(LOGINUTILS_DIR)%.o: $(srcdir)/%.c | ||
52 | $(compile.c) | ||