]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/import/import-common.h
login: respect install_sysconfdir_samples in meson file
[thirdparty/systemd.git] / src / import / import-common.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <sys/types.h>
5
6 typedef enum ImportFlags {
7 IMPORT_FORCE = 1 << 0, /* replace existing image */
8 IMPORT_READ_ONLY = 1 << 1, /* make generated image read-only */
9
10 IMPORT_FLAGS_MASK = IMPORT_FORCE|IMPORT_READ_ONLY,
11 } ImportFlags;
12
13 int import_make_read_only_fd(int fd);
14 int import_make_read_only(const char *path);
15
16 int import_fork_tar_c(const char *path, pid_t *ret);
17 int import_fork_tar_x(const char *path, pid_t *ret);
18
19 int import_mangle_os_tree(const char *path);