firejail/test
Kelvin M. Klann e4294defd8 build: remove remnants of overlayfs/--overlay
Remove what remains of the overlayfs support, `--overlay` commands and
the `--enable-overlayfs` configure option.

Commands:

* `--overlay`
* `--overlay-named=`
* `--overlay-clean`
* `--overlay-tmpfs`

firejail.config:

* `overlayfs`

Related commits:

* 489cc25c2 ("cleaned up old overlayfs code; the feature was disabled by
  default in 2021 because of security problems", 2025-12-16).
* b537aa57b ("fixed /sys mounting broken during overlayfs cleanup",
  2025-12-18)

Relates to #6994.

Note: Code with `RUN_OVERLAY_ROOT` / `oroot` is left as is, since it
seems to also be used by `--chroot`:

    $ git grep -E '[^n]oroot'
    etc/apparmor/firejail-default:# Line starting with /run/firejail/mnt/oroot deal with --overlay sandboxes.
    etc/apparmor/firejail-default:/{,run/firejail/mnt/oroot/}{dev,etc,home,media,mnt,root,srv,tmp,var}/** w,
    etc/apparmor/firejail-default:# to run programs from your home directory, add "/{,run/firejail/mnt/oroot/}home/** ix,"
    etc/apparmor/firejail-default:/{,run/firejail/mnt/oroot/}{,usr/,usr/local/}bin/** ix,
    etc/apparmor/firejail-default:/{,run/firejail/mnt/oroot/}{,usr/,usr/local/}sbin/** ix,
    etc/apparmor/firejail-default:/{,run/firejail/mnt/oroot/}{,usr/,usr/local/}games/** ix,
    etc/apparmor/firejail-default:/{,run/firejail/mnt/oroot/}{,usr/,usr/local/}lib{,32,64,exec}/** ix,
    etc/apparmor/firejail-default:/{,run/firejail/mnt/oroot/}{,usr/,usr/local/}opt/** ix,
    etc/apparmor/firejail-default:#/{,run/firejail/mnt/oroot/}home/** ix,
    etc/apparmor/firejail-default:/{,run/firejail/mnt/oroot/}{,var/}run/firejail/appimage/** ix,
    src/firejail/chroot.c:  // create /run/firejail/mnt/oroot
    src/firejail/chroot.c:  char *oroot = RUN_OVERLAY_ROOT;
    src/firejail/chroot.c:  if (mkdir(oroot, 0755) == -1)
    src/firejail/chroot.c:  // mount the chroot dir on top of /run/firejail/mnt/oroot in order to reuse the apparmor rules for overlay
    src/firejail/chroot.c:  if (bind_mount_fd_to_path(parentfd, oroot))
    src/firejail/chroot.c:          errExit("mounting rootdir oroot");
    src/firejail/chroot.c:  if (chroot(oroot) < 0)
    src/include/rundefs.h:#define RUN_OVERLAY_ROOT          RUN_MNT_DIR "/oroot"
2025-12-19 16:35:02 -03:00
..
apparmor update copyright 2025-01-12 19:26:24 -05:00
appimage tests: appimage: fix duplicated "TESTING ERROR" numbers 2025-11-22 06:58:20 -03:00
apps update copyright 2025-01-12 19:26:24 -05:00
apps-x11 update copyright 2025-01-12 19:26:24 -05:00
apps-x11-xorg update copyright 2025-01-12 19:26:24 -05:00
capabilities update copyright 2025-01-12 19:26:24 -05:00
chroot update copyright 2025-01-12 19:26:24 -05:00
compile build: remove remnants of overlayfs/--overlay 2025-12-19 16:35:02 -03:00
environment tests: rlimit: add missing tests for rlimit-as / rlimit-cpu (#6895) 2025-09-12 10:34:02 +00:00
fcopy update copyright 2025-01-12 19:26:24 -05:00
filters update copyright 2025-01-12 19:26:24 -05:00
firecfg update copyright 2025-01-12 19:26:24 -05:00
fnetfilter update copyright 2025-01-12 19:26:24 -05:00
fs update copyright 2025-01-12 19:26:24 -05:00
network fix misc copyright years 2025-01-13 03:21:52 -03:00
private-etc update copyright 2025-01-12 19:26:24 -05:00
private-lib update copyright 2025-01-12 19:26:24 -05:00
profiles update copyright 2025-01-12 19:26:24 -05:00
seccomp-extra modif: keep plugdev group unless nou2f is used (#6664) 2025-03-14 05:37:13 +00:00
sysutils tests: man: disable test due to timeout (#6955) 2025-11-03 05:28:49 +00:00
utils update copyright 2025-01-12 19:26:24 -05:00
hidepid-howto Housekeeping 2019-02-17 17:04:02 -06:00
Makefile build: allow overriding common tools 2024-05-29 17:35:35 -03:00