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

Alejandro Colomar <[email protected]>
Newsgroups org.kernel.vger.linux-man
Message-ID <aooioNNOhTmULlfl@devuan>
Hi DJ,

> Date: 2026-08-22 13:54:01-0400
> From: DJ Delorie <[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 ;).

Hmmmm; interesting!  I'll push your patch already, as is, and work on
a patch (set) of my own to improve it a little bit.  I'll send you the
patch (set) for discussion.  Thanks!


Have a lovely night!
Alex

-- 
<https://www.alejandro-colomar.es>
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmqKIuYACgkQ64mZXMKQ
wqm2Sg//XM25/m6eFL2qnpzcZsiwB5p/jG9I5d8ru9sTiwd3mro2qUnzUkoKGxoG
ya2VvEyeADHLLvNG4sLcGQJl6r3AzNxGiJwGNTcVlYmQ9RMgtgutB4Ll2V82Bhfa
YQF2/RtGs1PQ99kt7YRqSSzo3Q7hadCcSZgmrtvJDo/6hlEJMEzfN97v4sokrp2S
aO5QsP6UJYdAq/tXEpWBsLZzTqK4sv66VBn9PzwCplxNYLo/bdGN1nmRsFnU20QN
LKzIsWihDmEJ8SlH8+fDSXTi+yNTGaEA1u2VlDuzar/r/aP/W2tmMrulTM7z7Tne
bfTu84ghvHf3S9nzFdjjprHwCHFNqwJdYL01QUhnEE66P5MwKcoYhVERohp2Qw/m
RSiElfRpOzV9SYn6RF3NLeOIlBd4sCdHI1LAZISCEU2TTfraxZGexSnmO4ptEWeY
fH9/OiqXzXicxVhyf48ixmWrIKS/j9sCuaK5GikZtJsRX43Mn7+mrp3QXgWYJA5m
a5IHH4/CQizEvqMspB3heCCZJ7HhOhEKu0ODW4bDzkYRZdzfqxGynpHeBOUQskwt
4k/2Gjkc0L3aU5RVqrWVEE4nqr9JoDY4GFQnLsRL8qXqgUVd4188OuZYEXxAOWJP
7/4etNh10N50MJx5oxUDFDFs0mARqVfZNrgp8FzSr3gggZzZLdc=
=vonb
-----END PGP SIGNATURE-----
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.