Patchwork [V4,1/3] base-files: remove invalid entries from /etc/shells

login
register
mail settings
Submitter Ming Liu
Date Oct. 20, 2013, 8:02 a.m.
Message ID <1382256149-14223-1-git-send-email-ming.liu@windriver.com>
Download mbox | patch
Permalink /patch/60255/
State New
Headers show

Comments

Ming Liu - Oct. 20, 2013, 8:02 a.m.
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@windriver.com>
---
 meta/recipes-core/base-files/base-files/shells | 6 ------
 1 file changed, 6 deletions(-)

Patch

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