diff options
Diffstat (limited to 'src/firejail/fs_trace.c')
-rw-r--r-- | src/firejail/fs_trace.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/firejail/fs_trace.c b/src/firejail/fs_trace.c index 92e4daed2..f555a6693 100644 --- a/src/firejail/fs_trace.c +++ b/src/firejail/fs_trace.c | |||
@@ -57,7 +57,13 @@ void fs_trace(void) { | |||
57 | FILE *fp = fopen(RUN_LDPRELOAD_FILE, "w"); | 57 | FILE *fp = fopen(RUN_LDPRELOAD_FILE, "w"); |
58 | if (!fp) | 58 | if (!fp) |
59 | errExit("fopen"); | 59 | errExit("fopen"); |
60 | fprintf(fp, "%s/firejail/libtrace.so\n", LIBDIR); | 60 | if (arg_trace) |
61 | fprintf(fp, "%s/firejail/libtrace.so\n", LIBDIR); | ||
62 | else if (arg_tracelog) | ||
63 | fprintf(fp, "%s/firejail/libtracelog.so\n", LIBDIR); | ||
64 | else | ||
65 | assert(0); | ||
66 | |||
61 | fclose(fp); | 67 | fclose(fp); |
62 | if (chown(RUN_LDPRELOAD_FILE, 0, 0) < 0) | 68 | if (chown(RUN_LDPRELOAD_FILE, 0, 0) < 0) |
63 | errExit("chown"); | 69 | errExit("chown"); |