-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update sebool template for bootable containers
- Loading branch information
1 parent
21a4c72
commit 07efcbe
Showing
4 changed files
with
23 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
# check-import = stdout | ||
{{% if not SEBOOL_BOOL %}} | ||
# check-export = var_{{{ SEBOOLID }}}=var_{{{ SEBOOLID }}} | ||
{{% endif %}} | ||
|
||
{{% if SEBOOL_BOOL -%}} | ||
expected_value="{{{ SEBOOL_BOOL }}}" | ||
{{%- else -%}} | ||
expected_value="$XCCDF_VALUE_var_{{{ SEBOOLID }}}" | ||
{{%- endif %}} | ||
|
||
seinfo -xb {{{ SEBOOLID }}} "$expected_value" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ supported_languages: | |
- ansible | ||
- bash | ||
- oval | ||
- sce-bash |