aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Lucangeli Obes <jorgelo@google.com>2015-12-04 15:43:30 -0800
committerJorge Lucangeli Obes <jorgelo@google.com>2015-12-04 15:43:30 -0800
commitf7a3868cc0f6fc8de945e4f9e9e6fcae5bf1e645 (patch)
tree4337a8937b8b2786ddbc1e1adb6e8c8aba0ce698
parentd7728b814333c62a52c213d0d89a3f345bb914eb (diff)
downloadminijail-f7a3868cc0f6fc8de945e4f9e9e6fcae5bf1e645.tar.gz
Fix indentation.
Change-Id: Ibd7a20bd3e943b13499b084eefa7ec66bef66bb6
-rw-r--r--libminijail.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libminijail.c b/libminijail.c
index 00a4344..b5a2ce1 100644
--- a/libminijail.c
+++ b/libminijail.c
@@ -1153,16 +1153,16 @@ void API minijail_enter(const struct minijail *j)
pdie("setns(CLONE_NEWNS)");
if (j->flags.vfs) {
- if (unshare(CLONE_NEWNS))
- pdie("unshare(vfs)");
- /*
- * Remount all filesystems as private. If they are shared
- * new bind mounts will creep out of our namespace.
- * https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt
- */
- if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL))
- pdie("mount(/, private)");
- }
+ if (unshare(CLONE_NEWNS))
+ pdie("unshare(vfs)");
+ /*
+ * Remount all filesystems as private. If they are shared
+ * new bind mounts will creep out of our namespace.
+ * https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt
+ */
+ if (mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL))
+ pdie("mount(/, private)");
+ }
if (j->flags.ipc && unshare(CLONE_NEWIPC)) {
pdie("unshare(ipc)");