diff options
author | 2019-07-14 11:55:15 +0200 | |
---|---|---|
committer | 2019-07-14 11:55:15 +0200 | |
commit | 61d2548d2411b0e3796313c29f5a3b3e1288b35c (patch) | |
tree | be3dda4d524420c2130ec2718819855b876b8739 | |
parent | don't allow root directory as home (diff) | |
download | firejail-61d2548d2411b0e3796313c29f5a3b3e1288b35c.tar.gz firejail-61d2548d2411b0e3796313c29f5a3b3e1288b35c.tar.zst firejail-61d2548d2411b0e3796313c29f5a3b3e1288b35c.zip |
homedirs: turn "informational error" into warning
-rw-r--r-- | src/firejail/main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 950146612..d1c41c58a 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -266,17 +266,16 @@ static void build_cfg_homedir(const char *dir) { | |||
266 | fprintf(stderr, "Error: invalid user directory \"%s\"\n", dir); | 266 | fprintf(stderr, "Error: invalid user directory \"%s\"\n", dir); |
267 | exit(1); | 267 | exit(1); |
268 | } | 268 | } |
269 | // symlinks are rejected in many places, provide a solution for home directories | 269 | // symlinks are rejected in many places, offer a solution for home directories |
270 | if (checkcfg(CFG_HOMEDIR_SYMLINK)) { | 270 | if (checkcfg(CFG_HOMEDIR_SYMLINK)) { |
271 | cfg.homedir = realpath(dir, NULL); | 271 | cfg.homedir = realpath(dir, NULL); |
272 | if (cfg.homedir) | 272 | if (cfg.homedir) |
273 | return; | 273 | return; |
274 | } | 274 | } |
275 | else if (has_link(dir)) { | 275 | else if (has_link(dir)) { |
276 | fprintf(stderr, "Error: path of user directory contains a symbolic link. " | 276 | fwarning("no full support for symbolic links in path of user directory.\n" |
277 | "Please provide resolved path in password database (/etc/passwd) " | 277 | "Please provide resolved path in password database (/etc/passwd)\n" |
278 | "or enable symbolic link resolution in Firejail configuration file.\n"); | 278 | "or enable symbolic link resolution in Firejail configuration file.\n\n"); |
279 | exit(1); | ||
280 | } | 279 | } |
281 | cfg.homedir = clean_pathname(dir); | 280 | cfg.homedir = clean_pathname(dir); |
282 | } | 281 | } |