diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-01-21 19:35:31 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@microsoft.com> | 2021-01-21 19:35:31 +0100 |
commit | 70599967664129bbd1aa5d460e3cb0beeb95dd13 (patch) | |
tree | 1bb026b2ac6dd8c925e3ae007a1ed65b7ba8c730 /src/shared/mount-util.h | |
parent | dissect: split verity_dissect_and_mount helper out for reuse (diff) | |
download | systemd-70599967664129bbd1aa5d460e3cb0beeb95dd13.tar.xz systemd-70599967664129bbd1aa5d460e3cb0beeb95dd13.zip |
mount-util: add helper to mount image inside live namespace
Diffstat (limited to '')
-rw-r--r-- | src/shared/mount-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/mount-util.h b/src/shared/mount-util.h index fa36dd7875..849c37e85b 100644 --- a/src/shared/mount-util.h +++ b/src/shared/mount-util.h @@ -6,6 +6,7 @@ #include <unistd.h> #include "alloc-util.h" +#include "dissect-image.h" #include "errno-util.h" #include "macro.h" @@ -99,3 +100,4 @@ static inline char* umount_and_rmdir_and_free(char *p) { DEFINE_TRIVIAL_CLEANUP_FUNC(char*, umount_and_rmdir_and_free); int bind_mount_in_namespace(pid_t target, const char *propagate_path, const char *incoming_path, const char *src, const char *dest, bool read_only, bool make_file_or_directory); +int mount_image_in_namespace(pid_t target, const char *propagate_path, const char *incoming_path, const char *src, const char *dest, bool read_only, bool make_file_or_directory, const MountOptions *options); |