Skip to content

Commit 69a6a41

Browse files
committed
Add rule for package python3-dnf removed
1 parent cc73074 commit 69a6a41

4 files changed

Lines changed: 36 additions & 1 deletion

File tree

components/dnf.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: dnf
22
packages:
33
- dnf
44
- dnf-automatic
5+
- python3-dnf
56
- dnf-plugin-subscription-manager
67
- libdnf-plugin-subscription-manager
78
rules:
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
documentation_complete: true
2+
3+
4+
title: 'Uninstall python3-dnf Package'
5+
6+
description: |-
7+
The <tt>python3-dnf</tt> package provides Python bindings for installing, updating,
8+
and removing software on Linux systems.
9+
{{{ describe_package_remove(package="python3-dnf") }}}
10+
11+
rationale: |-
12+
Retaining the <tt>python3-dnf</tt> package can introduce risks by allowing direct
13+
package installation, which may compromise system integrity and increase the attack
14+
surface.
15+
16+
severity: medium
17+
18+
identifiers:
19+
cce@rhcos4: CCE-86468-6
20+
21+
references:
22+
nist: CM-7(a),CM-7(b),CM-6(a)
23+
24+
{{{ complete_ocil_entry_package(package="python3-dnf") }}}
25+
26+
fixtext: '{{{ fixtext_package_removed(package="python3-dnf") }}}'
27+
28+
srg_requirement: |-
29+
The python3-dnf package must not be installed unless mission essential on {{{ full_name }}}.
30+
31+
template:
32+
name: package_removed
33+
vars:
34+
pkgname: python3-dnf

products/rhcos4/profiles/default.profile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,4 @@ selections:
291291
- audit_rules_mac_modification_etc_selinux
292292
- audit_rules_login_events_faillog
293293
- package_at_removed
294+
- package_python3-dnf_removed

shared/references/cce-redhat-avail.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
CCE-86468-6
21
CCE-86482-7
32
CCE-86483-5
43
CCE-86484-3

0 commit comments

Comments
 (0)