diff options
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r-- | src/firejail/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index b0d5dac17..e3dab561c 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -3217,13 +3217,18 @@ int main(int argc, char **argv, char **envp) { | |||
3217 | 3217 | ||
3218 | gid_t g; | 3218 | gid_t g; |
3219 | if (!arg_nogroups || !check_can_drop_all_groups()) { | 3219 | if (!arg_nogroups || !check_can_drop_all_groups()) { |
3220 | // add audio group | 3220 | // add audio groups |
3221 | if (!arg_nosound) { | 3221 | if (!arg_nosound) { |
3222 | g = get_group_id("audio"); | 3222 | g = get_group_id("audio"); |
3223 | if (g) { | 3223 | if (g) { |
3224 | sprintf(ptr, "%d %d 1\n", g, g); | 3224 | sprintf(ptr, "%d %d 1\n", g, g); |
3225 | ptr += strlen(ptr); | 3225 | ptr += strlen(ptr); |
3226 | } | 3226 | } |
3227 | g = get_group_id("pipewire"); | ||
3228 | if (g) { | ||
3229 | sprintf(ptr, "%d %d 1\n", g, g); | ||
3230 | ptr += strlen(ptr); | ||
3231 | } | ||
3227 | } | 3232 | } |
3228 | 3233 | ||
3229 | // add video group | 3234 | // add video group |