From c9ca610afb74a973151083dedbd7e9cacb6e7214 Mon Sep 17 00:00:00 2001 From: Packit Date: Wed, 16 Nov 2022 08:56:32 +0000 Subject: [PATCH] [packit] 280 upstream release Upstream tag: 280 Upstream commit: ef13a34c Signed-off-by: Packit --- .gitignore | 1 + README.packit | 2 +- cockpit.spec | 10 +++++++++- sources | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 8910e36..e2fa8e9 100644 --- a/.gitignore +++ b/.gitignore @@ -246,3 +246,4 @@ /cockpit-277.tar.xz /cockpit-278.tar.xz /cockpit-279.tar.xz +/cockpit-280.tar.xz diff --git a/README.packit b/README.packit index abd0db1..470914f 100644 --- a/README.packit +++ b/README.packit @@ -1,3 +1,3 @@ This repository is maintained by packit. https://packit.dev/ -The file was generated using packit 0.62.0. +The file was generated using packit 0.63.2.dev5+ge7f3b9c. diff --git a/cockpit.spec b/cockpit.spec index 6629848..98fdcf0 100644 --- a/cockpit.spec +++ b/cockpit.spec @@ -49,7 +49,7 @@ Summary: Web Console for Linux servers License: LGPLv2+ URL: https://cockpit-project.org/ -Version: 279 +Version: 280 Release: 1%{?dist} Source0: https://github.com/cockpit-project/cockpit/releases/download/%{version}/cockpit-%{version}.tar.xz @@ -429,6 +429,7 @@ authentication via sssd/FreeIPA. # created in %post, so that users can rm the files %ghost %{_sysconfdir}/issue.d/cockpit.issue %ghost %{_sysconfdir}/motd.d/cockpit +%ghost %attr(0644, root, root) %{_sysconfdir}/cockpit/disallowed-users %dir %{_datadir}/cockpit/motd %{_datadir}/cockpit/motd/update-motd %{_datadir}/cockpit/motd/inactive.motd @@ -477,10 +478,13 @@ if [ -x %{_sbindir}/selinuxenabled ]; then fi # set up dynamic motd/issue symlinks on first-time install; don't bring them back on upgrades if admin removed them +# disable root login on first-time install; so existing installations aren't changed if [ "$1" = 1 ]; then mkdir -p /etc/motd.d /etc/issue.d ln -s ../../run/cockpit/motd /etc/motd.d/cockpit ln -s ../../run/cockpit/motd /etc/issue.d/cockpit.issue + printf "# List of users which are not allowed to login to Cockpit\nroot\n" > /etc/cockpit/disallowed-users + chmod 644 /etc/cockpit/disallowed-users fi %tmpfiles_create cockpit-tempfiles.conf @@ -660,6 +664,10 @@ via PackageKit. # The changelog is automatically generated and merged %changelog +* Wed Nov 16 2022 Packit - 280-1 +- tools: Disallow root login by default + + * Mon Nov 07 2022 Packit - 279-1 - Dark theme support diff --git a/sources b/sources index 9c5bc10..787ef82 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cockpit-279.tar.xz) = 76788142d836ec6fadebe122da4b5fc6a5c41c99b5b66c84573488e7581edb313a947d6c6b20d6f858075c6c716f3c5f7b6874e2405844231c6c5ac60043d270 +SHA512 (cockpit-280.tar.xz) = 1f766c047bbc693465716919d93e6bdf4139cb99119b51df9132633b3f41e460ef2e29d9349fdb2caa96a27d90f0717901fffb1228564cd37068ed8365793384