Re: [PATCH v5 2/4] man/man5/tunables.conf: Document system-wide tunables config

DJ Delorie <[email protected]>
Newsgroups org.kernel.vger.linux-man
Message-ID <[email protected]>
Alejandro Colomar <[email protected]> writes:
> Another detail I noticed now: How is the process name taken?

The kernel doesn't actually tell us the name of the file we're exec'd
from.  It passes an already open file descriptor.  So we have to infer
the file name from /proc/self/exe.  If that isn't available, we use
argv[0] (unless AT_SECURE) but that can be vastly different than
/proc/self/exe as it's a separate parameter in the execve() call (hence
unless AT_SECURE ;).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.