GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Change messages for readability
Hongli Lai (Phusion) (author)
Tue Mar 11 06:57:44 -0700 2008
commit  c84425f34c5c6946471f03f2a9435596aa42fe08
tree    921b236d7682bcaedf77d9d60ecc7405af881b09
parent  41538e6216e1684e3ee9a0486c6d4c130573f3d0
...
11
12
13
14
 
15
16
17
...
27
28
29
30
 
31
32
33
34
35
36
37
 
38
39
40
41
42
43
44
 
45
46
47
48
49
50
51
 
52
53
54
...
11
12
13
 
14
15
16
17
...
27
28
29
 
30
31
32
33
34
35
36
 
37
38
39
40
41
42
43
 
44
45
46
47
48
49
50
 
51
52
53
54
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
   end
0
   
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
     spawn_app do |app|
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
     end
0
   end
0
   
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
     spawn_app do |app|
0
       user_of_process(app.pid).should == CONFIG['lowest_user']
0
     end
0
   end
0
   
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
     spawn_app do |app|
0
       user_of_process(app.pid).should == CONFIG['lowest_user']
0
     end
0
   end
0
   
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
     end
0
   end
0
   
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.