aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/pulseaudio.c
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2021-05-03 01:09:05 +0200
committerLibravatar smitsohu <smitsohu@gmail.com>2021-05-03 01:20:53 +0200
commit923d7ada73f9600cda12a4ceb59b90928e4ce0d6 (patch)
tree834d6a23c22ad5e7fb1b74d4c25c3a6f6d462584 /src/firejail/pulseaudio.c
parentenhance clean_pathname function (diff)
downloadfirejail-923d7ada73f9600cda12a4ceb59b90928e4ce0d6.tar.gz
firejail-923d7ada73f9600cda12a4ceb59b90928e4ce0d6.tar.zst
firejail-923d7ada73f9600cda12a4ceb59b90928e4ce0d6.zip
introduce safer_openat function
Diffstat (limited to 'src/firejail/pulseaudio.c')
-rw-r--r--src/firejail/pulseaudio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/pulseaudio.c b/src/firejail/pulseaudio.c
index 4b9203c36..a50134893 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;