Patchwork [2/2] busybox: enable login/password commands by default

login
register
mail settings
Submitter Qi.Chen@windriver.com
Date May 28, 2013, 5:39 a.m.
Message ID <4f4edbf9838c30a32a61d1284b86c9eacb30b1d1.1369719531.git.Qi.Chen@windriver.com>
Download mbox | patch
Permalink /patch/50607/
State New
Headers show

Comments

Qi.Chen@windriver.com - May 28, 2013, 5:39 a.m.
From: Chen Qi <Qi.Chen@windriver.com>

As we switch to using busybox as the default login manager, we here
modify the defconfig file of busybox to enable the commands that
were previously provided by tinylogin.

These commands are: addgroup, adduser, delgroup, deluser, login, su,
getty, sulogin, passwd and vlock.

[YOCTO #4207]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-core/busybox/busybox-1.20.2/defconfig |   26 ++++++++++----------
 1 file changed, 13 insertions(+), 13 deletions(-)
Otavio Salvador - May 28, 2013, 6:17 a.m.
On Tue, May 28, 2013 at 2:39 AM, <Qi.Chen@windriver.com> wrote:

> From: Chen Qi <Qi.Chen@windriver.com>
>
> As we switch to using busybox as the default login manager, we here
> modify the defconfig file of busybox to enable the commands that
> were previously provided by tinylogin.
>
> These commands are: addgroup, adduser, delgroup, deluser, login, su,
> getty, sulogin, passwd and vlock.
>
> [YOCTO #4207]
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
>

This patch needs to be applied before packagegroup one.

Patch

diff --git a/meta/recipes-core/busybox/busybox-1.20.2/defconfig b/meta/recipes-core/busybox/busybox-1.20.2/defconfig
index bdfdadf..72f792d 100644
--- a/meta/recipes-core/busybox/busybox-1.20.2/defconfig
+++ b/meta/recipes-core/busybox/busybox-1.20.2/defconfig
@@ -449,39 +449,39 @@  CONFIG_INIT_TERMINAL_TYPE=""
 #
 # CONFIG_ADD_SHELL is not set
 # CONFIG_REMOVE_SHELL is not set
-# CONFIG_FEATURE_SHADOWPASSWDS is not set
+CONFIG_FEATURE_SHADOWPASSWDS=y
 # CONFIG_USE_BB_PWD_GRP is not set
 # CONFIG_USE_BB_SHADOW is not set
 CONFIG_USE_BB_CRYPT=y
 # CONFIG_USE_BB_CRYPT_SHA is not set
-# CONFIG_ADDUSER is not set
-# CONFIG_FEATURE_ADDUSER_LONG_OPTIONS is not set
+CONFIG_ADDUSER=y
+CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=y
 # CONFIG_FEATURE_CHECK_NAMES is not set
 CONFIG_FIRST_SYSTEM_ID=0
 CONFIG_LAST_SYSTEM_ID=0
-# CONFIG_ADDGROUP is not set
-# CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS is not set
+CONFIG_ADDGROUP=y
+CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS=y
 # CONFIG_FEATURE_ADDUSER_TO_GROUP is not set
-# CONFIG_DELUSER is not set
-# CONFIG_DELGROUP is not set
+CONFIG_DELUSER=y
+CONFIG_DELGROUP=y
 # CONFIG_FEATURE_DEL_USER_FROM_GROUP is not set
-# CONFIG_GETTY is not set
-# CONFIG_LOGIN is not set
+CONFIG_GETTY=y
+CONFIG_LOGIN=y
 # CONFIG_LOGIN_SESSION_AS_CHILD is not set
 # CONFIG_PAM is not set
 # CONFIG_LOGIN_SCRIPTS is not set
 # CONFIG_FEATURE_NOLOGIN is not set
 # CONFIG_FEATURE_SECURETTY is not set
-# CONFIG_PASSWD is not set
+CONFIG_PASSWD=y
 # CONFIG_FEATURE_PASSWD_WEAK_CHECK is not set
 # CONFIG_CRYPTPW is not set
 # CONFIG_CHPASSWD is not set
 CONFIG_FEATURE_DEFAULT_PASSWD_ALGO=""
-# CONFIG_SU is not set
+CONFIG_SU=y
 # CONFIG_FEATURE_SU_SYSLOG is not set
 # CONFIG_FEATURE_SU_CHECKS_SHELLS is not set
-# CONFIG_SULOGIN is not set
-# CONFIG_VLOCK is not set
+CONFIG_SULOGIN=y
+CONFIG_VLOCK=y
 
 #
 # Linux Ext2 FS Progs