[GH-ISSUE #7053] Split noaudio to nosound and nomic #3466

Open
opened 2026-05-05 10:00:56 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @ghost on GitHub (Feb 2, 2026).
Original GitHub issue: https://github.com/netblue30/firejail/issues/7053

I don't trust browser (Firefox) thus I firejail it with bunch of rules. One thing I am mising is noaudio because if I use it I would not watch any video with sound. But I want to restrict only microphone capability. Currently your software restrict both in/out with this rule. Consider separating into two, so the user can have more precise control?

rule.conf;

# block out audio
nosound
# block microphone (audio-in)
#  nomic
#  (or nomicrophone?)

Describe the solution you'd like

Set noaudio and lose any audio output :-(

Describe alternatives you've considered

N/A

Additional context

N/A

Environment

  • Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"): Debian 13
  • Version of Firejail (firejail --version): version 0.9.74
  • If you use a development version of firejail, also the commit from which it:
    was compiled (git rev-parse HEAD):
Originally created by @ghost on GitHub (Feb 2, 2026). Original GitHub issue: https://github.com/netblue30/firejail/issues/7053 ### Is your feature request related to a problem? Please describe. I don't trust browser (Firefox) thus I firejail it with bunch of rules. One thing I am mising is `noaudio` because if I use it I would not watch any video with sound. But I want to restrict only microphone capability. Currently your software restrict both in/out with this rule. Consider separating into two, so the user can have more precise control? rule.conf; ``` # block out audio nosound # block microphone (audio-in) # nomic # (or nomicrophone?) ``` ### Describe the solution you'd like Set `noaudio` and lose any audio output :-( ### Describe alternatives you've considered N/A ### Additional context N/A ### Environment - Name/version of the Linux distribution (e.g. "Ubuntu 20.04" or "Arch Linux"): Debian 13 - Version of Firejail (`firejail --version`): version 0.9.74 - If you use a development version of firejail, also the commit from which it: was compiled (`git rev-parse HEAD`):
gitea-mirror added the
enhancement
label 2026-05-05 10:00:56 -06:00
Author
Owner

@rusty-snake commented on GitHub (Feb 2, 2026):

Does anyone have an idea for a technical solution? Otherwise we can close IMHO.

<!-- gh-comment-id:3836090279 --> @rusty-snake commented on GitHub (Feb 2, 2026): Does anyone have an idea for a technical solution? Otherwise we can close IMHO.
Author
Owner

@ghost commented on GitHub (Feb 14, 2026):

technical solution

DYM:

void disable_sound() {
system("amixer set Master mute");
system("amixer -D pulse set Master mute");
}

disable_microphone() {
system("amixer set Capture nocap");
system("amixer -D pulse set Capture nocap");
}
<!-- gh-comment-id:3901161702 --> @ghost commented on GitHub (Feb 14, 2026): > technical solution DYM: ``` void disable_sound() { system("amixer set Master mute"); system("amixer -D pulse set Master mute"); } disable_microphone() { system("amixer set Capture nocap"); system("amixer -D pulse set Capture nocap"); } ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#3466
No description provided.