Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rules for installing pam-runtime and pam-modules to Ubuntu 24.04 #12904

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions components/pam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ name: pam
packages:
- pam
- pam_apparmor
- libpam-runtime
- libpam-modules
rules:
- account_disable_inactivity_password_auth
- account_disable_inactivity_system_auth
Expand Down Expand Up @@ -197,7 +199,9 @@ rules:
- no_tmux_in_shells
- package_opensc_installed
- package_pam_apparmor_installed
- package_pam_modules_installed
- package_pam_pwquality_installed
- package_pam_runtime_installed
- package_pcsc-lite_installed
- package_screen_installed
- package_tmux_installed
Expand Down
13 changes: 9 additions & 4 deletions controls/cis_ubuntu2404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1832,16 +1832,21 @@ controls:
levels:
- l1_server
- l1_workstation
status: planned
notes: TODO. Rule does not seem to be implemented, nor does it map to any rules in ubuntu2204 profile.
rules:
- package_pam_runtime_installed
status: automated
notes: |
The CIS control checks that version >= 1.5.3-5 and not that
it is the latest version as the title suggests.

- id: 5.3.1.2
title: Ensure libpam-modules is installed (Automated)
levels:
- l1_server
- l1_workstation
status: planned
notes: TODO. Rule does not seem to be implemented, nor does it map to any rules in ubuntu2204 profile.
rules:
- package_pam_modules_installed
status: automated

- id: 5.3.1.3
title: Ensure libpam-pwquality is installed (Automated)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
documentation_complete: true

title: 'Install pam-modules Package'

description: |-
{{{ describe_package_install(package="libpam-modules") }}}

rationale: |-
libpam-modules contains PAM modules that are needed
by other rules when configuring PAM options.

severity: medium

platform: package[pam]

template:
name: package_installed
vars:
pkgname: libpam-modules
evr: 0:1.5.3-5
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# platform = Not Applicable

# Override template test.
# The package shouldn't be removed as it would
# break the test environment.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# platform = Not Applicable

# Override template test.
# The package shouldn't be removed as it would
# break the test environment.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
documentation_complete: true

title: 'Install pam-runtime Package'

description: |-
{{{ describe_package_install(package="libpam-runtime") }}}

rationale: |-
libpam-runtime contains configuration that is needed
by other rules when configuring PAM options.

severity: medium

template:
name: package_installed
vars:
pkgname: libpam-runtime
evr: 0:1.5.3-5
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# platform = Not Applicable

# Override template test.
# The package shouldn't be removed as it would
# break the test environment.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# platform = Not Applicable

# Override template test.
# The package shouldn't be removed as it would
# break the test environment.
Loading