6 Commits

Author SHA1 Message Date
Jonathan Boulle 6607d48103 *: add license header where missing 2015-05-26 18:44:41 -07:00
Jonathan Boulle 128f4459bd Merge pull request #934 from glevand/for-merge-1
pkg: arm64 support for pkg/sys
2015-05-26 16:02:20 -07:00
Geoff Levand 0a8d5270ef pkg/sys: Add arm64 support
Fixes build errors like these when building for arm64:

  rkt/pkg/sys/sys_linux.go: undefined: SYS_SYNCFS

Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-05-26 15:27:32 -07:00
Simone Gotti 2c66843cc1 aci: extract tar in chroot
this introduces tar extraction inside a chroot. This is done spawning a
new process. Instead of creating a new executable (difficult to find,
package etc...) it adds the concept of a multicall process (like busybox).

Now a new multicall command "extracttar" is added.
tar.ExtractTar executes this new command passing a pipe to send the
filesMap and the tar contents to stdin.

The incomplete "insecure link" checks are removed from the the tar
functions.  Additionally these functions are now not exported and the
extraction directory is always the root directory.
2015-05-26 23:40:36 +02:00
Simone Gotti 6e3989f59a sys: add linux syncfs syscall.
As syncfs is neither provided by golang syscall package nor by
golang.org/x/sys/unix adds a local syncfs syscall implementation. By now the
syscall numbers for linux amd64, 386 and arm architectures are provided.
2015-04-15 10:36:54 +02:00
Eugene Yakubovich 0b935f467f net: set FD_CLOEXEC on RktLock prior to fork/exec
When launching metadata service and net plugins,
set the close-on-exec flag so the child processes
don't end up holding the lock.
2015-03-19 17:14:31 -07:00