aboutsummaryrefslogtreecommitdiff
path: root/child.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2019-04-28 17:56:30 +0200
committerKarel Kočí <cynerd@email.cz>2019-04-28 17:56:30 +0200
commit68f78d914b221763476e6f17a0d0c48183eeb8cb (patch)
tree9f65bcd596ed9dbc551e6a8b39067f5e4169db7d /child.h
parent3f0fa5587f6e69e8957e674d3ccde6ff8873302e (diff)
downloaduroot-68f78d914b221763476e6f17a0d0c48183eeb8cb.tar.gz
uroot-68f78d914b221763476e6f17a0d0c48183eeb8cb.tar.bz2
uroot-68f78d914b221763476e6f17a0d0c48183eeb8cb.zip
child: allow binfmt_misc to be preserved
This should allow chrooting to non-native systems using qemu.
Diffstat (limited to 'child.h')
-rw-r--r--child.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/child.h b/child.h
index 18909e4..cb49638 100644
--- a/child.h
+++ b/child.h
@@ -20,6 +20,7 @@
#ifndef _UROOT_CHILD_H_
#define _UROOT_CHILD_H_
+#include <stdbool.h>
#include <sys/types.h>
#include "sigpipe.h"
@@ -29,6 +30,7 @@ struct child_args {
int argc;
char **argv;
sigpipe_t sigpipe;
+ bool binfmt;
};
// Function used as a main for child process