{"action":"created","issue":{"url":"https://api.github.com/repos/dnschneid/crouton/issues/2706","repository_url":"https://api.github.com/repos/dnschneid/crouton","labels_url":"https://api.github.com/repos/dnschneid/crouton/issues/2706/labels{/name}","comments_url":"https://api.github.com/repos/dnschneid/crouton/issues/2706/comments","events_url":"https://api.github.com/repos/dnschneid/crouton/issues/2706/events","html_url":"https://github.com/dnschneid/crouton/issues/2706","id":168751199,"number":2706,"title":"Google Play crashes on Crouton chroot mount","user":{"login":"sshivaji","id":1430554,"avatar_url":"https://avatars.githubusercontent.com/u/1430554?v=3","gravatar_id":"","url":"https://api.github.com/users/sshivaji","html_url":"https://github.com/sshivaji","followers_url":"https://api.github.com/users/sshivaji/followers","following_url":"https://api.github.com/users/sshivaji/following{/other_user}","gists_url":"https://api.github.com/users/sshivaji/gists{/gist_id}","starred_url":"https://api.github.com/users/sshivaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshivaji/subscriptions","organizations_url":"https://api.github.com/users/sshivaji/orgs","repos_url":"https://api.github.com/users/sshivaji/repos","events_url":"https://api.github.com/users/sshivaji/events{/privacy}","received_events_url":"https://api.github.com/users/sshivaji/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-01T21:52:26Z","updated_at":"2016-08-19T00:28:17Z","closed_at":null,"body":"```\r\nPlease paste the output of the following command here: sudo edit-chroot -all\r\n```\r\nsudo edit-chroot -all\r\nname: trusty\r\nencrypted: no\r\nEntering /media/removable/Crouton/chroots/trusty...\r\ncrouton: version 1-20160620130246~master:c39102d9\r\nrelease: trusty\r\narchitecture: amd64\r\nxmethod: xorg\r\ntargets: x11,xorg,xfce,touch,unity,extension,core,audio,xiwi\r\nhost: version 8530.35.0 (Official Build) dev-channel samus \r\nkernel: Linux localhost 3.14.0 #1 SMP PREEMPT Thu Jul 28 17:43:58 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux\r\nfreon: yes\r\nUnmounting /media/removable/Crouton/chroots/trusty...\r\n\r\n#### Please describe your issue:\r\nLatest developer channel chromebook pixel 2 has google play support. However, when I mount a chroot (even do \"sudo enter-chroot\" in a terminal), google play and many android services stop.\r\n\r\n#### If known, describe the steps to reproduce the issue:\r\n\r\n1. Update chromebook to google play support (possible with certain chromebooks like Chromebook Pixel 2).\r\n2. Execute \"sudo enter-chroot\"\r\n3. Google play services will all stop and there will be several error messages popping up.\r\n"},"comment":{"url":"https://api.github.com/repos/dnschneid/crouton/issues/comments/240896438","html_url":"https://github.com/dnschneid/crouton/issues/2706#issuecomment-240896438","issue_url":"https://api.github.com/repos/dnschneid/crouton/issues/2706","id":240896438,"user":{"login":"sshivaji","id":1430554,"avatar_url":"https://avatars.githubusercontent.com/u/1430554?v=3","gravatar_id":"","url":"https://api.github.com/users/sshivaji","html_url":"https://github.com/sshivaji","followers_url":"https://api.github.com/users/sshivaji/followers","following_url":"https://api.github.com/users/sshivaji/following{/other_user}","gists_url":"https://api.github.com/users/sshivaji/gists{/gist_id}","starred_url":"https://api.github.com/users/sshivaji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshivaji/subscriptions","organizations_url":"https://api.github.com/users/sshivaji/orgs","repos_url":"https://api.github.com/users/sshivaji/repos","events_url":"https://api.github.com/users/sshivaji/events{/privacy}","received_events_url":"https://api.github.com/users/sshivaji/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T00:28:17Z","updated_at":"2016-08-19T00:28:17Z","body":"I can confirm that this works like a charm for me! I guess once the pull\nrequest is merged and closed, we can close this issue.\n\nThe only disadvantage would be not having selinux. Out of curiosity why do\nandroid apps crash if /sys/fs/selinux is mounted?\n\n\n\nOn Thu, Aug 18, 2016 at 4:14 PM, Armando Di Cianno <notifications@github.com\n> wrote:\n\n> So, I think i have a viable fix. It is dependent on information I don't\n> have which is the answer to the question: \"Do we depend on SELinux in the\n> chroot?\"\n>\n> If we don't, then the fix is this:\n>\n> $ diff -u enter-chroot.orig enter-chroot\n> --- enter-chroot.orig   2016-08-18 19:08:17.410285787 -0400\n> +++ enter-chroot        2016-08-18 19:08:17.410285787 -0400\n> @@ -777,10 +777,7 @@\n>      mount --make-rshared /sys\n>      mount --rbind /sys \"$CHROOT/sys\"\n>      mount --make-rslave \"$CHROOT/sys\"\n> -    # Remount selinux as ro\n> -    if [ -d \"$CHROOT/sys/fs/selinux\" ]; then\n> -        mount -o remount,ro \"$CHROOT/sys/fs/selinux\"\n> -    fi\n> +    umount $CHROOT/sys/fs/selinux\n>  fi\n>\n>  # Modify chroot's /sys/class/drm to avoid vgem\n>\n> With the above change, I can start my chroot, and all Android apps\n> continue on happily.\n>\n> I'll make a fork,branch,pull-request shortly. If in the interim, feedback\n> could be given on the sense of this, I'd appreciate it. I use SELinux\n> wittingly all of never.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/dnschneid/crouton/issues/2706#issuecomment-240884693>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ABXUGkU6_ypIEVulLWXl1esEUblDearMks5qhOc4gaJpZM4JaCOe>\n> .\n>\n"}}
{"actor":{"display_login":"sshivaji"}}