Skip to content

Commit

Permalink
Merge pull request #4611 from adelton/service_usbguard_enabled
Browse files Browse the repository at this point in the history
Enable the usbguard service in OSPP profiles.
  • Loading branch information
jan-cerny committed Jul 15, 2019
2 parents 2eecbaf + 33286d9 commit 97ab483
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 3 deletions.
1 change: 1 addition & 0 deletions fedora/templates/csv/services_enabled.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ ntpd,ntp,
pcscd,pcsc-lite,
postfix,,
sssd,,
usbguard,,
7 changes: 7 additions & 0 deletions linux_os/guide/services/usbguard/group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
documentation_complete: true

title: 'USBGuard daemon'

description: |-
The USBGuard daemon enforces the USB device authorization policy for all USB devices.
25 changes: 25 additions & 0 deletions linux_os/guide/services/usbguard/service_usbguard_enabled/rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
documentation_complete: true

prodtype: rhel8,fedora,ol8

title: 'Enable the USBGuard Service'

description: |-
The USBGuard service should be enabled.
{{{ describe_service_enable(service="usbguard") }}}
rationale: |-
The <tt>usbguard</tt> service must be running in order to
enforce the USB device authorization policy for all USB devices.
severity: medium

identifiers:
cce@rhel8: 82853-3

references:
ospp: FMT_SMF_EXT.1

ocil_clause: 'the service is not enabled'

ocil: '{{{ ocil_service_enabled(service="usbguard") }}}'
1 change: 1 addition & 0 deletions ol8/templates/csv/services_enabled.csv
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ firewalld,firewalld,
ntpd,ntp,
pcscd,pcsc-lite,
rsyslog,rsyslog,
usbguard,usbguard,
4 changes: 2 additions & 2 deletions rhel8/profiles/ospp.profile
Original file line number Diff line number Diff line change
Expand Up @@ -1094,8 +1094,8 @@ selections:
## TO DO: HOW TO HANDLE??
#setup_usbguard

## TO DO: https://github.com/ComplianceAsCode/content/issues/4474
#systemctl enable usbguard
## Enable the USBGuard Service
- service_usbguard_enabled

#################################################################
## Enable / Configure FIPS
Expand Down
1 change: 1 addition & 0 deletions rhel8/templates/csv/services_enabled.csv
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ ntpd,ntp,
pcscd,pcsc-lite,
postfix,,
sssd,,
usbguard,,
1 change: 0 additions & 1 deletion shared/references/cce-redhat-avail.txt
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,6 @@ CCE-82849-1
CCE-82850-9
CCE-82851-7
CCE-82852-5
CCE-82853-3
CCE-82854-1
CCE-82855-8
CCE-82856-6
Expand Down

0 comments on commit 97ab483

Please sign in to comment.