diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/google-compute-daemon/files/0001-feat-accounts-add-users-to-the-sudo-group-by-default.patch b/sdk_container/src/third_party/coreos-overlay/app-emulation/google-compute-daemon/files/0001-feat-accounts-add-users-to-the-sudo-group-by-default.patch new file mode 100644 index 0000000000..9e17219811 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/google-compute-daemon/files/0001-feat-accounts-add-users-to-the-sudo-group-by-default.patch @@ -0,0 +1,27 @@ +From 6126db1c7c690d666b2389c4a918a4c4955c8e91 Mon Sep 17 00:00:00 2001 +From: Brandon Philips +Date: Fri, 4 Apr 2014 12:12:00 -0700 +Subject: [PATCH] feat(accounts): add users to the sudo group by default + +On CoreOS the sudo group gets passwordless sudo. Add users to this +group. +--- + google-daemon/usr/share/google/google_daemon/accounts.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/google-daemon/usr/share/google/google_daemon/accounts.py b/google-daemon/usr/share/google/google_daemon/accounts.py +index 6f970c4..17cb2ce 100755 +--- a/google-daemon/usr/share/google/google_daemon/accounts.py ++++ b/google-daemon/usr/share/google/google_daemon/accounts.py +@@ -76,7 +76,7 @@ class Accounts(object): + self.urllib2 = urllib2_module + + self.default_user_groups = self.GroupsThatExist( +- ['adm', 'video', 'dip', 'plugdev']) ++ ['adm', 'video', 'dip', 'plugdev', 'sudo']) + + def CreateUser(self, username, ssh_keys): + """Create username on the system, with authorized ssh_keys.""" +-- +1.8.5.2 (Apple Git-48) + diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/google-compute-daemon/google-compute-daemon-1.1.1.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/google-compute-daemon/google-compute-daemon-1.1.1-r1.ebuild similarity index 91% rename from sdk_container/src/third_party/coreos-overlay/app-emulation/google-compute-daemon/google-compute-daemon-1.1.1.ebuild rename to sdk_container/src/third_party/coreos-overlay/app-emulation/google-compute-daemon/google-compute-daemon-1.1.1-r1.ebuild index ddc869b529..d1c7236874 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/google-compute-daemon/google-compute-daemon-1.1.1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/google-compute-daemon/google-compute-daemon-1.1.1-r1.ebuild @@ -23,6 +23,7 @@ src_prepare() { epatch "${FILESDIR}"/0001-Fixes-authorized_keys-file-permissions.patch epatch "${FILESDIR}"/0001-fix-google-daemon-use-for-the-passwd-not.patch epatch "${FILESDIR}"/0001-hack-address_manager-use-CoreOS-names-and-locations.patch + epatch "${FILESDIR}"/0001-feat-accounts-add-users-to-the-sudo-group-by-default.patch } src_install() {