[oe-commits] Ming Liu : base-files: remove invalid entries from /etc/shells

git at git.openembedded.org git at git.openembedded.org
Sun Oct 27 11:27:45 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: a1d6b55bfa5daa9ba5fa9a7a99dd8872284b6ad8
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a1d6b55bfa5daa9ba5fa9a7a99dd8872284b6ad8

Author: Ming Liu <ming.liu at windriver.com>
Date:   Tue Oct 22 11:11:59 2013 +0800

base-files: remove invalid entries from /etc/shells

It's more reasonable and secure to keep /etc/shells a minimal file, and
then entries for valid shells be added dynamically to the system, only if
the packages that provide them are supported.

Signed-off-by: Ming Liu <ming.liu at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/recipes-core/base-files/base-files/shells    |    6 ------
 meta/recipes-core/base-files/base-files_3.0.14.bb |    2 +-
 2 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/meta/recipes-core/base-files/base-files/shells b/meta/recipes-core/base-files/base-files/shells
index ce39b3d..3f63987 100644
--- a/meta/recipes-core/base-files/base-files/shells
+++ b/meta/recipes-core/base-files/base-files/shells
@@ -1,8 +1,2 @@
 # /etc/shells: valid login shells
 /bin/sh
-/bin/ash
-/bin/bash
-/bin/dash
-/bin/ksh
-/usr/bin/ksh
-/usr/bin/screen
diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb
index 054fefa..be3921a 100644
--- a/meta/recipes-core/base-files/base-files_3.0.14.bb
+++ b/meta/recipes-core/base-files/base-files_3.0.14.bb
@@ -143,5 +143,5 @@ FILES_${PN}-doc = "${docdir} ${datadir}/common-licenses"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-CONFFILES_${PN} = "${sysconfdir}/fstab ${@['', '${sysconfdir}/hostname'][(d.getVar('hostname', True) != '')]}"
+CONFFILES_${PN} = "${sysconfdir}/fstab ${@['', '${sysconfdir}/hostname'][(d.getVar('hostname', True) != '')]} ${sysconfdir}/shells"
 



More information about the Openembedded-commits mailing list