Process.euid= #1931

merged 5 commits into from Nov 20, 2012


None yet
2 participants

hosiawak commented Oct 25, 2012

On Ubuntu 12.04 when I run the following as root (assuming user with id 1000 exists in the system):

Process.euid = 1000
Process.uid = 1000

I get:

Errno::EPERM: Operation not permitted
from Errno.handle at kernel/common/errno.rb:18
from Process::Sys.setuid at kernel/common/process.rb:492
from Process.uid= at kernel/common/process.rb:203
from { } in Object#irb_binding at (irb):2
from Rubinius::BlockEnvironment#call_on_instance at kernel/common/block_environment.rb:75

Works on MRI 1.8.7 on the same box.

@brixen brixen merged commit d70d3a2 into rubinius:master Nov 20, 2012

1 check failed

default The Travis build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment