[PD-dev] seteuid vs. setuid

Tim Blechmann tim at klingt.org
Sun Jan 11 13:44:03 CET 2009


> I was just merging 0.41 vanilla into pd-extended 0.40 and noticed
> something worthwhile to point out.  It seems there isn't a patch
> submitted for this, but it is quite simple.  Basically, in s_inter.c,
> 'seteuid()' is used to lose setuid privileges.  As far as I understand
> it, seteuid() allows the program to keep the root privilege and switch
> back and forth between root and non-root.

hm, why does pd need root privileges, anyway? shouldn't the resource 
limiting be handled by pam these days?

tim

-- 
tim at klingt.org
http://tim.klingt.org

Life is really simple, but we insist on making it complicated.
  Confucius





More information about the Pd-dev mailing list