switch to using busybox instead of tinylogin
cover switch to using busybox instead of tinylogin
From: Chen Qi <[email protected]>
The following changes since commit 21089515bd18ba18e86ec8f72ff8141b9fb1dea8:
ref-manual: Added xmlto and dblatex packages for docs (2013-05-22 17:23:41 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib ChenQi/tinylogin-busybox
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/tinylogin-busybox
Chen Qi (2):
packagegroup-core-boot: use busybox as the default login manager
busybox: enable login/password commands by default
meta/recipes-core/busybox/busybox-1.20.2/defconfig | 26 ++++++++++---------- .../packagegroups/packagegroup-core-boot.bb | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-)
Signature · 1 line
1.7.9.5
PATCH 1/2 packagegroup-core-boot: use busybox as the default login manager
From: Chen Qi <[email protected]>
tinylogin has been deprecated and the functionality ported into busybox. So we switch to using busybox instead of tinylogin.
[YOCTO #4207]
--- .../packagegroups/packagegroup-core-boot.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +1 -1
@@ -25,7 +25,7 @@ RCONFLICTS_${PN} = "task-core-boot" # Distro can override the following VIRTUAL-RUNTIME providers: VIRTUAL-RUNTIME_dev_manager ?= "udev" -VIRTUAL-RUNTIME_login_manager ?= "tinylogin" +VIRTUAL-RUNTIME_login_manager ?= "busybox" VIRTUAL-RUNTIME_init_manager ?= "sysvinit" VIRTUAL-RUNTIME_initscripts ?= "initscripts" VIRTUAL-RUNTIME_keymaps ?= "keymaps"
Signature · 1 line
1.7.9.5
PATCH 2/2 busybox: enable login/password commands by default
In reply to [email protected]From: Chen Qi <[email protected]>
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]
--- meta/recipes-core/busybox/busybox-1.20.2/defconfig | 26 ++++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-)
meta/recipes-core/busybox/busybox-1.20.2/defconfig +13 -13
@@ -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
Signature · 1 line
1.7.9.5
Re: [PATCH 2/2] busybox: enable login/password commands by default
Quoted 6 lines · On Tue, May 28, 2013 at 2:39 AM, <[email protected]> wrote:
From: Chen Qi <[email protected]>
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.
Quoted 7 lines
These commands are: addgroup, adduser, delgroup, deluser, login, su, getty, sulogin, passwd and vlock.
[YOCTO #4207]
Signed-off-by Chen Qi <[email protected]>
This patch needs to be applied before packagegroup one.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://projetos.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 14 lines · On 28 May 2013 15:39, <[email protected]> wrote:
From: Chen Qi <[email protected]>
The following changes since commit
21089515bd18ba18e86ec8f72ff8141b9fb1dea8:ref-manual: Added xmlto and dblatex packages for docs (2013-05-22
17:23:41 +0100)are available in the git repository at:
git://git.pokylinux.org/poky-contribChenQi/tinylogin-busyboxhttp://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/tinylogin-busybox
Quoted 9 lines
Chen Qi (2):
packagegroup-core-boot: use busybox as the default login manager
busybox: enable login/password commands by defaultmeta/recipes-core/busybox/busybox-1.20.2/defconfig | 26 ++++++++++---------- .../packagegroups/packagegroup-core-boot.bb | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-)
After switching from tinylogin to busybox, the following commands that used to be provided by tinylogin are provided by other packages instead of busybox:
-/bin/login [shadow]
-/sbin/getty [util-linux-agetty]
-/usr/bin/passwd [shadow]
-/usr/bin/su [shadow]
Perhaps util-linux-agetty and shadow packages have higher alternatives priority?
Regards,
Jonathan
Quoted 33 lines · Jonathan Liu
On 28 May 2013 15:39, <[email protected] <mailto:[email protected]>> wrote:
From: Chen Qi <[email protected] <mailto:[email protected]>>
The following changes since commit
21089515bd18ba18e86ec8f72ff8141b9fb1dea8:ref-manual: Added xmlto and dblatex packages for docs
(2013-05-22 17:23:41 +0100)are available in the git repository at:
git://git.pokylinux.org/poky-contrib
<http://git.pokylinux.org/poky-contrib> ChenQi/tinylogin-busybox
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/tinylogin-busyboxChen Qi (2):
packagegroup-core-boot: use busybox as the default login manager
busybox: enable login/password commands by defaultmeta/recipes-core/busybox/busybox-1.20.2/defconfig | 26
++++++++++----------
.../packagegroups/packagegroup-core-boot.bb
<http://packagegroup-core-boot.bb> | 2 +-
2 files changed, 14 insertions(+), 14 deletions(-)After switching from tinylogin to busybox, the following commands that used to be provided by tinylogin are provided by other packages instead of busybox:
(quoted diff) +0
-4-/bin/login [shadow] -/sbin/getty [util-linux-agetty] -/usr/bin/passwd [shadow] -/usr/bin/su [shadow]
Quoted 2 lines
Perhaps util-linux-agetty and shadow packages have higher alternatives priority?
The answer seems to be 'yes'.
meta/recipes-core/busybox/busybox.inc:ALTERNATIVE_PRIORITY = "50" meta/recipes-extended/shadow/shadow_4.1.4.3.bb:ALTERNATIVE_PRIORITY = "200" meta/recipes-core/util-linux/util-linux.inc:ALTERNATIVE_PRIORITY = "100"
//Chen Qi
Quoted 2 lines
Regards,
Jonathan
Quoted 6 lines · On 05/28/2013 02:39 PM, [email protected] wrote:
From: Chen Qi <[email protected]>
The following changes since commit
21089515bd18ba18e86ec8f72ff8141b9fb1dea8:ref-manual: Added xmlto and dblatex packages for docs (2013-05-22 17:23:41 +0100)
Quoted 9 lines
are available in the git repository at:
git://git.pokylinux.org/poky-contribChenQi/tinylogin-busybox
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/tinylogin-busyboxChen Qi (2):
packagegroup-core-boot: use busybox as the default login manager
busybox: enable login/password commands by default
As Otavio suggested, these need to be re-ordered.
Does this all work correctly without the need to use "setuid" of the busybox binary, it seems we currently are doing setuid for the busybox binary since we include SUID app, but what would happen to tinylogin if we remove that?
Sau!
Quoted 4 lines
meta/recipes-core/busybox/busybox-1.20.2/defconfig | 26 ++++++++++---------- .../packagegroups/packagegroup-core-boot.bb | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-)