4 ms·
Accessing environment variables from the kernel space isn't even all that easy, because the information lives in userspace in process VM. Here's how it's done f
by megous 1y ago
Accessing environment variables from the kernel space isn't even all that easy, because the information lives in userspace in process VM. Here's how it's done for the purpose of showing it in `/proc/[pid/environ`:
https://elixir.bootlin.com/linux/v6.14.4/source/fs/proc/base.c#L1000 https://elixir.bootlin.com/linux/v6.14.4/source/fs/proc/base...