diff options
author | startx2017 <vradu.startx@yandex.com> | 2017-11-02 09:12:08 -0400 |
---|---|---|
committer | startx2017 <vradu.startx@yandex.com> | 2017-11-02 09:12:08 -0400 |
commit | 601068247adcb0f947c8098a1533de749accc02e (patch) | |
tree | 3c23f6e032da11a19f3b369365da966237edb4ec /src/firejail/pulseaudio.c | |
parent | fix --dns issue #1621 (diff) | |
download | firejail-601068247adcb0f947c8098a1533de749accc02e.tar.gz firejail-601068247adcb0f947c8098a1533de749accc02e.tar.zst firejail-601068247adcb0f947c8098a1533de749accc02e.zip |
fixing filesystem reporting for firetools
Diffstat (limited to 'src/firejail/pulseaudio.c')
-rw-r--r-- | src/firejail/pulseaudio.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/firejail/pulseaudio.c b/src/firejail/pulseaudio.c index 2f8cd5f7d..6768b525b 100644 --- a/src/firejail/pulseaudio.c +++ b/src/firejail/pulseaudio.c | |||
@@ -147,6 +147,7 @@ void pulseaudio_init(void) { | |||
147 | } | 147 | } |
148 | // wait for the child to finish | 148 | // wait for the child to finish |
149 | waitpid(child, NULL, 0); | 149 | waitpid(child, NULL, 0); |
150 | fs_logger2("create", dir1); | ||
150 | } | 151 | } |
151 | else { | 152 | else { |
152 | // make sure the directory is owned by the user | 153 | // make sure the directory is owned by the user |
@@ -179,6 +180,7 @@ void pulseaudio_init(void) { | |||
179 | } | 180 | } |
180 | // wait for the child to finish | 181 | // wait for the child to finish |
181 | waitpid(child, NULL, 0); | 182 | waitpid(child, NULL, 0); |
183 | fs_logger2("create", dir1); | ||
182 | } | 184 | } |
183 | else { | 185 | else { |
184 | // make sure the directory is owned by the user | 186 | // make sure the directory is owned by the user |
@@ -199,6 +201,11 @@ void pulseaudio_init(void) { | |||
199 | mount(NULL, homeusercfg, NULL, MS_NOEXEC|MS_NODEV|MS_NOSUID|MS_BIND|MS_REMOUNT, NULL) < 0) | 201 | mount(NULL, homeusercfg, NULL, MS_NOEXEC|MS_NODEV|MS_NOSUID|MS_BIND|MS_REMOUNT, NULL) < 0) |
200 | errExit("mount pulseaudio"); | 202 | errExit("mount pulseaudio"); |
201 | fs_logger2("tmpfs", homeusercfg); | 203 | fs_logger2("tmpfs", homeusercfg); |
204 | char *p; | ||
205 | if (asprintf(&p, "%s/client.conf", homeusercfg) == -1) | ||
206 | errExit("asprintf"); | ||
207 | fs_logger2("create", p); | ||
208 | free(p); | ||
202 | } | 209 | } |
203 | else { | 210 | else { |
204 | // set environment | 211 | // set environment |