diff options
author | netblue30 <netblue30@protonmail.com> | 2021-05-18 09:00:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-18 09:00:45 -0500 |
commit | ed7db097bd4eb387cd4583a71ba76cf126e5d8c7 (patch) | |
tree | 58cb4dd296e6ccdab0eb68e972f8919ebcdb5731 /src/firejail/pulseaudio.c | |
parent | Fix #4282 -- Unable to open X display when running firejail chromium command (diff) | |
parent | add /run whitelist support (diff) | |
download | firejail-ed7db097bd4eb387cd4583a71ba76cf126e5d8c7.tar.gz firejail-ed7db097bd4eb387cd4583a71ba76cf126e5d8c7.tar.zst firejail-ed7db097bd4eb387cd4583a71ba76cf126e5d8c7.zip |
Merge pull request #4229 from smitsohu/whitelist2
Whitelist2
Diffstat (limited to 'src/firejail/pulseaudio.c')
-rw-r--r-- | src/firejail/pulseaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/pulseaudio.c b/src/firejail/pulseaudio.c index 97c022bad..1b01a71c6 100644 --- a/src/firejail/pulseaudio.c +++ b/src/firejail/pulseaudio.c | |||
@@ -131,7 +131,7 @@ void pulseaudio_init(void) { | |||
131 | 131 | ||
132 | // if ~/.config/pulse exists and there are no symbolic links, mount the new directory | 132 | // if ~/.config/pulse exists and there are no symbolic links, mount the new directory |
133 | // else set environment variable | 133 | // else set environment variable |
134 | int fd = safe_fd(homeusercfg, O_PATH|O_DIRECTORY|O_NOFOLLOW|O_CLOEXEC); | 134 | int fd = safer_openat(-1, homeusercfg, O_PATH|O_DIRECTORY|O_NOFOLLOW|O_CLOEXEC); |
135 | if (fd == -1) { | 135 | if (fd == -1) { |
136 | pulseaudio_fallback(pulsecfg); | 136 | pulseaudio_fallback(pulsecfg); |
137 | goto out; | 137 | goto out; |