-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use fileglob to lookup selinux module file (#155)
use `fileglob` to lookup selinux module file. This should use the same lookup path that `copy` `src` uses so that we can get the same semantics. The wrinkle is that the filename must have file glob characters escaped so that we do not do an actual `glob` lookup. Some of the selinux module files used in testing are moved to the `tests/files/selinux_modules/` directory so that we can test the file lookups, and some of the tests use an absolute path so we can verify that works too. One file was left in place to ensure that that scenario continues to work. A test was added to ensure that if a file name is passed that uses fileglob characters, it will be escaped and not matched.
- Loading branch information
Showing
5 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters