Comment on Path Isn't Real on LinuxComments−megous1yAccessing 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...
Comments
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...