Commit graph

29 commits

Author SHA1 Message Date
Simon Fels
cbb4beaac2 Restructure container manager startup script
Mount /cache and /data properly and stop bridge correctly.
2016-12-08 17:08:18 +01:00
Simon Fels
87da2f3744 Bind mount cache/data on startup from writable space 2016-12-08 07:12:09 +01:00
Simon Fels
6860338c4b Use disk images instead of a rootfs tarball 2016-12-05 10:06:48 +01:00
Simon Fels
637523b8cf Drop scripts we don't need anymore 2016-12-04 17:20:21 +01:00
Simon Fels
457bd794ff Don't load kernel modules anymore 2016-12-04 17:17:33 +01:00
Simon Fels
a86a5847f8 Start bridge as part of the container manager 2016-12-04 17:16:55 +01:00
Simon Fels
a8704556da Unload AppArmor profile for container management process
If we run the management process with the AppArmor profile loaded
from snap-confine various ashmem/binder operations are failing with
permission denied errors. To workaround this until this problem
is fixed we simply unload the AppArmor profile and continue to
execute completely without any profile loaded.
2016-12-04 17:07:44 +01:00
Simon Fels
32a5eaca69 Fix permissions of extracted rootfs content 2016-12-03 14:14:33 +01:00
Simon Fels
b10382d2d8 Reformat all code and use the Google cpp code style 2016-12-02 17:38:43 +01:00
Simon Fels
089e2daf22 Add simple script to build and load relevant kernel modules 2016-11-28 07:34:26 +01:00
Simon Fels
ba82e516f6 Add copyright header for bridge script 2016-11-27 16:02:53 +01:00
Simon Fels
06b529e0a0 Implement simple network bridge 2016-11-26 13:38:38 +01:00
Simon Fels
5619662b0b Add simple sync script for Android builds 2016-11-11 09:57:44 +01:00
Simon Fels
89fa39bd01 Specify android root path for container 2016-10-21 19:55:22 +02:00
Simon Fels
4a0927c718 Load kernel modules for binder and ashmem on startup 2016-09-17 10:48:24 +02:00
Simon Fels
cd52c87639 Create rootfs version indicator 2016-09-17 10:48:24 +02:00
Simon Fels
18fd3734c0 Correct wrapper script name 2016-09-17 10:48:24 +02:00
Simon Fels
3ba9028844 Extra rootfs as part of the container manager startup 2016-09-17 10:48:24 +02:00
Simon Fels
6f6fc5c49c Fix name of the android rootfs tarball 2016-09-17 10:48:24 +02:00
Simon Fels
117111ce20 Extend snap packaging with further details 2016-09-17 10:48:07 +02:00
Simon Fels
4e7d48ea4f Simplify rootfs creation script by using existing env variable 2016-08-14 15:53:01 +02:00
Simon Fels
2b25f6f5bb Rework container management
* based on liblxc now
* container is managed by a management process which needs to run as
  root. LXC will take care of strict confinement of this container.
  We still don't allow any direct hardware access.
* `anbox shell` command is gone. Same functionality can be archive
  with the lxc-attach command.
2016-08-14 15:50:16 +02:00
Simon Fels
f6eb889b9e scripts: fine tune create rootfs package script 2016-07-13 12:14:44 +02:00
Simon Fels
709807984f Make sure Android package is constructed from top build dir 2016-07-11 18:33:42 +02:00
Simon Fels
92bb3ca79f scripts: use correct way to check for Androids sh implementation 2016-07-05 14:44:31 +02:00
Simon Fels
3f64452158 scripts: tweak rootfs package creation a bit 2016-06-30 00:10:12 +02:00
Simon Fels
b422ed54da scripts: copy filesystem config into rootfs from buiild output 2016-06-23 17:29:20 +02:00
Simon Fels
4be05c7bd8 Add missing scripts for rootfs creation 2016-06-23 12:28:29 +02:00
Simon Fels
3222551702 Initial work 2016-06-14 11:34:17 +02:00