C Any one know how to get the procdesc of the current process?

Yes. Technically, it's "just" a file descriptor (an integer identifier), so I guess there's a misunderstanding of its purpose. It just allows an alternative way to refer to your own child processes, for example attaching capsicum capabilities to it. There's no point in trying to get such an fd "for yourself", and it's not meant for any kind of authentication.
 
Back
Top