inspec/lib
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
..
bundles Show versions for inspec compliance profiles (#2143) 2017-09-13 17:52:45 -04:00
fetchers Don't send HTTP headers that have nil values (#1948) 2017-06-21 19:09:13 -05:00
inspec Bump version to 1.38.5 by Chef Expeditor 2017-09-23 07:16:31 +00:00
matchers New 'be_in' matcher for matching against values in a list (#2022) 2017-08-07 16:05:22 +02:00
resources Modify Upstart enabled check to use config file (#2163) 2017-09-21 12:21:34 -04:00
source_readers Source reader should not hand back files with nil contents (#2003) 2017-07-11 21:33:55 +02:00
utils Add wildcard support to Utils::FindFiles (#2159) 2017-09-23 09:17:34 +02:00
inspec.rb Remove any "All Rights Reserved" references (#1969) 2017-06-28 04:14:19 -07:00