mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* BUG: fork do not copy /proc/<PID>/cmdline permissions
@ 2004-04-22 17:53 Agri
  2004-04-22 20:36 ` Richard B. Johnson
  0 siblings, 1 reply; 4+ messages in thread
From: Agri @ 2004-04-22 17:53 UTC (permalink / raw)
  To: linux-kernel

I expected from fork to make a rather complete copy of a process,
but it does not copy /proc/<PID>/cmdline access permissions.
Therefore, the only way (at least i know) to hide all args of
processes is to start every program within shell script:
bash -c 'chmod /proc/$$/cmdline; exec userprogramm ...'

Tested on 2.6.5.

Agri


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-22 21:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-22 17:53 BUG: fork do not copy /proc/<PID>/cmdline permissions Agri
2004-04-22 20:36 ` Richard B. Johnson
2004-04-22 21:21   ` Agri
2004-04-22 21:31     ` Richard B. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®