Fixed buffer size for /proc/<pid>/cmdline and not able to see the full command line argument string for a process.

Rodrick Brown rbrown at BallistaSec.com
Mon Mar 3 15:28:46 UTC 2008


Its seems the max buffer size for /proc/<pid>/cmdline is 4096 bytes is
there any other way to pull the full command line argument out of the
kernel for a particular process? Obviously the kernel is able to read
the full command line string without any problems but its only writing
the first 4096 bytes to /proc/pid/cmdline  

 

$ cat /proc/29378/cmdline | wc -c

4096

 

---

Rodrick R. Brown 

Ballista Securities LLC 

120 Wall St. Suite 2400 

C: 347 702 0012 | O: 646 307 4709

http://www.ballistasec.com 

 




More information about the redhat-list mailing list