Skip to content
Open
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 @@ -42,5 +42,6 @@ template:
name: package_removed
vars:
pkgname: avahi
pkgname@debian13: avahi-daemon
pkgname@ubuntu2204: avahi-daemon
pkgname@ubuntu2404: avahi-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ template:
vars:
servicename: avahi-daemon
packagename: avahi
packagename@debian13: avahi-daemon
packagename@ubuntu2204: avahi-daemon
packagename@ubuntu2404: avahi-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ template:
pkgname@rhel9:
- bind
- bind9.18
pkgname@debian13: bind9
pkgname@ubuntu2204: bind9
pkgname@ubuntu2404: bind9
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ template:
vars:
servicename: named
packagename: bind
packagename@debian13: bind9
packagename@ubuntu2404: bind9
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
documentation_complete: true

{{% if 'ubuntu' in product %}}
{{% if 'ubuntu' in product or 'debian' in product %}}
{{%- set package = "apache2" %}}
{{% else %}}
{{%- set package = "httpd" %}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
documentation_complete: true

{{% if 'ubuntu' in product %}}
{{% if 'ubuntu' in product or 'debian' in product %}}
{{% set service_name = "apache2" %}}
{{% else %}}
{{% set service_name = "httpd" %}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{% if 'ubuntu' not in product %}}
{{% if 'ubuntu' not in product and 'debian' not in product %}}
{{%- set package = "dovecot" %}}
{{% else %}}
{{%- set package = "dovecot-core" %}}
Expand Down Expand Up @@ -35,5 +35,6 @@ template:
name: package_removed
vars:
pkgname: dovecot
pkgname@debian13: dovecot-core
pkgname@ubuntu2204: dovecot-core
pkgname@ubuntu2404: dovecot-core
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ template:
name: service_disabled
vars:
servicename: dovecot
packagename@debian13: dovecot-core
packagename@ubuntu2404: dovecot-core
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{% if product in ["sle12", "sle15", "slmicro5"] %}}
{{%- set package = "openldap2-client" %}}
{{% elif "ubuntu" in product %}}
{{% elif "ubuntu" in product or "debian" in product %}}
{{%- set package = "ldap-utils" %}}
{{% else %}}
{{%- set package = "openldap-clients" %}}
Expand Down Expand Up @@ -46,3 +46,4 @@ template:
pkgname@slmicro5: openldap2-client
pkgname@ubuntu2204: ldap-utils
pkgname@ubuntu2404: ldap-utils
pkgname@debian13: ldap-utils
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{% if product in ["sle12", "sle15", "slmicro5"] %}}
{{%- set package = "openldap2" %}}
{{% elif "ubuntu" in product %}}
{{% elif "debian" in product or "ubuntu" in product %}}
{{%- set package = "slapd" %}}
{{% else %}}
{{%- set package = "openldap-servers" %}}
Expand Down Expand Up @@ -47,6 +47,7 @@ template:
name: package_removed
vars:
pkgname: openldap-servers
pkgname@debian13: slapd
pkgname@sle12: openldap2
pkgname@sle15: openldap2
pkgname@slmicro5: openldap2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ template:
vars:
servicename: slapd
packagename: openldap-servers
packagename@debian13: slapd
packagename@ubuntu2404: slapd
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ template:
vars:
servicename: nfs-server
packagename: nfs-utils
packagename@debian13: nfs-kernel-server
packagename@ubuntu2404: nfs-kernel-server
packagename@sle15: nfs-kernel-server
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ documentation_complete: true
title: 'Uninstall rsh Package'

description: |-
{{% if 'ubuntu' not in product %}}
{{% if 'ubuntu' not in product and 'debian' not in product %}}
The <tt>rsh</tt> package contains the client commands
{{% else %}}
The <tt>rsh-client</tt> package contains the client commands
Expand All @@ -16,7 +16,7 @@ rationale: |-
been replaced with the more secure SSH package. Even if the server is removed,
it is best to ensure the clients are also removed to prevent users from
inadvertently attempting to use these commands and therefore exposing
{{% if 'ubuntu' not in product %}}
{{% if 'ubuntu' not in product and 'debian' not in product %}}
their credentials. Note that removing the <tt>rsh</tt> package removes
{{% else %}}
their credentials. Note that removing the <tt>rsh-client</tt> package removes
Expand All @@ -40,7 +40,7 @@ references:
hipaa: 164.308(a)(4)(i),164.308(b)(1),164.308(b)(3),164.310(b),164.312(e)(1),164.312(e)(2)(ii)
iso27001-2013: A.8.2.3,A.13.1.1,A.13.2.1,A.13.2.3,A.14.1.2,A.14.1.3

