| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
typedef enum TarFlags { |
| 5 |
TAR_SELINUX = 1 << 0, /* Include SELinux xattr in tarball, or unpack it */ |
| 6 |
TAR_SQUASH_UIDS_ABOVE_64K = 1 << 1, /* Squash UIDs/GIDs above 64K when packing/unpacking to the nobody user */ |
| 7 |
TAR_OCI_WHITEOUTS = 1 << 2, /* Turn OCI/aufs whiteout inodes into overlayfs whiteouts */ |
| 8 |
} TarFlags; |
| 9 |
|
| 10 |
int tar_x(int input_fd, int tree_fd, TarFlags flags); |
| 11 |
int tar_c(int tree_fd, int output_fd, const char *filename, TarFlags flags); |