Commit Graph

30 Commits

Author SHA1 Message Date
Robert Swiecki
dd0b51eded remove _NSConcreteStackBlock as we don't use defer{} any more 2017-11-20 17:03:06 +01:00
Robert Swiecki
e2529ce04f Makefile/indent: base it on the google template with modifications 2017-10-26 00:26:02 +02:00
Robert Swiecki
4c5aebf23b nsjail: use CTRL+\ (SIGQUIT) to display active sessions 2017-10-19 15:25:20 +02:00
Robert Swiecki
5ef11f65a4 No need to use '== true' 2017-10-18 15:41:16 +02:00
Robert Swiecki
152d6d68ae simplify includes, remove unneeded, add needed 2017-10-18 14:46:17 +02:00
Robert Swiecki
1b4577e53f subproc: clear signal handlers in the child process 2017-10-18 12:33:24 +02:00
Robert Swiecki
411955c5ae nsjail: add missing commans in nested structs and make indent 2017-10-16 15:31:14 +02:00
Robert Swiecki
64325b3862 user: remove static from idx vars, it causes crash after many iterations of nsjail 2017-10-16 15:19:07 +02:00
Robert Swiecki
74b43346bd make indent 2017-10-08 23:00:45 +02:00
Robert Swiecki
9be5520fec nsjail.c: LOG_F -> LOG_W for disable_clone_newuser 2017-09-25 12:01:44 +02:00
Robert Swiecki
b3546b1a3e nsjail.c: exit() -> LOG_F( 2017-09-25 12:00:57 +02:00
Yoshisato Yanagisawa
1389da4c91 Use 0xff as nsjail error code.
For ease of distinguishing errors coming from a program executed by
nsjail and errors from nsjail, let me change nsjail error exit
status code to 0xff instead of 1.
I think most of programs use EXIT_FAILURE (i.e. 1) as a default
error exit status code.
2017-09-25 14:08:22 +09:00
Robert Swiecki
374f6cc4f0 config: Initial work on converting config.c to c++ protobuf lib
config: Initial work on converting config.c to c++ protobuf lib #2

config: Initial work on converting config.c to c++ protobuf lib #3

config: Initial work on converting config.c to c++ protobuf lib #4

config: Initial work on converting config.c to c++ protobuf lib #5

config: Initial work on converting config.c to c++ protobuf lib #6
2017-09-14 21:17:38 +02:00
Robert Swiecki
39ce9d22a7 caps: just local caps 2017-07-05 17:29:57 +02:00
Robert Swiecki
7ba602a6ed caps: move capability-setting code to caps.* 2017-07-05 13:03:14 +02:00
Robert Swiecki
fa2796fe65 util: Implement utilSigName() 2017-06-20 00:16:38 +02:00
Robert Swiecki
1dc33c7bcf Remove defer{} calls 2016-07-29 15:38:22 +02:00
Robert Swiecki
f3b70cc314 Remove -lBlocksRuntime 2016-07-27 14:04:03 +02:00
Jagger
57a523dd08 Use defer {} instead of DEFER() 2016-04-23 04:22:31 +02:00
Jagger
4ae2c027ac Cleaner impl. of DEFER 2016-03-10 22:56:26 +01:00
Robert Swiecki
4eee12b9e3 Stricter check for clang 2016-03-08 18:49:06 +01:00
Jagger
6fc00951af Move subprocReap to the front of the waiting loop 2016-03-04 02:19:52 +01:00
Robert Swiecki
b89b8cfbc7 Fix common.h includes 2016-03-01 17:03:11 +01:00
Robert Swiecki
9852028522 Implement --bindhost 2016-02-25 18:27:48 +01:00
Jagger
701825970a Implementation of MODE_STANDALONE_EXECVE 2015-08-15 16:02:38 +02:00
Jagger
5dc0fe193a Better logging for clone failure 2015-08-12 04:32:34 +02:00
JT Olds
459a220133 Return child exit status in standalone mode 2015-07-07 10:33:47 -06:00
Robert Swiecki
1c99a839ac Initialize nsjconf structure in the commandline module: 2015-06-17 16:52:51 +02:00
Jagger
9960304cab A crude way of cloning an eth interface 2015-05-28 03:37:08 +02:00
Robert Swiecki
0ca35aa942 Initial import 2015-05-14 23:44:48 +02:00