Pino Toscano
9c3b4f6ad8
daemon: improve internal commandrvf
...
- add a flag to request chroot for the process, which is done only as
very last (before chdir) operation before exec'ing the process in the
child: this avoids using CHROOT_IN & CHROOT_OUT around command*
invocations, and reduces the code spent in chroot mode
- add failure checks for dup2, open, and chdir done in child, not
proceeding to executing the process if they fail
- open /dev/null without O_CLOEXEC, so it stays available for the
exec'ed process, and thus we don't need to provide an own fd for stdin
Followup of commit fd2f175ee7 , thanks also
to the notes and hints provided by Mateusz Guzik.
2015-12-15 15:00:11 +01:00
..
2014-03-17 19:54:16 +00:00
2015-11-13 11:53:12 +00:00
2015-11-05 16:48:58 +01:00
2014-03-17 19:54:16 +00:00
2014-04-16 12:01:17 +01:00
2015-10-05 14:28:33 +01:00
2014-11-25 14:34:27 +00:00
2015-11-13 11:53:12 +00:00
2013-07-29 14:37:50 +01:00
2015-01-17 09:08:15 +00:00
2015-12-15 15:00:11 +01:00
2013-04-03 12:33:24 +01:00
2015-06-23 21:31:31 +01:00
2014-05-07 09:05:29 +01:00
2015-01-17 09:08:15 +00:00
2015-12-15 15:00:11 +01:00
2014-07-17 11:40:40 +01:00
2014-11-26 16:15:47 +00:00
2015-11-13 11:53:12 +00:00
2015-10-05 14:28:33 +01:00
2015-01-17 09:08:15 +00:00
2014-08-19 16:51:13 +01:00
2015-10-23 10:05:09 +01:00
2015-07-02 16:08:44 +01:00
2015-01-17 09:08:15 +00:00
2015-11-13 11:53:12 +00:00
2015-10-27 17:25:49 +00:00
2014-03-14 13:19:42 +00:00
2015-01-17 09:08:15 +00:00
2015-12-15 15:00:11 +01:00
2015-11-24 19:13:39 +00:00
2013-08-20 18:28:25 +01:00
2014-10-23 19:03:11 +02:00
2015-09-15 10:19:58 +02:00
2015-01-17 09:08:15 +00:00
2015-06-29 23:08:46 +01:00
2015-01-17 09:08:15 +00:00
2014-10-23 19:03:11 +02:00
2015-07-17 13:27:13 +01:00
2015-07-17 13:27:13 +01:00
2013-12-18 15:15:52 +00:00
2013-08-22 19:48:05 +01:00
2015-10-05 14:28:33 +01:00
2015-11-13 11:53:12 +00:00
2015-11-13 11:53:12 +00:00
2015-11-13 11:53:12 +00:00
2015-11-13 11:53:12 +00:00
2015-10-05 14:28:33 +01:00
2014-10-23 19:03:11 +02:00
2013-08-13 15:46:54 +01:00
2015-10-05 14:28:33 +01:00
2015-10-23 10:05:09 +01:00
2015-01-17 09:08:15 +00:00
2015-10-05 14:32:28 +01:00
2015-10-05 14:28:33 +01:00
2015-01-20 16:09:53 +01:00
2015-01-17 09:08:15 +00:00
2014-05-21 15:03:17 +02:00
2015-06-18 10:19:41 +01:00
2015-07-17 13:27:13 +01:00
2014-11-05 14:50:54 +00:00
2015-10-05 14:32:28 +01:00
2015-07-17 13:27:13 +01:00
2013-04-04 18:31:41 +01:00
2015-07-21 18:12:52 +02:00
2015-07-02 16:08:44 +01:00
2015-01-17 09:08:15 +00:00
2014-10-23 19:03:11 +02:00
2015-10-05 14:28:33 +01:00
2015-11-13 11:53:12 +00:00
2015-10-27 17:25:49 +00:00
2015-07-02 16:08:44 +01:00