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

Fixes debian #12084

Merged
merged 4 commits into from
Aug 2, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<ind:textfilecontent54_object comment="Ensure at least one NTP server is set"
id="object_chronyd_remote_server" version="1">
<ind:filepath operation="pattern match">^/etc/chrony\.(conf|d/.+\.conf)$</ind:filepath>
<ind:filepath operation="pattern match">^({{{ chrony_conf_path }}}|{{{ chrony_d_path }}}/.+\.conf)$</ind:filepath>
<ind:pattern operation="pattern match">^[\s]*(?:server|pool)[\s]+.+$</ind:pattern>
<ind:instance datatype="int">1</ind:instance>
</ind:textfilecontent54_object>
Expand Down
3 changes: 3 additions & 0 deletions products/debian12/product.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ init_system: "systemd"

oval_feed_url: "https://www.debian.org/security/oval/oval-definitions-bookworm.xml.bz2"

chrony_conf_path: "/etc/chrony/chrony.conf"
chrony_d_path: "/etc/chrony/chrony.d"

cpes_root: "../../shared/applicability"
cpes:
- debian12:
Expand Down
5 changes: 5 additions & 0 deletions products/debian12/profiles/anssi_bp28_enhanced.profile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ selections:
- '!accounts_polyinstantiated_tmp'
- '!accounts_polyinstantiated_var_tmp'
- '!enable_pam_namespace'
# there is no tmp.mount unit on Debian 12.
- '!systemd_tmp_mount_enabled'
# this rule cannot handle /etc/chrony/chrony.conf path properly.
# chronyd_specify_remote_server still report wether chrony is configured.
- '!chronyd_configure_pool_and_server'

# Following rules once had a prodtype incompatible with the debian12 product
- '!accounts_passwords_pam_tally2_deny_root'
Expand Down
5 changes: 5 additions & 0 deletions products/debian12/profiles/anssi_bp28_high.profile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ selections:
- '!accounts_polyinstantiated_tmp'
- '!accounts_polyinstantiated_var_tmp'
- '!enable_pam_namespace'
# there is no tmp.mount unit on Debian 12.
- '!systemd_tmp_mount_enabled'
# this rule cannot handle /etc/chrony/chrony.conf path properly.
# chronyd_specify_remote_server still report wether chrony is configured.
- '!chronyd_configure_pool_and_server'

# Following rules once had a prodtype incompatible with the debian12 product
- '!accounts_passwords_pam_tally2_deny_root'
Expand Down
2 changes: 2 additions & 0 deletions products/debian12/profiles/anssi_bp28_intermediary.profile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ selections:
- '!accounts_polyinstantiated_tmp'
- '!accounts_polyinstantiated_var_tmp'
- '!enable_pam_namespace'
# there is no tmp.mount unit on Debian 12.
- '!systemd_tmp_mount_enabled'

# Following rules once had a prodtype incompatible with the debian12 product
- '!accounts_passwords_pam_tally2_deny_root'
Expand Down
2 changes: 1 addition & 1 deletion shared/templates/sysctl/oval.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{% endif %}}
{{%- endmacro -%}}
{{%- macro sysctl_match() -%}}
<ind:pattern operation="pattern match">^[\s]*{{{ SYSCTLVAR }}}[\s]*=[\s]*(.*)[\s]*$</ind:pattern>
<ind:pattern operation="pattern match">^[\s]*{{{ SYSCTLVAR }}}[\s]*=[\s]*(.*\S)[\s]*$</ind:pattern>
<ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
{{%- endmacro -%}}
{{%- if "P" in FLAGS -%}}
Expand Down
4 changes: 2 additions & 2 deletions tests/data/product_stability/debian12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ auid: 1000
basic_properties_derived: true
benchmark_id: DEBIAN-12
benchmark_root: ../../linux_os/guide
chrony_conf_path: /etc/chrony.conf
chrony_d_path: /etc/chrony.d/
chrony_conf_path: /etc/chrony/chrony.conf
chrony_d_path: /etc/chrony/chrony.d
cpes:
- debian12:
check_id: installed_OS_is_debian12
Expand Down
Loading