1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/winbindd
Alexander Bokovoy 3e27dc4847 daemons: report status to systemd even when running in foreground
When systemd launches samba services, the configuration we have in
systemd service files expects that the main process (/usr/sbin/*)
would use sd_notify() to report back its status. However, we only use
sd_notify() when running become_daemon().

As a result, samba/smbd/winbindd/nmbd processes never report back its
status and the status updates from other childs (smbd, winbindd, etc)
are not accepted as we now have implied NotifyAccess=main since commit
d1740fb3d5

This leads to a timeout and killing samba process by systemd. Situation
is reproducible in Fedora 33, for example.

Make sure that we have required status updates for all daemons in case
we aren't runnning in interactive mode.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14552

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Oct 26 19:58:18 UTC 2020 on sn-devel-184
2020-10-26 19:58:17 +00:00
..
idmap_hash winbindd/idmap: apply const to struct nss_info_methods pointers 2020-10-23 03:25:35 +00:00
idmap_ad_nss.c winbindd/idmap: apply const to struct nss_info_methods pointers 2020-10-23 03:25:35 +00:00
idmap_ad.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_autorid_tdb.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
idmap_autorid.c winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE 2020-10-23 03:25:37 +00:00
idmap_ldap.c winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE 2020-10-23 03:25:37 +00:00
idmap_nss.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_passdb.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_proto.h winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_rfc2307.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_rid.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_rw.c winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE 2020-10-23 03:25:37 +00:00
idmap_rw.h
idmap_script.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_tdb2.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_tdb_common.c winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE 2020-10-23 03:25:37 +00:00
idmap_tdb_common.h
idmap_tdb.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
idmap_util.c
idmap.c winbindd/idmap: apply const to struct idmap_methods pointers 2020-10-23 03:25:35 +00:00
nss_info_template.c
nss_info.c winbindd/idmap: apply const to struct nss_info_methods pointers 2020-10-23 03:25:35 +00:00
wb_dsgetdcname.c
wb_getgrsid.c
wb_getpwsid.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
wb_gettoken.c
wb_group_members.c
wb_lookupname.c
wb_lookupsid.c
wb_lookupsids.c
wb_lookupuseraliases.c
wb_lookupusergroups.c
wb_next_grent.c
wb_next_pwent.c
wb_query_group_list.c
wb_query_user_list.c
wb_queryuser.c wb_queryuser: explain why wb_parent_idmap_setup_send/recv is not needed 2020-10-23 03:25:36 +00:00
wb_seqnum.c
wb_seqnums.c
wb_sids2xids.c wb_sids2xids: defer/skip wb_lookupsids* unless we get ID_TYPE_WB_REQUIRE_TYPE 2020-10-23 04:47:26 +00:00
wb_xids2sids.c wb_xids2sids: make use of the new wb_parent_idmap_setup_send/recv() helpers 2020-10-23 03:25:36 +00:00
winbindd_ads.c winbind: Fix a memleak 2020-09-14 13:33:13 +00:00
winbindd_ads.h
winbindd_allocate_gid.c
winbindd_allocate_uid.c
winbindd_async.c
winbindd_cache.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_ccache_access.c
winbindd_change_machine_acct.c
winbindd_check_machine_acct.c
winbindd_cm.c winbindd: add and use idmap_child_pid() 2020-10-23 03:25:35 +00:00
winbindd_cred_cache.c krb5_wrap: move source3/libads/krb5_errs.c to lib/krb5_wrap/krb5_errs.c 2020-02-10 16:32:37 +00:00
winbindd_creds.c
winbindd_domain_info.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_domain.c
winbindd_dsgetdcname.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_dual_ndr.c librpc/dcesrv_core: move two rpcint_dispatch() copies into dcesrv_call_dispatch_local() 2020-10-23 16:02:37 +00:00
winbindd_dual_srv.c winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE 2020-10-23 03:25:37 +00:00
winbindd_dual.c winbindd: add and use is_idmap_child() 2020-10-23 03:25:35 +00:00
winbindd_endgrent.c
winbindd_endpwent.c
winbindd_getdcname.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_getgrent.c
winbindd_getgrgid.c winbindd: handling missing idmap in getgrgid() 2020-02-05 17:56:58 +00:00
winbindd_getgrnam.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_getgroups.c winbindd: allow idmap backends to mark entries with ID_[TYPE_WB_]REQUIRE_TYPE 2020-10-23 03:25:37 +00:00
winbindd_getpwent.c
winbindd_getpwnam.c
winbindd_getpwsid.c
winbindd_getpwuid.c
winbindd_getsidaliases.c
winbindd_getuserdomgroups.c
winbindd_getusersids.c
winbindd_gpupdate.c
winbindd_group.c
winbindd_idmap.c winbindd: defer the setup_child() from init_idmap_child() 2020-10-23 03:25:36 +00:00
winbindd_irpc.c
winbindd_list_groups.c
winbindd_list_users.c
winbindd_locator.c
winbindd_lookupname.c
winbindd_lookuprids.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_lookupsid.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_lookupsids.c
winbindd_misc.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_msrpc.c
winbindd_ndr.c
winbindd_pam_auth_crap.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_pam_auth.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_pam_chauthtok.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_pam_chng_pswd_auth_crap.c
winbindd_pam_logoff.c
winbindd_pam.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_ping_dc.c
winbindd_proto.h winbindd: add generic wb_parent_idmap_setup_send/recv() helpers 2020-10-23 03:25:36 +00:00
winbindd_reconnect_ads.c
winbindd_reconnect.c
winbindd_rpc.c s3:winbind: Don't abort when receiving a NULL SID 2019-10-16 16:39:42 +00:00
winbindd_rpc.h
winbindd_samr.c winbind: directly use dcerpc_binding_handle_is_connected() in reset_connection_on_error() SAMR code 2020-08-08 10:59:38 +00:00
winbindd_setgrent.c
winbindd_setpwent.c
winbindd_show_sequence.c
winbindd_sids_to_xids.c
winbindd_util.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
winbindd_wins_byip.c s3: libsmb: Convert node_status_query() and associated functions and callers to expect a size_t * return. 2020-09-15 10:09:36 +00:00
winbindd_wins_byname.c s3: libsmb: Convert the WINS and broadcast name functions to return size_t * num addresses. 2020-09-15 10:09:36 +00:00
winbindd_xids_to_sids.c
winbindd.c daemons: report status to systemd even when running in foreground 2020-10-26 19:58:17 +00:00
winbindd.h winbindd: add generic wb_parent_idmap_setup_send/recv() helpers 2020-10-23 03:25:36 +00:00
wscript_build s3:rpc_server: Do not generate and build s3 RPC server code 2020-03-20 15:36:36 +00:00