Patchwork [Pull,v3,4/4] dbus: ensure that the useradd shell is set to /bin/false

login
register
mail settings
Submitter Saul Wold
Date Nov. 2, 2011, 12:21 a.m.
Message ID <e71dbde313bc39afd1a3f174e9ea6ada66b9b0b3.1320191934.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/14177/
State New, archived
Headers show

Comments

Saul Wold - Nov. 2, 2011, 12:21 a.m.
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-core/dbus/dbus.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc
index 5028310..caa781c 100644
--- a/meta/recipes-core/dbus/dbus.inc
+++ b/meta/recipes-core/dbus/dbus.inc
@@ -22,7 +22,8 @@  INITSCRIPT_PARAMS = "start 02 5 3 2 . stop 20 0 1 6 ."
 USERADD_PACKAGES = "${PN}"
 GROUPADD_PARAM_${PN} = "-r netdev"
 USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \
-                       --no-create-home --user-group messagebus"
+                       --no-create-home --shell /bin/false \
+                       --user-group messagebus"
 
 CONFFILES_${PN} = "${sysconfdir}/dbus-1/system.conf ${sysconfdir}/dbus-1/session.conf"