serverspec 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f577a8b2bb4528167a44a24f77acaeefddcd033
4
- data.tar.gz: b0e3f74bbaf8e8fad8179edb80c52b9081bca831
3
+ metadata.gz: e410ca837fb545befe15383be74a7a6f8e707cbf
4
+ data.tar.gz: b9c28e075450809adf5e61542c944286e3db3318
5
5
  SHA512:
6
- metadata.gz: 92234c676e5d4160ce1bc76f0e27784f8efb26ed2fabaab9769cafcbb4c31debe56ef73f33392b13c03f127611f86a240736a525d423a1a7d6021eea2416fc13
7
- data.tar.gz: f0d15cc2a79aa5308aa69c0ff2a1cbac040ef64b4edac9e4f728eb7ddcebc3bdff96238b1212c0524498fa4cd35c3314dd1c864cf5bd1732fac660f65768c222
6
+ metadata.gz: 530b208fbdbbe3cbeb207db70a191380059ba31883b3a4c26f6fb0929e21ab0f001cda65be45410856fe4cd3dec92a1d7ed2f6811d1f376194987b40ca7af548
7
+ data.tar.gz: 0499cc37663ba115ca7cef1d988d69e14bfe1ccf45d913ee0ae771a25f527150039f0b6a9f241808c60be85843d66e58f1859806f64ab434d172ffb19485b551
@@ -4,7 +4,7 @@ module Serverspec
4
4
  module Commands
5
5
  class Linux < Base
6
6
  def check_access_by_user(file, user, access)
7
- "su -c \"test -#{access} #{file}\" #{user}"
7
+ "su -s /bin/sh -c \"test -#{access} #{file}\" #{user}"
8
8
  end
9
9
 
10
10
  def check_iptables_rule(rule, table=nil, chain=nil)
@@ -3,7 +3,7 @@ module Serverspec
3
3
  class RedHat < Linux
4
4
  def check_access_by_user(file, user, access)
5
5
  # Redhat-specific
6
- "runuser -c \"test -#{access} #{file}\" #{user}"
6
+ "runuser -s /bin/sh -c \"test -#{access} #{file}\" #{user}"
7
7
  end
8
8
 
9
9
  def check_enabled(service, level=3)
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.7.5"
2
+ VERSION = "0.7.6"
3
3
  end
@@ -144,7 +144,7 @@ end
144
144
 
145
145
  describe file('/tmp') do
146
146
  it { should be_readable.by_user('mail') }
147
- its(:command) { should eq "su -c \"test -r /tmp\" mail" }
147
+ its(:command) { should eq "su -s /bin/sh -c \"test -r /tmp\" mail" }
148
148
  end
149
149
 
150
150
  describe file('/tmp') do
@@ -194,7 +194,7 @@ end
194
194
 
195
195
  describe file('/tmp') do
196
196
  it { should be_writable.by_user('mail') }
197
- its(:command) { should eq "su -c \"test -w /tmp\" mail" }
197
+ its(:command) { should eq "su -s /bin/sh -c \"test -w /tmp\" mail" }
198
198
  end
199
199
 
200
200
  describe file('/tmp') do
@@ -244,7 +244,7 @@ end
244
244
 
245
245
  describe file('/tmp') do
246
246
  it { should be_executable.by_user('mail') }
247
- its(:command) { should eq "su -c \"test -x /tmp\" mail" }
247
+ its(:command) { should eq "su -s /bin/sh -c \"test -x /tmp\" mail" }
248
248
  end
249
249
 
250
250
  describe file('/tmp') do
@@ -144,7 +144,7 @@ end
144
144
 
145
145
  describe file('/tmp') do
146
146
  it { should be_readable.by_user('mail') }
147
- its(:command) { should eq "su -c \"test -r /tmp\" mail" }
147
+ its(:command) { should eq "su -s /bin/sh -c \"test -r /tmp\" mail" }
148
148
  end
149
149
 
150
150
  describe file('/tmp') do
@@ -194,7 +194,7 @@ end
194
194
 
195
195
  describe file('/tmp') do
196
196
  it { should be_writable.by_user('mail') }
197
- its(:command) { should eq "su -c \"test -w /tmp\" mail" }
197
+ its(:command) { should eq "su -s /bin/sh -c \"test -w /tmp\" mail" }
198
198
  end
199
199
 
200
200
  describe file('/tmp') do
@@ -244,7 +244,7 @@ end
244
244
 
245
245
  describe file('/tmp') do
246
246
  it { should be_executable.by_user('mail') }
247
- its(:command) { should eq "su -c \"test -x /tmp\" mail" }
247
+ its(:command) { should eq "su -s /bin/sh -c \"test -x /tmp\" mail" }
248
248
  end
249
249
 
250
250
  describe file('/tmp') do
@@ -144,7 +144,7 @@ end
144
144
 
145
145
  describe file('/tmp') do
146
146
  it { should be_readable.by_user('mail') }
147
- its(:command) { should eq "runuser -c \"test -r /tmp\" mail" }
147
+ its(:command) { should eq "runuser -s /bin/sh -c \"test -r /tmp\" mail" }
148
148
  end
149
149
 
150
150
  describe file('/tmp') do
@@ -194,7 +194,7 @@ end
194
194
 
195
195
  describe file('/tmp') do
196
196
  it { should be_writable.by_user('mail') }
197
- its(:command) { should eq "runuser -c \"test -w /tmp\" mail" }
197
+ its(:command) { should eq "runuser -s /bin/sh -c \"test -w /tmp\" mail" }
198
198
  end
199
199
 
200
200
  describe file('/tmp') do
@@ -244,7 +244,7 @@ end
244
244
 
245
245
  describe file('/tmp') do
246
246
  it { should be_executable.by_user('mail') }
247
- its(:command) { should eq "runuser -c \"test -x /tmp\" mail" }
247
+ its(:command) { should eq "runuser -s /bin/sh -c \"test -x /tmp\" mail" }
248
248
  end
249
249
 
250
250
  describe file('/tmp') do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita