summaryrefslogtreecommitdiff
path: root/disable-ssh-login-checkbox.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-19 03:19:34 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-19 03:19:34 +0000
commite9f07e4582f7977395d5c26d41e3fc97ed9e077c (patch)
tree478a9376a299c9450151b72c29c5c790c1023564 /disable-ssh-login-checkbox.patch
parenta4252603249fd648f2870ce2dcbaf86ebcf1f118 (diff)
automatic import of anacondaopeneuler20.03
Diffstat (limited to 'disable-ssh-login-checkbox.patch')
-rw-r--r--disable-ssh-login-checkbox.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/disable-ssh-login-checkbox.patch b/disable-ssh-login-checkbox.patch
new file mode 100644
index 0000000..5cbf801
--- /dev/null
+++ b/disable-ssh-login-checkbox.patch
@@ -0,0 +1,37 @@
+From 4229601e2c53c2e002436a0132663f83a89e6e47 Mon Sep 17 00:00:00 2001
+From: t_feng <fengtao40@huawei.com>
+Date: Wed, 1 Jul 2020 18:08:35 +0800
+Subject: [PATCH] disable ssh login checkbox
+
+---
+ pyanaconda/ui/gui/spokes/root_password.py | 7 ++++----
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/pyanaconda/ui/gui/spokes/root_password.py b/pyanaconda/ui/gui/spokes/root_password.py
+index 1d19380..f2e389d 100644
+--- a/pyanaconda/ui/gui/spokes/root_password.py
++++ b/pyanaconda/ui/gui/spokes/root_password.py
+@@ -80,6 +80,8 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke, GUISpokeInputCheckHandler)
+ self._enable_root_radio = self.builder.get_object("enable_root_radio")
+ self._disable_root_radio = self.builder.get_object("disable_root_radio")
+ self._root_password_ssh_login_override = self.builder.get_object("root_password_ssh_login_override")
++ self._root_password_ssh_login_override.set_visible(False)
++ self._root_password_ssh_login_override.set_no_show_all(True)
+ self._revealer = self.builder.get_object("password_revealer")
+
+ # Install the password checks:
+@@ -159,9 +160,8 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke, GUISpokeInputCheckHandler)
+ control.set_active(True)
+ self.on_root_enabled_changed(control)
+
+- self._root_password_ssh_login_override.set_active(
+- self._users_module.RootPasswordSSHLoginAllowed
+- )
++ self._root_password_ssh_login_override.set_visible(False)
++ self._root_password_ssh_login_override.set_no_show_all(True)
+ if self.root_enabled:
+ # rerun checks so that we have a correct status message, if any
+ self.checker.run_checks()
+--
+2.23.0
+