Robert Swiecki
85b0908dd8
cmdline: missing 'soft'/'hard' variants for RLIMIT_STACK in usage()
2017-10-08 13:00:37 +02:00
Robert Swiecki
82b0d2926e
Merge branch 'master' of ssh://github.com/google/nsjail
2017-10-08 12:57:51 +02:00
Robert Swiecki
d20ffb98f6
cmdline: missing comparison in cmdlineParseRLimit()
2017-10-08 12:57:43 +02:00
robertswiecki
cacf36e8da
Merge pull request #50 from jvvv/master
...
manpage: tweak for recent options changes
2017-10-08 12:56:22 +02:00
robertswiecki
ab074d39a0
Merge pull request #49 from disconnect3d/small-refactor-sandbox
...
sandbox.c: small refactor
2017-10-08 12:55:56 +02:00
Robert Swiecki
acd8e01060
subproc: print si->si_errno as well as it provides user-supplied value from seccomp-bpf
2017-10-08 12:00:19 +02:00
Robert Swiecki
66f60a78b0
subproc: reorder printing of si->si_syscall #2
2017-10-08 11:55:11 +02:00
Robert Swiecki
24c3be941f
subproc: reorder printing of si->si_syscall
2017-10-08 11:53:24 +02:00
Robert Swiecki
809dbbb560
subproc: print si->si_syscall
2017-10-08 11:51:37 +02:00
John Vogel
e3ada49abf
manpage: tweak for recent options changes
...
Adjust rlimit_* options to match command line --help output.
Add --really_quiet option.
And some clean up:
Remove 'See Also' section that only references a non-existent
info page that is a relic of using help2man for initial manual
page generation.
2017-10-08 01:28:06 -04:00
disconnect3d
14ec30c211
sandbox.c: small refactor
2017-10-08 02:57:49 +02:00
Robert Swiecki
b7def79d90
mount: don't R/O remount mounts which were not mounted (not mandatory)
2017-10-08 01:28:45 +02:00
Robert Swiecki
6d29c196ac
common: less const argv
2017-10-08 00:36:13 +02:00
Robert Swiecki
f703d615d8
make indent
2017-10-08 00:17:47 +02:00
Robert Swiecki
c35857cff2
cmdline: use mountAddMountPt in the remaining calls
2017-10-08 00:14:24 +02:00
Robert Swiecki
0541d0dfc3
cmdline/mount: mount proc at the beginning
2017-10-07 23:32:25 +02:00
Robert Swiecki
dc2131cdd1
cmdline: use soft/hard literals instead of def/max for rlimits
2017-10-07 22:36:21 +02:00
Robert Swiecki
5d4f42a729
cmdline: missing flags for --chroot mount point
2017-10-07 22:33:46 +02:00
Robert Swiecki
a39f76924d
cmdline: use mountAddMountPt instead of adding structs explicitly
2017-10-07 22:30:19 +02:00
Robert Swiecki
6ada77d4cf
cmdline: better errors for setting rlimits
2017-10-07 12:37:26 +02:00
Robert Swiecki
e89a6f0c24
cmdline: 'inf' for rlimits
2017-10-07 12:33:19 +02:00
Robert Swiecki
aac3e112b4
cmdline: descriptions of flags
2017-10-07 12:31:54 +02:00
Robert Swiecki
5597783716
cmdline: implement --really_quiet option
2017-10-07 02:03:51 +02:00
Robert Swiecki
5aa9376b2c
config: make argv static to avoid using heap
2017-10-07 01:54:36 +02:00
Robert Swiecki
21d08eaa67
config: make config static so we can get rid of strdup()
2017-10-07 00:18:21 +02:00
Robert Swiecki
a5c3a1823f
config.proto: comments
2017-10-06 22:50:32 +02:00
Robert Swiecki
25c6272b56
config: indent
2017-10-06 22:44:55 +02:00
Robert Swiecki
dbc6fab582
config: allow to use soft/hard/inf limits for rlimits
2017-10-06 22:44:27 +02:00
Robert Swiecki
ee3d454457
pid: comment on the ns-init process
2017-10-06 19:42:58 +02:00
Robert Swiecki
0fb8b9379b
mount: realpath is not needed as mount will realpath the path
2017-10-03 18:37:34 +02:00
Robert Swiecki
b5305a3c32
.gitignore: ignore config.pb.*
2017-10-01 19:55:36 +02:00
Robert Swiecki
7fa94b8e8c
contain: remove unnecessary includes
2017-10-01 19:08:31 +02:00
Robert Swiecki
37dcac6218
user: comments
2017-10-01 19:01:36 +02:00
Robert Swiecki
dfe3bac4ef
user: log message
2017-10-01 16:13:17 +02:00
Robert Swiecki
02951e0ac8
user: simplify login when running with --disable_clonew_newuser by using prctl(PR_SET_SECUREBITS, SECBIT_KEEP_CAPS | SECBIT_NO_SETUID_FIXUP)
2017-10-01 16:11:46 +02:00
Robert Swiecki
be25a24b5b
user: more comments
2017-10-01 15:54:04 +02:00
Robert Swiecki
293a683b14
caps: more comments
2017-10-01 05:49:13 +02:00
Robert Swiecki
6c889e7135
mount: print error when --disable_clone_newns is used but no --chroot was specified
2017-10-01 05:47:10 +02:00
Robert Swiecki
1bdd9843df
caps: call prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL) early
2017-10-01 05:38:26 +02:00
Robert Swiecki
c71c996143
Allow for running with --disable_newuser started as root
2017-10-01 05:32:07 +02:00
Robert Swiecki
2b797a19fd
mount: allow to use --disable_newuser for root users
2017-10-01 05:16:01 +02:00
Robert Swiecki
769ff19306
mount: remount / as private before doing any new mounts
2017-10-01 04:51:56 +02:00
Robert Swiecki
8aafd1b41b
Makefile: correct proto dep, plus some comments in caps.c
2017-10-01 00:06:36 +02:00
Robert Swiecki
7820553cb9
caps: define CAP_AUDIT_READ if not defined
2017-09-30 01:04:35 +02:00
Robert Swiecki
a85f5505d2
caps: missing static function declarator
2017-09-30 00:37:06 +02:00
Robert Swiecki
41e9ea52ba
caps: refactor the code to make it readable for the --keep_caps case
2017-09-30 00:36:11 +02:00
Robert Swiecki
d20aa424e0
cap: Don't use -libcap anymore, as it had problems with newer capabilities
2017-09-30 00:05:41 +02:00
Robert Swiecki
5c3963e9a2
cmdline: various fixes of descriptions
2017-09-29 22:18:16 +02:00
Robert Swiecki
280feb1a1a
caps: dont' throw warning if CAP_AUDIT_READ is not understood by libcap during reading
2017-09-29 21:31:22 +02:00
Robert Swiecki
59657be88d
cmdline: correct description for rlimit_ values
2017-09-29 14:46:03 +02:00