Add warning comments for functions running as SUID/SGID
Some checks failed
Build / check (push) Failing after 5m22s
Build / build (push) Successful in 14m47s
Build / docs (push) Successful in 15m41s

This commit is contained in:
2025-11-10 12:11:24 +09:00
parent d932b57aaa
commit c6d3bbca6f
4 changed files with 12 additions and 3 deletions

View File

@@ -59,6 +59,8 @@ fn will_connect_to_external_server(
/// Note that this function is also responsible for setting up logging,
/// because in the case of an internal server, we need to drop privileges
/// before we can initialize logging.
///
/// **WARNING:** This function may be run with elevated privileges.
pub fn bootstrap_server_connection_and_drop_privileges(
server_socket_path: Option<PathBuf>,
config: Option<PathBuf>,