[PD-dev] seteuid vs. setuid

Frank Barknecht fbar at footils.org
Mon Jan 12 11:04:47 CET 2009


Hallo,
Tim Blechmann hat gesagt: // Tim Blechmann wrote:

> > 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?

Agreed. IMO it's unnecessary: None of my Pd Linux installs has Pd
installed setuid, still the "-rt" switch works fine for every user in
group "audio" and I never run Pd as root.

Ciao
-- 
 Frank Barknecht            Do You RjDj.me?          _ ______footils.org__




More information about the Pd-dev mailing list