Skip to content
Draft
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
2 changes: 2 additions & 0 deletions base/comps/azurelinux-release/50-permit-root-login.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Explicitly disable root login over SSH.
PermitRootLogin no
9 changes: 8 additions & 1 deletion base/comps/azurelinux-release/azurelinux-release.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Summary: Azure Linux release files
Name: azurelinux-release
Version: 4.0
# TODO(azl): Review whether we can move back to autorelease (with conditional -p)
Release: 14%{?dist}
Release: 15%{?dist}
License: MIT
URL: https://aka.ms/azurelinux

Expand All @@ -57,6 +57,7 @@ Source20: chrony-azure.conf
Source21: 50-azure-cloud.conf
Source22: 70-azurelinux-hardening.conf
Source23: 50-client-alive-interval.conf
Source24: 50-permit-root-login.conf

BuildArch: noarch

Expand Down Expand Up @@ -320,6 +321,8 @@ ln -s ../usr/lib/issue.net %{buildroot}%{_sysconfdir}/issue.net
# Create /etc/issue.d
mkdir -p %{buildroot}%{_sysconfdir}/issue.d

install -Dm0600 %{SOURCE24} -t %{buildroot}%{_sysconfdir}/ssh/sshd_config.d/

mkdir -p %{buildroot}%{_swidtagdir}

# Create os-release files for the different variants
Expand Down Expand Up @@ -436,6 +439,7 @@ install -Dm0644 %{SOURCE22} -t %{buildroot}%{_sysctldir}/
%{_sysconfdir}/swid/swidtags.d
%{_prefix}/share/dnf5/libdnf.conf.d/20-azurelinux-defaults.conf
%{_sysctldir}/70-azurelinux-hardening.conf
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/sshd_config.d/50-permit-root-login.conf


%if %{with basic}
Expand Down Expand Up @@ -476,6 +480,9 @@ install -Dm0644 %{SOURCE22} -t %{buildroot}%{_sysctldir}/


%changelog
* Fri May 08 2026 Lynsey Rydberg <lyrydber@microsoft.com> - 4.0-15
- Add 50-permit-root-login.conf to explicitly set PermitRootLogin no

* Wed May 06 2026 Reuben Olinsky <reubeno@microsoft.com> - 4.0-14
- Add Recommends weak dependency to prefer azurelinux-repos package.

Expand Down
2 changes: 1 addition & 1 deletion locks/azurelinux-release.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Managed by azldev component update. Do not edit manually.
version = 1
input-fingerprint = 'sha256:c4e61d2a8c184bd4c9d7fa2303a2f1a12bbbf25677f4c2fe750f094108a3b9f8'
input-fingerprint = 'sha256:16c920282df008b45a4a111a3fe853f4a787197ac8586b62d716820cb6aab7b3'
2 changes: 2 additions & 0 deletions specs/a/azurelinux-release/50-permit-root-login.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Explicitly disable root login over SSH.
PermitRootLogin no
9 changes: 8 additions & 1 deletion specs/a/azurelinux-release/azurelinux-release.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Summary: Azure Linux release files
Name: azurelinux-release
Version: 4.0
# TODO(azl): Review whether we can move back to autorelease (with conditional -p)
Release: 14%{?dist}
Release: 15%{?dist}
License: MIT
URL: https://aka.ms/azurelinux

Expand All @@ -60,6 +60,7 @@ Source20: chrony-azure.conf
Source21: 50-azure-cloud.conf
Source22: 70-azurelinux-hardening.conf
Source23: 50-client-alive-interval.conf
Source24: 50-permit-root-login.conf

BuildArch: noarch

Expand Down Expand Up @@ -323,6 +324,8 @@ ln -s ../usr/lib/issue.net %{buildroot}%{_sysconfdir}/issue.net
# Create /etc/issue.d
mkdir -p %{buildroot}%{_sysconfdir}/issue.d

install -Dm0600 %{SOURCE24} -t %{buildroot}%{_sysconfdir}/ssh/sshd_config.d/

mkdir -p %{buildroot}%{_swidtagdir}

# Create os-release files for the different variants
Expand Down Expand Up @@ -439,6 +442,7 @@ install -Dm0644 %{SOURCE22} -t %{buildroot}%{_sysctldir}/
%{_sysconfdir}/swid/swidtags.d
%{_prefix}/share/dnf5/libdnf.conf.d/20-azurelinux-defaults.conf
%{_sysctldir}/70-azurelinux-hardening.conf
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/sshd_config.d/50-permit-root-login.conf


%if %{with basic}
Expand Down Expand Up @@ -479,6 +483,9 @@ install -Dm0644 %{SOURCE22} -t %{buildroot}%{_sysctldir}/


%changelog
* Fri May 08 2026 Lynsey Rydberg <lyrydber@microsoft.com> - 4.0-15
- Add 50-permit-root-login.conf to explicitly set PermitRootLogin no

* Wed May 06 2026 Reuben Olinsky <reubeno@microsoft.com> - 4.0-14
- Add Recommends weak dependency to prefer azurelinux-repos package.

Expand Down
Loading