0
@@ -11,7 +11,7 @@ shared_examples_for "a spawner that supports lowering of privileges" do
0
File.chown(@original_uid, nil, @environment_rb)
0
- it "should lower its privileges to the owner
environment.rb" do
0
+ it "should lower its privileges to the owner
of environment.rb" do
0
File.chown(uid_for('normal_user_1'), nil, @environment_rb)
0
user_of_process(app.pid).should == CONFIG['normal_user_1']
0
@@ -27,28 +27,28 @@ shared_examples_for "a spawner that supports lowering of privileges" do
0
- it "should lower its privileges to
_lowest_user_ if environment.rb is owned by root" do
0
+ it "should lower its privileges to
'lowest_user' if environment.rb is owned by root" do
0
File.chown(ApplicationSpawner::ROOT_UID, nil, @environment_rb)
0
user_of_process(app.pid).should == CONFIG['lowest_user']
0
- it "should lower its privileges to
_lowest_user_ if environment.rb is owned by a nonexistant user" do
0
+ it "should lower its privileges to
'lowest_user' if environment.rb is owned by a nonexistant user" do
0
File.chown(CONFIG['nonexistant_uid'], nil, @environment_rb)
0
user_of_process(app.pid).should == CONFIG['lowest_user']
0
- it "should not switch user if environment.rb is owned by a nonexistant user, and
_lowest_user_ doesn't exist either" do
0
+ it "should not switch user if environment.rb is owned by a nonexistant user, and
'lowest_user' doesn't exist either" do
0
File.chown(CONFIG['nonexistant_uid'], nil, @environment_rb)
0
spawn_app(:lowest_user => CONFIG['nonexistant_user']) do |app|
0
user_of_process(app.pid).should == user_of_process(Process.pid)
0
- it "should not switch user if
_lower_privilege_ is set to false" do
0
+ it "should not switch user if
'lower_privilege' is set to false" do
0
File.chown(uid_for('normal_user_2'), nil, @environment_rb)
0
spawn_app(:lower_privilege => false) do |app|
0
user_of_process(app.pid).should == user_of_process(Process.pid)
Comments
No one has commented yet.