Skip to content

Commit

Permalink
deprecated follow-symlink-as-user from firejail.config
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed May 26, 2021
1 parent 518633e commit 4909fa7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
3 changes: 2 additions & 1 deletion RELNOTES
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
firejail (0.9.65) baseline; urgency=low
* deprecated --audit options, relpaced by jailtest
* deprecated follow-symlink-as-user from firejail.config
* filtering environment variables
* zsh completion
* command line: --mkdir, --mkfile
Expand All @@ -7,7 +9,6 @@ firejail (0.9.65) baseline; urgency=low
* private-lib rework
* whitelist rework
* jailtest utility for testing running sandboxes
* removed --audit options, relpaced by jailtest
* capabilities list update
* faccessat2 syscall support
* --private-dev keeps /dev/input
Expand Down
6 changes: 0 additions & 6 deletions etc/firejail.config
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@
# Enable Firejail green prompt in terminal, default disabled
# firejail-prompt no

# Follow symlink as user. While using --whitelist feature,
# symlinks pointing outside home directory are followed only
# if both the link and the real file are owned by the user.
# Enabled by default
# follow-symlink-as-user yes

# Force use of nonewprivs. This mitigates the possibility of
# a user abusing firejail's features to trick a privileged (suid
# or file capabilities) process into loading code or configuration
Expand Down
1 change: 0 additions & 1 deletion src/firejail/checkcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ int checkcfg(int val) {
PARSE_YESNO(CFG_USERNS, "userns")
PARSE_YESNO(CFG_CHROOT, "chroot")
PARSE_YESNO(CFG_FIREJAIL_PROMPT, "firejail-prompt")
PARSE_YESNO(CFG_FOLLOW_SYMLINK_AS_USER, "follow-symlink-as-user")
PARSE_YESNO(CFG_FORCE_NONEWPRIVS, "force-nonewprivs")
PARSE_YESNO(CFG_SECCOMP, "seccomp")
PARSE_YESNO(CFG_WHITELIST, "whitelist")
Expand Down
1 change: 0 additions & 1 deletion src/firejail/firejail.h
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,6 @@ enum {
CFG_PRIVATE_HOME,
CFG_PRIVATE_BIN_NO_LOCAL,
CFG_FIREJAIL_PROMPT,
CFG_FOLLOW_SYMLINK_AS_USER,
CFG_DISABLE_MNT,
CFG_JOIN,
CFG_ARP_PROBES,
Expand Down
4 changes: 4 additions & 0 deletions src/firejail/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1904,6 +1904,8 @@ int main(int argc, char **argv, char **envp) {
}
else if (strcmp(argv[i], "--private") == 0) {
arg_private = 1;
// disable whitelisting in home directory
profile_add("whitelist ~/*");
}
else if (strncmp(argv[i], "--private=", 10) == 0) {
if (cfg.home_private_keep) {
Expand All @@ -1925,6 +1927,8 @@ int main(int argc, char **argv, char **envp) {
cfg.home_private = NULL;
}
arg_private = 1;
// disable whitelisting in home directory
profile_add("whitelist ~/*");
}
#ifdef HAVE_PRIVATE_HOME
else if (strncmp(argv[i], "--private-home=", 15) == 0) {
Expand Down

0 comments on commit 4909fa7

Please sign in to comment.