Rework immutability and overlays

This commit is contained in:
Rudra Saraswat 2023-04-25 16:44:01 +05:30
parent fddf7f86ae
commit 5e65e6c06e
13 changed files with 1141 additions and 70 deletions

20
overlayfs-tools/sh.h Executable file
View file

@ -0,0 +1,20 @@
#ifndef OVERLAYFS_TOOLS_SH_H
#define OVERLAYFS_TOOLS_SH_H
enum {
LOWERDIR,
UPPERDIR,
MOUNTDIR,
LOWERNEW,
UPPERNEW,
NUM_VARS
};
extern const char *var_names[NUM_VARS];
extern char *vars[NUM_VARS];
FILE* create_shell_script(char *tmp_path_buffer);
int command(FILE *output, const char *command_format, ...);
#endif //OVERLAYFS_TOOLS_SH_H