Robert Swiecki [Fri, 7 Jul 2017 13:05:22 +0000 (15:05 +0200)]
cmdline: remove unnecessary bracket
Robert Swiecki [Fri, 7 Jul 2017 10:14:25 +0000 (12:14 +0200)]
net: un-const'ify array
Robert Swiecki [Fri, 7 Jul 2017 10:13:24 +0000 (12:13 +0200)]
net: const'ify array
Robert Swiecki [Fri, 7 Jul 2017 10:10:22 +0000 (12:10 +0200)]
net: improve debugging
Robert Swiecki [Fri, 7 Jul 2017 10:08:26 +0000 (12:08 +0200)]
examples/apache: sort the entries again
Robert Swiecki [Fri, 7 Jul 2017 00:52:05 +0000 (02:52 +0200)]
examples/apache: sort includes
Robert Swiecki [Fri, 7 Jul 2017 00:37:33 +0000 (02:37 +0200)]
examples/apache: manual formatting of seccomp-bpf policy
Robert Swiecki [Fri, 7 Jul 2017 00:36:23 +0000 (02:36 +0200)]
examples/apache: manual formatting of seccomp-bpf policy
Robert Swiecki [Fri, 7 Jul 2017 00:34:57 +0000 (02:34 +0200)]
examples/apache: formatting with clang-format
Robert Swiecki [Thu, 6 Jul 2017 17:39:12 +0000 (19:39 +0200)]
mount: Use MS_BIND when remounting R/O
Robert Swiecki [Thu, 6 Jul 2017 12:55:27 +0000 (14:55 +0200)]
caps: dropping caps from the bounding set
Robert Swiecki [Thu, 6 Jul 2017 12:37:10 +0000 (14:37 +0200)]
util: mroe debugging
Robert Swiecki [Thu, 6 Jul 2017 09:37:41 +0000 (11:37 +0200)]
caps: shorter debug messages
Robert Swiecki [Thu, 6 Jul 2017 09:25:46 +0000 (11:25 +0200)]
make indent
Robert Swiecki [Thu, 6 Jul 2017 00:21:08 +0000 (02:21 +0200)]
caps: simplify cap getting/setting
Robert Swiecki [Wed, 5 Jul 2017 23:12:13 +0000 (01:12 +0200)]
config: bind caps
Robert Swiecki [Wed, 5 Jul 2017 15:34:56 +0000 (17:34 +0200)]
caps: more debugging
Robert Swiecki [Wed, 5 Jul 2017 15:29:57 +0000 (17:29 +0200)]
caps: just local caps
Robert Swiecki [Wed, 5 Jul 2017 13:57:07 +0000 (15:57 +0200)]
caps: simplify capability operations
Robert Swiecki [Wed, 5 Jul 2017 12:19:51 +0000 (14:19 +0200)]
caps: CAP_AUDIT_READ is not defined with Ubuntu 14
Robert Swiecki [Wed, 5 Jul 2017 11:03:22 +0000 (13:03 +0200)]
Merge branch 'master' of ssh://github.com/google/nsjail
Robert Swiecki [Wed, 5 Jul 2017 11:03:14 +0000 (13:03 +0200)]
caps: move capability-setting code to caps.*
robertswiecki [Mon, 3 Jul 2017 20:53:56 +0000 (22:53 +0200)]
Merge pull request #30 from andy0130tw/fix/config-fake-euid
Add back ERRNO(1337) for example config
Andy Pan [Mon, 3 Jul 2017 20:26:37 +0000 (04:26 +0800)]
Add back ERRNO(1337) for example config
Robert Swiecki [Sun, 2 Jul 2017 01:39:56 +0000 (03:39 +0200)]
mount: allow for non-mandatory symlinks
mount: allow for non-mandatory symlinks
Robert Swiecki [Sat, 1 Jul 2017 22:20:35 +0000 (00:20 +0200)]
config.proto: reflow field numbering to make it sequential
Robert Swiecki [Sat, 1 Jul 2017 20:23:11 +0000 (22:23 +0200)]
make indent
Robert Swiecki [Wed, 28 Jun 2017 22:38:20 +0000 (00:38 +0200)]
cmdlink: use different name while printing symlinks/mount points
Robert Swiecki [Wed, 28 Jun 2017 22:32:20 +0000 (00:32 +0200)]
Allow to create symlinks
Robert Swiecki [Mon, 26 Jun 2017 18:39:51 +0000 (20:39 +0200)]
config: missing bind for is_root_rw
Robert Swiecki [Thu, 22 Jun 2017 14:12:56 +0000 (16:12 +0200)]
config: rename the chrome profile
Robert Swiecki [Thu, 22 Jun 2017 01:06:53 +0000 (03:06 +0200)]
Get number of CPUs early, as it's read from /proc
Robert Swiecki [Thu, 22 Jun 2017 00:56:10 +0000 (02:56 +0200)]
cpu: correct year
Robert Swiecki [Thu, 22 Jun 2017 00:28:02 +0000 (02:28 +0200)]
remove configs/config1.example
Robert Swiecki [Wed, 21 Jun 2017 23:37:18 +0000 (01:37 +0200)]
configs: demo policy for chrome
Robert Swiecki [Wed, 21 Jun 2017 23:21:09 +0000 (01:21 +0200)]
mount: use /dev/shm first as a tmp dir
Robert Swiecki [Wed, 21 Jun 2017 22:42:04 +0000 (00:42 +0200)]
cpu: logging
Robert Swiecki [Wed, 21 Jun 2017 22:39:34 +0000 (00:39 +0200)]
mount: use TMPDIR to create a temporary dir
Robert Swiecki [Wed, 21 Jun 2017 22:38:49 +0000 (00:38 +0200)]
mount: use TMPDIR to create a temporary dir
Robert Swiecki [Wed, 21 Jun 2017 17:34:02 +0000 (19:34 +0200)]
mount: use rnd in dir name when using rnd
Robert Swiecki [Wed, 21 Jun 2017 17:21:18 +0000 (19:21 +0200)]
util: missing includes
Robert Swiecki [Wed, 21 Jun 2017 17:18:02 +0000 (19:18 +0200)]
mount: more extensive search for suitable root dir
Robert Swiecki [Wed, 21 Jun 2017 16:46:19 +0000 (18:46 +0200)]
util: implement utilTimeToStr
Robert Swiecki [Wed, 21 Jun 2017 16:29:02 +0000 (18:29 +0200)]
mount: Use /tmp/nsjail.[tmp|root].<orig_euid>
Robert Swiecki [Wed, 21 Jun 2017 15:57:21 +0000 (17:57 +0200)]
cpu: better check for num cpus
Robert Swiecki [Wed, 21 Jun 2017 15:55:20 +0000 (17:55 +0200)]
cpu: debug msg
Robert Swiecki [Wed, 21 Jun 2017 15:52:16 +0000 (17:52 +0200)]
config: max_cpu_num -> max_cpus
Robert Swiecki [Wed, 21 Jun 2017 01:40:18 +0000 (03:40 +0200)]
configs/bash: remove /dev/shm from bash cfg
Robert Swiecki [Tue, 20 Jun 2017 21:11:35 +0000 (23:11 +0200)]
cmdline: cast pid_t to unsigned long when using *rintf
Robert Swiecki [Tue, 20 Jun 2017 01:14:09 +0000 (03:14 +0200)]
configs: add /dev/shm
Robert Swiecki [Mon, 19 Jun 2017 22:16:38 +0000 (00:16 +0200)]
util: Implement utilSigName()
Robert Swiecki [Mon, 19 Jun 2017 21:59:29 +0000 (23:59 +0200)]
net: better log_d
Robert Swiecki [Mon, 19 Jun 2017 21:57:31 +0000 (23:57 +0200)]
net: additional log_d for IPv4 -> IPv6 conversion
Robert Swiecki [Mon, 19 Jun 2017 21:52:56 +0000 (23:52 +0200)]
config: bind port to config
Robert Swiecki [Mon, 19 Jun 2017 20:35:57 +0000 (22:35 +0200)]
Allow to use IPv4 addr with --bindhost
Robert Swiecki [Fri, 16 Jun 2017 10:03:31 +0000 (12:03 +0200)]
index.md
Robert Swiecki [Mon, 19 Jun 2017 17:11:53 +0000 (19:11 +0200)]
cpu: warning about no of cpus
Robert Swiecki [Mon, 19 Jun 2017 16:53:29 +0000 (18:53 +0200)]
Print remote IP when removing task from pool
Robert Swiecki [Mon, 19 Jun 2017 15:07:50 +0000 (17:07 +0200)]
cpu: free cpu mask
Robert Swiecki [Mon, 19 Jun 2017 15:05:01 +0000 (17:05 +0200)]
config: implement max_cpu_num in PB
Robert Swiecki [Mon, 19 Jun 2017 15:01:50 +0000 (17:01 +0200)]
cmdline: implement affinity setting, to limit jailed process to n max cpus
robertswiecki [Fri, 16 Jun 2017 10:00:11 +0000 (12:00 +0200)]
Update README.md
robertswiecki [Fri, 16 Jun 2017 09:55:15 +0000 (11:55 +0200)]
Update README.md
Robert Swiecki [Wed, 14 Jun 2017 00:21:53 +0000 (02:21 +0200)]
-Me: set PR_SET_DUMPABLE,0 for the init
Robert Swiecki [Wed, 14 Jun 2017 00:19:03 +0000 (02:19 +0200)]
Me mode: make init reap zombie processes
Robert Swiecki [Wed, 14 Jun 2017 00:15:19 +0000 (02:15 +0200)]
Merge branch 'master' of ssh://github.com/google/nsjail
Robert Swiecki [Wed, 14 Jun 2017 00:15:11 +0000 (02:15 +0200)]
Me mode: make init reap zombie processes
robertswiecki [Tue, 13 Jun 2017 15:06:47 +0000 (17:06 +0200)]
Merge pull request #25 from cstrouse/dockerfile-enhancements
Refactor using current official Dockerfile best practices
Casey Strouse [Tue, 13 Jun 2017 02:50:55 +0000 (19:50 -0700)]
Refactor using current official Dockerfile best practices
Implement best practices for Dockerfiles as per the official
documentation:
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
Reduces image size from 451.6MB to 404.9MB.
Robert Swiecki [Mon, 12 Jun 2017 20:20:21 +0000 (22:20 +0200)]
iface -> iface_vs
Robert Swiecki [Mon, 12 Jun 2017 00:16:27 +0000 (02:16 +0200)]
configs/bash: set argv[0]
Robert Swiecki [Mon, 12 Jun 2017 00:14:18 +0000 (02:14 +0200)]
config: give ability to override argv[0]
Robert Swiecki [Mon, 12 Jun 2017 00:08:16 +0000 (02:08 +0200)]
config.proto: clang-format
Robert Swiecki [Sun, 11 Jun 2017 22:27:27 +0000 (00:27 +0200)]
Slight fixes to log_fd
robertswiecki [Sun, 11 Jun 2017 22:22:13 +0000 (00:22 +0200)]
Merge pull request #24 from rfw/master
Add an extra log_fd argument to specify an FD to log to.
Tony Young [Sun, 11 Jun 2017 22:06:13 +0000 (22:06 +0000)]
Add an extra log_fd argument to specify an FD to log to.
In some situations, setting --log to /proc/self/fd/# is not sufficient to log out to a different FD. For instance, if a master process passes its stderr to the child nsjail process as fd 3, the nsjail child may not always be able to log to /proc/self/fd/3, e.g. if the master process is running under systemd, whose /proc/self/fd/2 is actually a socket and not a pipe. However, having nsjail write to fd 3 directly is fine and there's no other good way to handle this situation.
Robert Swiecki [Sat, 10 Jun 2017 23:34:20 +0000 (01:34 +0200)]
make indent
Robert Swiecki [Fri, 9 Jun 2017 12:40:44 +0000 (14:40 +0200)]
contain: use open('abc', O_DIRECTORY|O_CLOEXEC) instead of opendir()
Robert Swiecki [Fri, 9 Jun 2017 12:34:01 +0000 (14:34 +0200)]
subproc: comments
robertswiecki [Fri, 9 Jun 2017 11:55:22 +0000 (13:55 +0200)]
Merge pull request #22 from rfw/master
Add an --exec_file argument to allow argv[0] to differ from the binary being exec'd.
Tony Young [Thu, 8 Jun 2017 23:57:04 +0000 (23:57 +0000)]
Add an --exec_file argument to allow argv[0] to differ from the binary being exec'd.
robertswiecki [Fri, 2 Jun 2017 12:31:05 +0000 (14:31 +0200)]
Merge pull request #21 from yoshisatoyanagisawa/fix_dockerfile
Fix Dockerfile to make it built with current Makefile.
Yoshisato Yanagisawa [Fri, 2 Jun 2017 09:07:32 +0000 (18:07 +0900)]
add --privileged to docker command.
To run this program, you need --privileged for mounting
/tmp/nsjail.root.
Yoshisato Yanagisawa [Fri, 2 Jun 2017 05:54:55 +0000 (14:54 +0900)]
Fix Dockerfile to make it built with current Makefile.
Robert Swiecki [Mon, 29 May 2017 17:24:14 +0000 (19:24 +0200)]
configs/home-documents-with-xorg-no-net: add /dev/null
Robert Swiecki [Mon, 29 May 2017 17:03:37 +0000 (19:03 +0200)]
configs:configs/home-documents-with-xorg-no-net Xorg socket as R/W
Robert Swiecki [Mon, 29 May 2017 16:08:23 +0000 (18:08 +0200)]
Readme
Robert Swiecki [Mon, 29 May 2017 16:02:58 +0000 (18:02 +0200)]
Merge branch 'master' of github.com:google/nsjail
Robert Swiecki [Mon, 29 May 2017 16:02:47 +0000 (18:02 +0200)]
Readm
Robert Swiecki [Mon, 29 May 2017 15:00:19 +0000 (17:00 +0200)]
Makefile: clean removes pb-c generated files
Robert Swiecki [Mon, 29 May 2017 14:57:04 +0000 (16:57 +0200)]
configs/bash-with-fake-geteuid: block ptrace, fix description
Robert Swiecki [Mon, 29 May 2017 14:52:24 +0000 (16:52 +0200)]
mount: introduce mountDescribeMountPt
Robert Swiecki [Mon, 29 May 2017 14:39:08 +0000 (16:39 +0200)]
mount: mount src_content files from other tmpfs, to avoid shadowing / of the root tmpfs with some other FS
Robert Swiecki [Mon, 29 May 2017 14:22:31 +0000 (16:22 +0200)]
Makefile: make compiling with libprotobuf-c more robust under different systems
Robert Swiecki [Mon, 29 May 2017 13:29:21 +0000 (15:29 +0200)]
Better compilation rules for protobuf-c-text
Robert Swiecki [Mon, 29 May 2017 13:01:34 +0000 (15:01 +0200)]
configs: typo
Robert Swiecki [Mon, 29 May 2017 02:50:29 +0000 (04:50 +0200)]
mount: remove tmp file after use
Robert Swiecki [Mon, 29 May 2017 01:29:14 +0000 (03:29 +0200)]
Simplify mountMount
Robert Swiecki [Mon, 29 May 2017 01:11:32 +0000 (03:11 +0200)]
Get rid of pivot_root_only - achieve the same in different way
Robert Swiecki [Sun, 28 May 2017 22:29:52 +0000 (00:29 +0200)]
Makefile: simplify kafel and protobuf-c-text building rules