-
Notifications
You must be signed in to change notification settings - Fork 705
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce applicability for sssd config files
Some SSSD related rules are only applicable when there is already SSSD configuration files present in the system. Signed-off-by: Marcus Burghardt <[email protected]>
- Loading branch information
1 parent
d4ba4d3
commit 2cacdb6
Showing
2 changed files
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<def-group> | ||
<definition class="inventory" id="sssd_conf_files_present" version="1"> | ||
<metadata> | ||
<title>SSSD configuration files are present</title> | ||
<affected family="unix"> | ||
<platform>multi_platform_all</platform> | ||
</affected> | ||
<description>/etc/sssd/sssd.conf is present or there are custom files within /etc/sssd/conf.d</description> | ||
<reference ref_id="cpe:/a:sssd_conf_files_present" source="CPE" /> | ||
</metadata> | ||
<criteria> | ||
<criterion test_ref="test_sssd_conf_files_present" | ||
comment="There are SSSD configuration files present in the system"/> | ||
</criteria> | ||
</definition> | ||
|
||
<unix:file_test id="test_sssd_conf_files_present" version="1" | ||
check="all" check_existence="at_least_one_exists" | ||
comment="Verify existence of SSSD configuration files."> | ||
<unix:object object_ref="object_conf_files_present"/> | ||
</unix:file_test> | ||
|
||
<unix:file_object id="object_conf_files_present" version="1" | ||
comment="Matches /etc/sssd/sssd.conf or any .conf file within /etc/sssd/conf.d directory"> | ||
<unix:filepath operation="pattern match">^/etc/sssd/(sssd|conf\.d/.*)\.conf$</unix:filepath> | ||
</unix:file_object> | ||
</def-group> |
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,3 @@ | ||
name: cpe:/a:sssd_conf_files_present | ||
title: SSSD configuration files are present | ||
check_id: sssd_conf_files_present |