-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from redhatrises/add_NFS_insecure_oval
Add NFS insecure OVAL check
- Loading branch information
Showing
11 changed files
with
471 additions
and
26 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 @@ | ||
../../../shared/oval/no_insecure_locks_exports.xml |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
../../../../shared/oval/no_insecure_locks_exports.xml |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
../../../../shared/oval/package_nfs-utils_removed.xml |
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 @@ | ||
../../../../shared/oval/no_insecure_locks_exports.xml |
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 @@ | ||
../../../../shared/oval/package_nfs-utils_removed.xml |
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,30 @@ | ||
<def-group> | ||
<definition class="compliance" id="no_insecure_locks_exports" version="1"> | ||
<metadata> | ||
<title>Ensure insecure_locks is disabled</title> | ||
<affected family="unix"> | ||
<platform>Red Hat Enterprise Linux 6</platform> | ||
<platform>Red Hat Enterprise Linux 7</platform> | ||
<platform>Fedora 20</platform> | ||
</affected> | ||
<description>Allowing insecure file locking could allow for sensitive | ||
data to be viewed or edited by an unauthorized user.</description> | ||
<reference source="galford" ref_id="20140813" ref_url="test_attestation" /> | ||
</metadata> | ||
<criteria> | ||
<criterion comment="Check for insecure NFS locks in /etc/exports" | ||
test_ref="test_no_insecure_locks_exports" /> | ||
</criteria> | ||
</definition> | ||
<ind:textfilecontent54_test check="all" check_existence="none_exist" | ||
comment="Tests the value of the insecure locks in /etc/exports" | ||
id="test_no_insecure_locks_exports" version="1"> | ||
<ind:object object_ref="obj_no_insecure_locks_exports" /> | ||
</ind:textfilecontent54_test> | ||
<ind:textfilecontent54_object id="obj_no_insecure_locks_exports" | ||
version="2"> | ||
<ind:filepath>/etc/exports</ind:filepath> | ||
<ind:pattern operation="pattern match">^(.*?(\binsecure_locks\b)[^$]*)$</ind:pattern> | ||
<ind:instance datatype="int">1</ind:instance> | ||
</ind:textfilecontent54_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,28 @@ | ||
<def-group> | ||
<!-- THIS FILE IS GENERATED by create_package_removed.py. DO NOT EDIT. --> | ||
<definition class="compliance" id="package_nfs-utils_removed" | ||
version="1"> | ||
<metadata> | ||
<title>Package nfs-utils Removed</title> | ||
<affected family="unix"> | ||
<platform>Red Hat Enterprise Linux 6</platform> | ||
<platform>Red Hat Enterprise Linux 7</platform> | ||
<platform>Fedora 20</platform> | ||
</affected> | ||
<description>The RPM package nfs-utils should be removed.</description> | ||
<reference source="swells" ref_id="20130829" ref_url="test_attestation"/> | ||
</metadata> | ||
<criteria> | ||
<criterion comment="package nfs-utils is removed" | ||
test_ref="test_package_nfs-utils_removed" /> | ||
</criteria> | ||
</definition> | ||
<linux:rpminfo_test check="all" check_existence="none_exist" | ||
id="test_package_nfs-utils_removed" version="1" | ||
comment="package nfs-utils is removed"> | ||
<linux:object object_ref="obj_package_nfs-utils_removed" /> | ||
</linux:rpminfo_test> | ||
<linux:rpminfo_object id="obj_package_nfs-utils_removed" version="1"> | ||
<linux:name>nfs-utils</linux:name> | ||
</linux:rpminfo_object> | ||
</def-group> |