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 +4 -4
- data/lib/serverspec/commands/linux.rb +1 -1
- data/lib/serverspec/commands/redhat.rb +1 -1
- data/lib/serverspec/version.rb +1 -1
- data/spec/debian/file_spec.rb +3 -3
- data/spec/gentoo/file_spec.rb +3 -3
- data/spec/redhat/file_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e410ca837fb545befe15383be74a7a6f8e707cbf
|
4
|
+
data.tar.gz: b9c28e075450809adf5e61542c944286e3db3318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/serverspec/version.rb
CHANGED
data/spec/debian/file_spec.rb
CHANGED
@@ -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
|
data/spec/gentoo/file_spec.rb
CHANGED
@@ -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
|
data/spec/redhat/file_spec.rb
CHANGED
@@ -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
|