{{% if 'ubuntu' not in product %}}
{{% if 'ubuntu' not in product and 'debian' not in product %}}
ocil: '{{{ describe_package_remove(package="rsh") }}}'
{{% else %}}
ocil: '{{{ describe_package_remove(package="rsh-client") }}}'
Expand All @@ -50,6 +50,7 @@ template:
name: package_removed
vars:
pkgname: rsh
pkgname@debian13: rsh-client
pkgname@ubuntu2204: rsh-client
pkgname@ubuntu2404: rsh-client

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ template:
vars:
servicename: rsyncd
packagename: rsync-daemon
packagename@debian13: rsync
servicename@debian13: rsync
packagename@ol7: rsync
packagename@sle12: rsync
packagename@sle15: rsync
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{% if 'ubuntu' in product %}}
{{% if 'ubuntu' in product or 'debian' in product %}}
{{%- set package = "tftpd-hpa" %}}
{{% elif 'sle' in product %}}
{{%- set package = "tftp" %}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
documentation_complete: true

{{% if 'ubuntu' in product %}}
{{% if 'ubuntu' in product or 'debian' in product %}}
{{%- set service_name = "tftpd-hpa" %}}
{{%- set package = "tftpd-hpa" %}}
{{% elif 'sle' in product or product == "slmicro5" %}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ template:
name: service_disabled
vars:
servicename: smb
servicename@debian13: smbd
servicename@ubuntu2204: smbd
servicename@ubuntu2404: smbd
packagename: samba
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ template:
vars:
pkgname: net-snmp
pkgname@debian11: snmp
pkgname@debian13: snmpd
pkgname@ubuntu2204: snmp
pkgname@ubuntu2404: snmpd
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ template:
servicename: snmpd
packagename@debian11: snmpd
packagename@debian12: snmpd
packagename@debian13: snmpd
packagename@ubuntu2404: snmpd
packagename: net-snmp
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,6 @@ template:
name: package_removed
vars:
pkgname: xorg-x11-server-common
pkgname@debian13: xserver-common
pkgname@ubuntu2204: xserver-common
pkgname@ubuntu2404: xserver-common
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ documentation_complete: true
title: 'Remove the GDM Package Group'

description: |-
{{% if 'ubuntu' not in product %}}
{{% if 'ubuntu' not in product and 'debian' not in product %}}
By removing the <tt>gdm</tt> package, the system no longer has GNOME installed.
{{% else %}}
By removing the <tt>gdm3</tt> package, the system no longer has GNOME installed.
{{% endif %}}
If X Windows is not installed then the system cannot boot into graphical user mode.
This prevents the system from being accidentally or maliciously booted into a <tt>graphical.target</tt>
mode. To do so, run the following command:
{{% if 'ubuntu' not in product %}}
{{% if 'ubuntu' not in product and 'debian' not in product %}}
<pre>$ sudo yum remove gdm</pre>
{{% else %}}
<pre>$ sudo apt remove gdm3</pre>
Expand All @@ -38,7 +38,7 @@ references:
nist: CM-7(a),CM-7(b),CM-6(a)
srg: SRG-OS-000480-GPOS-00227

{{% if 'ubuntu' not in product %}}
{{% if 'ubuntu' not in product and 'debian' not in product %}}
ocil_clause: 'gdm has not been removed'

ocil: |-
Expand Down Expand Up @@ -66,5 +66,6 @@ template:
name: package_removed
vars:
pkgname: gdm
pkgname@debian13: gdm3
pkgname@ubuntu2204: gdm3
pkgname@ubuntu2404: gdm3
2 changes: 1 addition & 1 deletion shared/templates/service_disabled_guard_var/bash.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle,multi_platform_ubuntu
# platform = multi_platform_rhel,multi_platform_fedora,multi_platform_ol,multi_platform_rhv,multi_platform_sle,multi_platform_ubuntu,multi_platform_debian
# reboot = false
# strategy = disable
# complexity = low
Expand Down