inspec/test/cookbooks/os_prepare/recipes
Jerry Aldrich III 3d7244fb07 Add wildcard support to Utils::FindFiles (#2159)
Wildcards are evaluated prior to applying `sudo` permissions. This
means that running `sudo find /some/path/*.conf` will fail if the user
does not have read permissions on `/some/path/` because the wildcard
cannot expand before `sudo` is applied and `*.conf` isn't a file.

The solution for this is to run the command in a subshell that has the
proper permissions (e.g. `sudo sh -c 'find /some/path/*.conf'`).

This modifies `Utils::FindFiles` to use a subshell thus allowing
wildcard support.

This fixes #2157

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2017-09-23 09:17:34 +02:00
..
_runit_service_centos.rb move kitchen integration tests to top-level 2016-03-18 11:30:54 +01:00
_upstart_service_centos.rb Provide service params as a mash, empty unless systemd for now 2016-05-09 14:54:09 +02:00
apache.rb Add integration tests for symlinked apache configuration. 2017-03-14 14:48:19 +11:00
apt.rb improved regex for matching deb sources 2016-11-09 11:10:46 -06:00
auditctl.rb move kitchen integration tests to top-level 2016-03-18 11:30:54 +01:00
default.rb Add support for XML files (#2107) 2017-08-31 09:56:14 +02:00
dh_params.rb Fix #1617 Add dh_params resource (#1618) 2017-04-04 10:34:09 -04:00
docker_host.rb Docker resource (#1566) 2017-04-24 10:47:03 -04:00
file.rb file/dir permissions for os_prepare file recipe 2016-10-26 15:57:30 +02:00
find_files.rb Add wildcard support to Utils::FindFiles (#2159) 2017-09-23 09:17:34 +02:00
iis.rb Adds support for iis_app InSpec testing (#1905) 2017-06-15 11:13:07 +02:00
iptables.rb move kitchen integration tests to top-level 2016-03-18 11:30:54 +01:00
json_yaml_csv_ini_xml.rb Add support for XML files (#2107) 2017-08-31 09:56:14 +02:00
mount.rb move kitchen integration tests to top-level 2016-03-18 11:30:54 +01:00
package.rb update kitchen container, activate all in travis 2016-08-05 10:52:03 +02:00
postgres.rb harmonize cookbooks for integration tests, update docs, remove i386 in vagrant 2016-08-05 10:52:03 +02:00
prep_container.rb update kitchen container, activate all in travis 2016-08-05 10:52:03 +02:00
registry_key.rb fix #1131 circumvent bug in powershell where string are not properly handled 2017-04-07 10:57:02 +02:00
service.rb do not run runit and upstart in docker since chef run fails 2016-08-05 10:52:03 +02:00
ssh.rb call ssh cookbook from prepare cookbook 2017-01-03 11:40:09 +01:00
x509.rb x509 integration tests 2017-03-22 11:44:33 +01:00