diff options
author | smitsohu <smitsohu@gmail.com> | 2022-03-12 13:59:58 +0100 |
---|---|---|
committer | smitsohu <smitsohu@gmail.com> | 2022-03-12 13:59:58 +0100 |
commit | c4406550767dac01750023fbed487283da47f86a (patch) | |
tree | bf14a4f43abebe8a580513cd68c840d22de3c5a4 /src/fbuilder/build_profile.c | |
parent | disable-programs.inc: add ~/.prey (diff) | |
download | firejail-c4406550767dac01750023fbed487283da47f86a.tar.gz firejail-c4406550767dac01750023fbed487283da47f86a.tar.zst firejail-c4406550767dac01750023fbed487283da47f86a.zip |
fbuilder tweaks
Diffstat (limited to 'src/fbuilder/build_profile.c')
-rw-r--r-- | src/fbuilder/build_profile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fbuilder/build_profile.c b/src/fbuilder/build_profile.c index 941f43562..f3115646a 100644 --- a/src/fbuilder/build_profile.c +++ b/src/fbuilder/build_profile.c | |||
@@ -30,7 +30,7 @@ void build_profile(int argc, char **argv, int index, FILE *fp) { | |||
30 | exit(1); | 30 | exit(1); |
31 | } | 31 | } |
32 | 32 | ||
33 | char trace_output[] = "/tmp/firejail-trace.XXXXXX"; | 33 | char trace_output[] = TRACE_OUTPUT; |
34 | int tfile = mkstemp(trace_output); | 34 | int tfile = mkstemp(trace_output); |
35 | if(tfile == -1) | 35 | if(tfile == -1) |
36 | errExit("mkstemp"); | 36 | errExit("mkstemp"); |
@@ -147,7 +147,8 @@ void build_profile(int argc, char **argv, int index, FILE *fp) { | |||
147 | fprintf(fp, "\n"); | 147 | fprintf(fp, "\n"); |
148 | 148 | ||
149 | fprintf(fp, "#disable-mnt\t# no access to /mnt, /media, /run/mount and /run/media\n"); | 149 | fprintf(fp, "#disable-mnt\t# no access to /mnt, /media, /run/mount and /run/media\n"); |
150 | build_bin(trace_output, fp); | 150 | if (!arg_appimage) |
151 | build_bin(trace_output, fp); | ||
151 | fprintf(fp, "#private-cache\t# run with an empty ~/.cache directory\n"); | 152 | fprintf(fp, "#private-cache\t# run with an empty ~/.cache directory\n"); |
152 | build_dev(trace_output, fp); | 153 | build_dev(trace_output, fp); |
153 | build_etc(trace_output, fp); | 154 | build_etc(trace_output, fp); |