summaryrefslogtreecommitdiff
path: root/google_oslogin_control.patch
diff options
context:
space:
mode:
authorLorenzo Castelli <lcastelli@google.com>2018-10-23 13:07:04 -0700
committerLorenzo Castelli <lcastelli@google.com>2018-11-03 21:20:33 -0700
commitda90c98115734dccbfea824dcbfc973898e2f466 (patch)
tree4c6c4f43a98ab68a89a54aada6f81d3e0b1292b0 /google_oslogin_control.patch
downloadgoogle-compute-engine-da90c98115734dccbfea824dcbfc973898e2f466.tar.xz
Adds a Pacman package definition for google-compute-engine.
This includes daemons and oslogin split packages, and tracks the latest released version.
Diffstat (limited to 'google_oslogin_control.patch')
-rw-r--r--google_oslogin_control.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/google_oslogin_control.patch b/google_oslogin_control.patch
new file mode 100644
index 0000000..5eb0cf0
--- /dev/null
+++ b/google_oslogin_control.patch
@@ -0,0 +1,17 @@
+diff --git a/google_compute_engine_oslogin/bin/google_oslogin_control b/google_compute_engine_oslogin/bin/google_oslogin_control
+index 5a1ee99..47f953e 100755
+--- a/google_compute_engine_oslogin/bin/google_oslogin_control
++++ b/google_compute_engine_oslogin/bin/google_oslogin_control
+@@ -15,7 +15,11 @@
+
+ script_name=$(basename "$0")
+ nss_config="/etc/nsswitch.conf"
+-pam_config="/etc/pam.d/sshd"
++if grep -q -s "ID=arch" /etc/os-release; then
++ pam_config="/etc/pam.d/system-login"
++else
++ pam_config="/etc/pam.d/sshd"
++fi
+ sshd_config="/etc/ssh/sshd_config"
+ el_release_file="/etc/redhat-release"
+ sudoers_dir="/var/google-sudoers.d"