mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Load the time zone and connect syslog before chroot
The C library reads /etc/localtime on the first use of local time and connects to /dev/log on the first syslog() call. With a chroot before either, every local time became UTC and every syslog message was lost. The time zone is now loaded before chroot() and openlog() connects at once. The chroot entry of 3proxy.cfg(5) lists what PAM, LDAP and ODBC still need inside the chroot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
206c923d6c
commit
b5e9459d64
2 files changed
+18
-2
No files matched your search
+6
-1
@@ -1388,7 +1388,12 @@ for all threads.
|
||||
.BR chroot
|
||||
\fI<path>\fR [\fI<uid>\fR] [\fI<gid>\fR]
|
||||
.br
|
||||
calls chroot(path) and sets gid/uid. Unix only. uid/gid supported since 0.9, can be numeric or username/groupname
|
||||
calls chroot(path) and sets gid/uid. Unix only. uid/gid supported since 0.9, can be numeric or username/groupname.
|
||||
The time zone and the syslog connection are set up before the call.
|
||||
Plugins which read their own configuration or load modules while running need them inside the chroot:
|
||||
PAM (\fI/etc/pam.d\fR and the modules it names, read for every authentication),
|
||||
LDAP (\fIldap.conf\fR and, for ldaps, the CA certificates),
|
||||
ODBC (\fIodbc.ini\fR, \fIodbcinst.ini\fR and the driver libraries, loaded again whenever the connection is reopened).
|
||||
|
||||
.br
|
||||
.BR stacksize
|
||||
|
||||
Reference in new issue
Block a user