aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/pulseaudio.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-05-08 08:48:24 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-05-08 08:48:24 -0400
commit5031d16f69a45073e596507b76ef5fbc5f19bdc6 (patch)
tree5dabc4f69128b323bed9fb446030329acd9767a0 /src/firejail/pulseaudio.c
parenterrLogExit and --overlay-clean (diff)
downloadfirejail-5031d16f69a45073e596507b76ef5fbc5f19bdc6.tar.gz
firejail-5031d16f69a45073e596507b76ef5fbc5f19bdc6.tar.zst
firejail-5031d16f69a45073e596507b76ef5fbc5f19bdc6.zip
more errLogExit
Diffstat (limited to 'src/firejail/pulseaudio.c')
-rw-r--r--src/firejail/pulseaudio.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/firejail/pulseaudio.c b/src/firejail/pulseaudio.c
index a3ba6184f..eaaba86c0 100644
--- a/src/firejail/pulseaudio.c
+++ b/src/firejail/pulseaudio.c
@@ -178,14 +178,10 @@ void pulseaudio_init(void) {
178 178
179 // check /proc/self/mountinfo to confirm the mount is ok 179 // check /proc/self/mountinfo to confirm the mount is ok
180 MountData *mptr = get_last_mount(); 180 MountData *mptr = get_last_mount();
181 if (strncmp(mptr->dir, homeusercfg, strlen(homeusercfg)) != 0) { 181 if (strncmp(mptr->dir, homeusercfg, strlen(homeusercfg)) != 0)
182 fprintf(stderr, "Error: invalid mount on top of %s (should be %s)\n", mptr->dir, homeusercfg); 182 errLogExit("invalid mount on top of %s (should be %s)\n", mptr->dir, homeusercfg);
183 exit(1); 183 if (strncmp(mptr->fstype, "tmpfs", 5) != 0)
184 } 184 errLogExit("invalid mount on top of %s (filesystem type is %s)\n", mptr->dir, mptr->fstype);
185 if (strncmp(mptr->fstype, "tmpfs", 5) != 0) {
186 fprintf(stderr, "Error: invalid mount on top of %s (filesystem type is %s)\n", mptr->dir, mptr->fstype);
187 exit(1);
188 }
189 185
190 char *p; 186 char *p;
191 if (asprintf(&p, "%s/client.conf", homeusercfg) == -1) 187 if (asprintf(&p, "%s/client.conf", homeusercfg) == -1)