mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Do chroot() after changing user.
This commit is contained in:
parent
dcbe24157a
commit
1617f24aba
1 changed files with 5 additions and 2 deletions
|
@ -977,11 +977,14 @@ static void server_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
We have to first call set_user(), then set_root(), to get things to work
|
||||
with glibc
|
||||
*/
|
||||
set_user(mysqld_user); // Works also with mysqld_user==NULL
|
||||
if (mysqld_chroot)
|
||||
set_root(mysqld_chroot);
|
||||
|
||||
set_user(mysqld_user); // set_user now takes care of mysqld_user==NULL
|
||||
|
||||
#ifdef __NT__
|
||||
/* create named pipe */
|
||||
if (Service.IsNT() && mysql_unix_port[0] && !opt_bootstrap)
|
||||
|
|
Loading…
Reference in a new issue