From a7c6ef6c571d3affec81275e6772c47632894af2 Mon Sep 17 00:00:00 2001 From: Albert S Date: Sat, 9 Nov 2019 16:27:54 +0100 Subject: [PATCH] bind mount recursively --- qssb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qssb.h b/qssb.h index 01e9d13..a05162a 100644 --- a/qssb.h +++ b/qssb.h @@ -333,12 +333,12 @@ int qssb_enable_policy(struct qssb_policy *policy) if(policy->readonly_paths != NULL || policy->writable_paths != NULL) { - if(mount_to_chroot(policy->chroot_target_path, policy->readonly_paths, MS_BIND | MS_RDONLY) < 0) + if(mount_to_chroot(policy->chroot_target_path, policy->readonly_paths, MS_BIND | MS_RDONLY | MS_REC) < 0) { return -1; } - if(mount_to_chroot(policy->chroot_target_path, policy->writable_paths, MS_BIND) < 0) + if(mount_to_chroot(policy->chroot_target_path, policy->writable_paths, MS_BIND | MS_REC) < 0) { return -1; }