> +## Many systemd services set up their logging by calling > +## functions log_parse_environment() and log_open(), which > +## source codes are available on > +## https://github.com/systemd/systemd/blob/v227/src/basic/log.c > +##
> +##> +## Function log_parse_environment calls parse_proc_cmdline, > +## which reads /proc/cmdline and calls detect_container, > +## which reads /proc/1/environ. > +##
> +##> +## Function log_open may call log_open_syslog, which calls > +## create_log_socket, which calls fd_inc_sndbuf, which does > +## setsockopt(fd, SOL_SOCKET, SO_SNDBUFFORCE, ...), which > +## requires CAP_NET_ADMIN. Nevertheless if the process does not > +## have CAP_NET_ADMIN access, fd_inc_sndbuf falls back to using > +## SO_SNDBUF option, which does not require any capability. > +##
> +##