Parke <parke.nexus at gmail.com> wrote:> On Sat, Jan 5, 2019 at 9:54 PM Perry Hutchison via rsync > <rsync at lists.samba.org> wrote: > > ... I'm wondering if anyone here > > knows of an implementation of rsync client for Chrome OS in normal > > (not developer) mode, i.e. as an app or extension. > > Have you tried compiling rsync statically (on a non-Chrome OS system) > and seeing if it will run on Chrome OS? Linux is Linux, after all. > ... > (I also don't know if you can even run any third-party binary > executables on Chrome OS if you are not in developer mode.)I very much doubt that Chrome OS would make this possible, given its focus on security. (If it _were_ possible to exec a user-supplied file in normal mode, one could do all sorts of interesting things with executable shell scripts -- like setting DISPLAY to point to some other machine.) While it would certainly be possible to import a blob that happened to be a binary for some CPU type (into, say, the Downloads directory), without developer mode there is no chmod command and thus no way to mark that binary as executable. Also, I suspect that user-accessible filesystems are mounted no-exec. I suspect what I'm looking for is a reimplementation of rsync (or a useful subset, e.g. I doubt I need ACL support) in Java.
Hi, hey android allows execution of _legacy_ static binary programs, via unpacking of binary as asset, then chmod ing it properly and finally running it through a system call [from e.g. the Java userland of a vanilla android application package]. I doubt that Chrome OS doesn't include some equivalent facility! Cheers,> On 7 Jan 2019, at 10:00, Perry Hutchison via rsync <rsync at lists.samba.org> wrote: > > Parke <parke.nexus at gmail.com> wrote: >> On Sat, Jan 5, 2019 at 9:54 PM Perry Hutchison via rsync >> <rsync at lists.samba.org> wrote: >>> ... I'm wondering if anyone here >>> knows of an implementation of rsync client for Chrome OS in normal >>> (not developer) mode, i.e. as an app or extension. >> >> Have you tried compiling rsync statically (on a non-Chrome OS system) >> and seeing if it will run on Chrome OS? Linux is Linux, after all. >> ... >> (I also don't know if you can even run any third-party binary >> executables on Chrome OS if you are not in developer mode.) > > I very much doubt that Chrome OS would make this possible, given its > focus on security. (If it _were_ possible to exec a user-supplied > file in normal mode, one could do all sorts of interesting things > with executable shell scripts -- like setting DISPLAY to point to > some other machine.) > > While it would certainly be possible to import a blob that happened > to be a binary for some CPU type (into, say, the Downloads directory), > without developer mode there is no chmod command and thus no way to > mark that binary as executable. Also, I suspect that user-accessible > filesystems are mounted no-exec. > > I suspect what I'm looking for is a reimplementation of rsync (or a > useful subset, e.g. I doubt I need ACL support) in Java. > > -- > Please use reply-all for most replies to avoid omitting the mailing list. > To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Uxio Prego <uxio.prego at gmail.com> wrote:> Hi, hey android allows execution of _legacy_ static > binary programs, via unpacking of binary as asset, > then chmod ing it properly and finally running it > through a system call [from e.g. the Java userland > of a vanilla android application package]. > > I doubt that Chrome OS doesn't include some > equivalent facility!Chrome OS does allow for running Android assets, but: * They run in an Android container, and do not have access to Chrome OS configuration and user files. * This feature was added relatively recently, and enabling it requires specific support code to be written (and released) for each particular platform. It hasn't been done for the platform I'm using.