Skip to content

Commit

Permalink
cleanup: move overlayfs code in separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
smitsohu committed Oct 13, 2021
1 parent 07e9029 commit ec38ea1
Show file tree
Hide file tree
Showing 4 changed files with 476 additions and 456 deletions.
9 changes: 5 additions & 4 deletions src/firejail/firejail.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,15 @@ void fs_proc_sys_dev_boot(void);
void disable_config(void);
// build a basic read-only filesystem
void fs_basic_fs(void);
// mount overlayfs on top of / directory
char *fs_check_overlay_dir(const char *subdirname, int allow_reuse);
void fs_overlayfs(void);
void fs_private_tmp(void);
void fs_private_cache(void);
void fs_mnt(const int enforce);

// fs_overlayfs.c
char *fs_check_overlay_dir(const char *subdirname, int allow_reuse);
void fs_overlayfs(void);
int remove_overlay_directory(void);

// chroot.c
// chroot into an existing directory; mount existing /dev and update /etc/resolv.conf
void fs_check_chroot_dir(void);
Expand Down Expand Up @@ -531,7 +533,6 @@ void wait_for_other(int fd);
void notify_other(int fd);
uid_t pid_get_uid(pid_t pid);
uid_t get_group_id(const char *group);
int remove_overlay_directory(void);
void flush_stdin(void);
int create_empty_dir_as_user(const char *dir, mode_t mode);
void create_empty_dir_as_root(const char *dir, mode_t mode);
Expand Down
Loading

0 comments on commit ec38ea1

Please sign in to comment.