I have spotted in the latest samba build that winbindd children log to log.winbindd. This was introduced via commit cf4a868 2021-09-17 10:22 +0200 Volker Lendecke o debug: Remove "override_logfile" winbindd_reinit_after_fork() no longer takes the if branch: - if (!override_logfile && logfilename) { + if (is_default_dyn_LOGFILEBASE() && logfilename) {
Patch will follow.
Thanks for taking care of this Pavel, I'll review once your patch is ready.
Created attachment 16843 [details] patch for v4-15
Handling of logfile name for main and child winbindd must ensure: 1) Log directory is selected in this order: * -l option of winbindd * "log file" parameter in smb.conf * compile time value '/usr/local/samba/var' 2) Log filename pattern * parent process uses log.winbindd * child uses log.wb-<name> 3) Log reopen works for both parent and child (i.e. log filename is not changed) * kill -HUP <pid> * smbcontrol <pid> reload-config This fix removes 3 calls of is_default_dyn_LOGFILEBASE() to make sure that: - 1st removal: child uses log.wb-<name> after the fork - 2nd removal: child after HUP signal, does not switch to log.winbindd - 3rd removal: child after smbcontrol reload-config, does not switch to log.winbindd
This bug was referenced in samba master: b92589c31f0eb3eaf2b3b1867e10b759f6a2edda 12d04d9a9288a9358d5f5aebaec126cc610952b1
Comment on attachment 16843 [details] patch for v4-15 Pavel, this doesn't apply to v4-15-test. Can you check this applies to a current 4.15 tree ?
Created attachment 16860 [details] new patch for 4.15 This patch contains also one additional commit cf4a868, it is needed
Reassigning to Jule for inclusion in 4.15.
This bug was referenced in samba v4-15-test: b8c8c2017dbcfe8debf6fee5d131ff36a0e79a39 b299897ab58a22d50c296cc446725ad7aa1b57d3
Closing out bug report. Thanks!
This bug was referenced in samba v4-15-stable (Release samba-4.15.1): b8c8c2017dbcfe8debf6fee5d131ff36a0e79a39 b299897ab58a22d50c296cc446725ad7aa1b57d3