[MacPorts] #19131: ruby: build fails upgrading from 1.8.7-p72_2 -> 1.8.7-p72_3 when using MacPorts trunk (1.8.0)

MacPorts noreply at macports.org
Wed Apr 8 08:08:29 PDT 2009


#19131: ruby: build fails upgrading from 1.8.7-p72_2 -> 1.8.7-p72_3 when using
MacPorts trunk (1.8.0)
---------------------------------+------------------------------------------
 Reporter:  devans@…             |       Owner:  kimuraw@…           
     Type:  defect               |      Status:  assigned            
 Priority:  Normal               |   Milestone:  Port Bugs           
Component:  ports                |     Version:  1.8.0               
 Keywords:                       |        Port:  ruby                
---------------------------------+------------------------------------------

Comment(by kimuraw@…):

 That error means ruby(miniruby) do not allow "-I" option under egid !=
 gid.

 see ruby.c
 {{{
 static void
 forbid_setid(s)
     const char *s;
 {
     if (euid != uid)
         rb_raise(rb_eSecurityError, "no %s allowed while running setuid",
 s);
     if (egid != gid)
         rb_raise(rb_eSecurityError, "no %s allowed while running setgid",
 s);
     if (rb_safe_level() > 0)
         rb_raise(rb_eSecurityError, "no %s allowed in tainted mode", s);
 }
 }}}

 macports trunk has dropPrivileges and elevateToRoot mechanism.
 I think this tiket maybe for macports base componet, not ruby ports...

-- 
Ticket URL: <http://trac.macports.org/ticket/19131#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list