From patchwork Sun Jan 13 14:13:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagaert Johan X-Patchwork-Id: 211621 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 5B71F2C0101 for ; Mon, 14 Jan 2013 01:14:43 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1E356FFB51; Sun, 13 Jan 2013 14:14:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A5tAib5VFdwf; Sun, 13 Jan 2013 14:14:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 295AAFFB5D; Sun, 13 Jan 2013 14:14:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 96A428F7A0 for ; Sun, 13 Jan 2013 14:14:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4285580F2A for ; Sun, 13 Jan 2013 14:14:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OgXmGiLFFI3I for ; Sun, 13 Jan 2013 14:14:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailrelay011.isp.belgacom.be (mailrelay011.isp.belgacom.be [195.238.6.178]) by whitealder.osuosl.org (Postfix) with ESMTP id BC15C8081C for ; Sun, 13 Jan 2013 14:14:35 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAMPA8lBR8dwC/2dsb2JhbABEvgMXc4MeSQEBBEs3iB20EY4BAQWDJwOWC4Ecjy2CdoFnBxc Received: from 2.220-241-81.adsl-dyn.isp.belgacom.be (HELO debian605.apex) ([81.241.220.2]) by relay.skynet.be with ESMTP; 13 Jan 2013 15:14:34 +0100 From: Sagaert Johan To: buildroot@busybox.net Date: Sun, 13 Jan 2013 15:13:44 +0100 Message-Id: <1358086424-17961-1-git-send-email-sagaert.johan@skynet.be> X-Mailer: git-send-email 1.8.0.1 Cc: Sagaert Johan Subject: [Buildroot] [PATCH 1/1] Only show hostname, issue and password options when default skeleton is selected. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Only show hostname, issue and password options when the default skeleton is selected. Moved the menu sections so that when a custom skeleton is selected the issue, hostname and default password options are hidden. Signed-off-by: Sagaert Johan --- system/Config.in | 132 +++++++++++++++++++++++++++---------------------------- 1 file changed, 66 insertions(+), 66 deletions(-) diff --git a/system/Config.in b/system/Config.in index 69863c4..066f1d2 100644 --- a/system/Config.in +++ b/system/Config.in @@ -1,71 +1,5 @@ menu "System configuration" -config BR2_TARGET_GENERIC_HOSTNAME - string "System hostname" - default "buildroot" - help - Select system hostname to be stored in /etc/hostname. - -config BR2_TARGET_GENERIC_ISSUE - string "System banner" - default "Welcome to Buildroot" - help - Select system banner (/etc/issue) to be displayed at login. - -choice - bool "Passwords encoding" - default BR2_TARGET_GENERIC_PASSWD_MD5 - help - Choose the password encoding scheme to use when Buildroot - needs to encode a password (eg. the root password, below). - - Note: this is used at build-time, and *not* at runtime. - -config BR2_TARGET_GENERIC_PASSWD_DES - bool "des" - help - Use standard 56-bit DES-based crypt(3) to encode passwords. - - Old, wildly available, but also the weakest, very susceptible to - brute-force attacks. - -config BR2_TARGET_GENERIC_PASSWD_MD5 - bool "md5" - help - Use MD5 to encode passwords. - - The default. Wildly available, and pretty good. - Although pretty strong, MD5 is now an old hash function, and - suffers from some weaknesses, which makes it susceptible to - brute-force attacks. - -config BR2_TARGET_GENERIC_PASSWD_SHA256 - bool "sha-256" - help - Use SHA256 to encode passwords. - - Very strong, but not ubiquitous, although available in glibc - for some time now. Choose only if you are sure your C library - understands SHA256 passwords. - -config BR2_TARGET_GENERIC_PASSWD_SHA512 - bool "sha-512" - help - Use SHA512 to encode passwords. - - Extremely strong, but not ubiquitous, although available in glibc - for some time now. Choose only if you are sure your C library - understands SHA512 passwords. - -endchoice # Passwd encoding - -config BR2_TARGET_GENERIC_PASSWD_METHOD - string - default "des" if BR2_TARGET_GENERIC_PASSWD_DES - default "md5" if BR2_TARGET_GENERIC_PASSWD_MD5 - default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256 - default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512 - choice prompt "/dev management" default BR2_ROOTFS_DEVICE_CREATION_STATIC @@ -173,6 +107,18 @@ endif if BR2_ROOTFS_SKELETON_DEFAULT +config BR2_TARGET_GENERIC_HOSTNAME + string "System hostname" + default "buildroot" + help + Select system hostname to be stored in /etc/hostname. + +config BR2_TARGET_GENERIC_ISSUE + string "System banner" + default "Welcome to Buildroot" + help + Select system banner (/etc/issue) to be displayed at login. + config BR2_TARGET_GENERIC_ROOT_PASSWD string "Root password" default "" @@ -193,6 +139,60 @@ config BR2_TARGET_GENERIC_ROOT_PASSWD The password appears in clear in the .config file, and may appear in the build log! Avoid using a valuable password if either the .config file or the build log may be distributed! + +choice + bool "Passwords encoding" + default BR2_TARGET_GENERIC_PASSWD_MD5 + help + Choose the password encoding scheme to use when Buildroot + needs to encode a password (eg. the root password, below). + + Note: this is used at build-time, and *not* at runtime. + +config BR2_TARGET_GENERIC_PASSWD_DES + bool "des" + help + Use standard 56-bit DES-based crypt(3) to encode passwords. + + Old, wildly available, but also the weakest, very susceptible to + brute-force attacks. + +config BR2_TARGET_GENERIC_PASSWD_MD5 + bool "md5" + help + Use MD5 to encode passwords. + + The default. Wildly available, and pretty good. + Although pretty strong, MD5 is now an old hash function, and + suffers from some weaknesses, which makes it susceptible to + brute-force attacks. + +config BR2_TARGET_GENERIC_PASSWD_SHA256 + bool "sha-256" + help + Use SHA256 to encode passwords. + + Very strong, but not ubiquitous, although available in glibc + for some time now. Choose only if you are sure your C library + understands SHA256 passwords. + +config BR2_TARGET_GENERIC_PASSWD_SHA512 + bool "sha-512" + help + Use SHA512 to encode passwords. + + Extremely strong, but not ubiquitous, although available in glibc + for some time now. Choose only if you are sure your C library + understands SHA512 passwords. + +endchoice # Passwd encoding + +config BR2_TARGET_GENERIC_PASSWD_METHOD + string + default "des" if BR2_TARGET_GENERIC_PASSWD_DES + default "md5" if BR2_TARGET_GENERIC_PASSWD_MD5 + default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256 + default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512 config BR2_TARGET_GENERIC_GETTY_PORT string "Port to run a getty (login prompt) on"