Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: do not interact with dbus directory if dbus proxy is disabled
Fix a failing assert when running `firejail` inside: `firejail --chroot=somedir --noprofile` firejail: ../../src/firejail/util.c:1039: create_empty_dir_as_root: Assertion `(s.st_mode & 07777) == (mode)' failed. The assert is checking whether the newly created `/run/firejail/dbus` empty directory, has the correct mode set, which in this case is `0755`. The issue is that, since the directory already exists and has the mode `0400`, because of the first ran chroot command, the assert fails. This commit circumvents this issue, by making `firejail` ignore the dbug directory entirely, in the `src/firejail/preproc.c` file when compiling the project using `configure --disable-dbusproxy`. There's also really no need for `firejail` to care about that directory if `--disable-dbusproxy` is used.
- Loading branch information