-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ubuntu 24.04 2.1.1 Ensure autofs services are not in use
- Loading branch information
1 parent
f1d163c
commit 407e485
Showing
3 changed files
with
27 additions
and
4 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 |
---|---|---|
|
@@ -3,3 +3,4 @@ packages: | |
- autofs | ||
rules: | ||
- service_autofs_disabled | ||
- package_autofs_removed |
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
22 changes: 22 additions & 0 deletions
22
linux_os/guide/system/permissions/mounting/package_autofs_removed/rule.yml
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,22 @@ | ||
documentation_complete: true | ||
|
||
title: 'Remove autofs Package' | ||
|
||
description: |- | ||
autofs allows automatic mounting of devices, typically including CD/DVDs and USB | ||
drives. | ||
{{{ describe_package_remove(package="autofs") }}} | ||
rationale: |- | ||
With automounting enabled anyone with physical access could attach a USB drive or | ||
disc and have its contents available in the filesystem even if they lacked permissions to | ||
mount it themselves. | ||
severity: low | ||
|
||
ocil: '{{{ describe_package_remove(package="autofs") }}}' | ||
|
||
template: | ||
name: package_removed | ||
vars: | ||
pkgname: autofs |