Opportunisticly chdir to "core" (should be writeable by _icbd) after
chroot to get working core dumps.
This commit is contained in:
parent
ad8b08d940
commit
cdd2ff5fd2
4
icbd.c
4
icbd.c
@ -469,11 +469,13 @@ icbd_restrict(void)
|
||||
exit(EX_UNAVAILABLE);
|
||||
}
|
||||
|
||||
if (chdir("/" ICBD_HOME) < 0) {
|
||||
if (chdir("/") < 0) {
|
||||
syslog(LOG_ERR, "/" ICBD_HOME ": %m");
|
||||
exit(EX_UNAVAILABLE);
|
||||
}
|
||||
|
||||
chdir(ICBD_HOME);
|
||||
|
||||
if (setuid(pw->pw_uid) < 0) {
|
||||
syslog(LOG_ERR, "%d: %m", pw->pw_uid);
|
||||
exit(EX_NOPERM);
|
||||
|
Loading…
x
Reference in New Issue
Block a user