summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-03-07 20:03:54 +0100
committerAlexander Larsson <alexl@redhat.com>2016-03-07 20:03:54 +0100
commit456211b1895e784dd3233c438e9757ca0aa1e4f3 (patch)
tree50bfe921cdfef95e08504c20d6036f2aef2fbbea
parent0c0e81e8d73e22b540acfd20f6afd7c525fce1ee (diff)
downloadbubblewrap-456211b1895e784dd3233c438e9757ca0aa1e4f3.tar.gz
Remove unused BIND_PRIVATE
-rw-r--r--bind-mount.c8
-rw-r--r--bind-mount.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/bind-mount.c b/bind-mount.c
index ec95682..d5e0d53 100644
--- a/bind-mount.c
+++ b/bind-mount.c
@@ -235,7 +235,6 @@ bind_mount (int proc_fd,
bind_option_t options)
{
bool readonly = (options & BIND_READONLY) != 0;
- bool private = (options & BIND_PRIVATE) != 0;
bool devices = (options & BIND_DEVICES) != 0;
bool recursive = (options & BIND_RECURSIVE) != 0;
unsigned long current_flags, new_flags;
@@ -244,13 +243,6 @@ bind_mount (int proc_fd,
if (mount (src, dest, NULL, MS_MGC_VAL|MS_BIND|(recursive?MS_REC:0), NULL) != 0)
return 1;
- if (private)
- {
- if (mount ("none", dest,
- NULL, MS_REC|MS_PRIVATE, NULL) != 0)
- return 2;
- }
-
current_flags = get_mountflags (proc_fd, dest);
new_flags = current_flags|(devices?0:MS_NODEV)|MS_NOSUID|(readonly?MS_RDONLY:0);
diff --git a/bind-mount.h b/bind-mount.h
index 1ad833c..a70f877 100644
--- a/bind-mount.h
+++ b/bind-mount.h
@@ -21,7 +21,6 @@
typedef enum {
BIND_READONLY = (1<<0),
- BIND_PRIVATE = (1<<1),
BIND_DEVICES = (1<<2),
BIND_RECURSIVE = (1<<3),
} bind_option_t;