diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-28 21:10:15 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-28 23:34:17 +0200 |
commit | f415b29255819e19ffde16018fb9ad02cbbfd17c (patch) | |
tree | 41dfa5a80fdb2015098ad5f4210acc4c21ec3cd0 /mkfs/mkfs.h | |
parent | 5e4d53c713d3f01ae2d24a7d2311d65761b143dc (diff) |
Move fstree selinux code to gensquashfs
Same rational as for the dir-scanner code: It's actually the only user and
it is going to get a lot closer integerated with libsquashfs.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs/mkfs.h')
-rw-r--r-- | mkfs/mkfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mkfs/mkfs.h b/mkfs/mkfs.h index bce98d8..f00898b 100644 --- a/mkfs/mkfs.h +++ b/mkfs/mkfs.h @@ -23,6 +23,11 @@ #include <sys/xattr.h> #endif +#ifdef WITH_SELINUX +#include <selinux/selinux.h> +#include <selinux/label.h> +#endif + #include <getopt.h> #include <assert.h> #include <unistd.h> @@ -65,4 +70,6 @@ void process_command_line(options_t *opt, int argc, char **argv); int fstree_from_dir(fstree_t *fs, const char *path, unsigned int flags); +int fstree_relabel_selinux(fstree_t *fs, const char *filename); + #endif /* MKFS_H */ |