summaryrefslogtreecommitdiff
path: root/src/shared/mount-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-03-25 17:04:38 +0100
committerLennart Poettering <lennart@poettering.net>2019-03-25 19:33:55 +0100
commit64e82c1976ebab0c7788149da42e5193e9ca2dfb (patch)
tree1907a6227d0fc5c33c79425d908ff3de07d64333 /src/shared/mount-util.h
parentf0a95a2c6d64436611bca31de1f7662a4066695c (diff)
downloadsystemd-64e82c1976ebab0c7788149da42e5193e9ca2dfb.tar.gz
mount-util: beef up bind_remount_recursive() to be able to toggle more than MS_RDONLY
The function is otherwise generic enough to toggle other bind mount flags beyond MS_RDONLY (for example: MS_NOSUID or MS_NODEV), hence let's beef it up slightly to support that too.
Diffstat (limited to 'src/shared/mount-util.h')
-rw-r--r--src/shared/mount-util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/mount-util.h b/src/shared/mount-util.h
index 00df1b0e55..8649fca39b 100644
--- a/src/shared/mount-util.h
+++ b/src/shared/mount-util.h
@@ -8,8 +8,8 @@
int repeat_unmount(const char *path, int flags);
int umount_recursive(const char *target, int flags);
-int bind_remount_recursive(const char *prefix, bool ro, char **blacklist);
-int bind_remount_recursive_with_mountinfo(const char *prefix, bool ro, char **blacklist, FILE *proc_self_mountinfo);
+int bind_remount_recursive(const char *prefix, unsigned long new_flags, unsigned long flags_mask, char **blacklist);
+int bind_remount_recursive_with_mountinfo(const char *prefix, unsigned long new_flags, unsigned long flags_mask, char **blacklist, FILE *proc_self_mountinfo);
int mount_move_root(const char *path);