mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-08 05:29:22 +00:00
mariadb: use /bin/false as the login shell
Use /bin/false as the login shell, just like what Ubuntu does, otherwise there might be secure issue. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
9a91c137a5
commit
76b0893ddb
@@ -35,7 +35,7 @@ INITSCRIPT_NAME = "mysqld"
|
||||
INITSCRIPT_PARAMS = "start 45 5 . stop 45 0 6 1 ."
|
||||
|
||||
USERADD_PACKAGES = "${PN}-server"
|
||||
USERADD_PARAM_${PN}-server = "--system --home-dir /var/mysql -g nogroup mysql"
|
||||
USERADD_PARAM_${PN}-server = "--system --home-dir /var/mysql -g nogroup --shell /bin/false mysql"
|
||||
|
||||
|
||||
export ac_cv_path_PS="/bin/ps"
|
||||
|
||||
Reference in New Issue
Block a user