[GH-ISSUE #1286] private-dev for firefox/chrome #874

Closed
opened 2026-05-05 07:01:32 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @msva on GitHub (May 19, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1286

I noticed, you've removed private-dev from firefox and chromium profiles, with a message that it prevents video calls.

Isn't it only because of /dev/video[0-9]* is not present there?
If so, I guess, it can be solved by implementing wildcard whitelisting and adding it in the default profiles. Doesn't it? 😸

Originally created by @msva on GitHub (May 19, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1286 I noticed, you've removed private-dev from firefox and chromium profiles, with a message that it prevents video calls. Isn't it only because of `/dev/video[0-9]*` is not present there? If so, I guess, it can be solved by implementing wildcard whitelisting and adding it in the default profiles. Doesn't it? 😸
gitea-mirror 2026-05-05 07:01:32 -06:00
Author
Owner

@netblue30 commented on GitHub (May 19, 2017):

I added support for /dev/video* inside private-dev, uncommented private-dev in firefox and chromium profiles.

<!-- gh-comment-id:302771567 --> @netblue30 commented on GitHub (May 19, 2017): I added support for /dev/video* inside private-dev, uncommented private-dev in firefox and chromium profiles.
Author
Owner

@Fred-Barclay commented on GitHub (May 19, 2017):

@netblue30 Is there still a way to disable video devices inside profiles?

<!-- gh-comment-id:302789072 --> @Fred-Barclay commented on GitHub (May 19, 2017): @netblue30 Is there still a way to disable video devices inside profiles?
Author
Owner

@msva commented on GitHub (May 19, 2017):

@netblue30 Is there still a way to disable video devices inside profiles?

blacklist /dev/videoN in "custom" profile (/etc/firejail/firefox.local or
~/.config/firejail/firefox)?

// Or does @netblue30 implemented wildcard/regexp in white/blacklist params
already?

<!-- gh-comment-id:302792852 --> @msva commented on GitHub (May 19, 2017): > @netblue30 Is there still a way to disable video devices inside profiles? blacklist /dev/videoN in "custom" profile (/etc/firejail/firefox.local or ~/.config/firejail/firefox)? // Or does @netblue30 implemented wildcard/regexp in white/blacklist params already?
Author
Owner

@Fred-Barclay commented on GitHub (May 19, 2017):

@msva Good thought. That would work but I'm not crazy about having to explicitly blacklist all video devices in all my profiles that currently have private-dev. 😉

@netblue30 Would it be possible/wanted to keep the old behavior of private-dev (no video devices) with a new flag? Something like --private-dev-all? Or perhaps --no-video like the existing --no-sound? I could try to code it in myself it's something you wouldn't mind having.

<!-- gh-comment-id:302818627 --> @Fred-Barclay commented on GitHub (May 19, 2017): @msva Good thought. That would work but I'm not crazy about having to explicitly blacklist all video devices in all my profiles that currently have private-dev. 😉 @netblue30 Would it be possible/wanted to keep the old behavior of private-dev (no video devices) with a new flag? Something like `--private-dev-all`? Or perhaps `--no-video` like the existing `--no-sound`? I could *try* to code it in myself it's something you wouldn't mind having.
Author
Owner

@msva commented on GitHub (May 20, 2017):

@netblue30 Would it be possible/wanted to keep the old behavior of
private-dev (no video devices) with a new flag? Something like
--private-dev-all? Or perhaps --no-video like the existing
--no-sound? I could try to code it in myself it's something you
wouldn't mind having.

Actually, I think, it'd be nicer to make private-dev to support lists like
private-bin and private-etc.
In that case, default behaviour (with no list) would work as before, and for
the cases where you need exact list of devices you'd be able to specify exact
list.

Although, I guess, it's anyway possible with whitelist atm

// although, AFAIK, whitelist still does not support wildcards/regexp :'(

<!-- gh-comment-id:302860370 --> @msva commented on GitHub (May 20, 2017): > @netblue30 Would it be possible/wanted to keep the old behavior of > private-dev (no video devices) with a new flag? Something like > `--private-dev-all`? Or perhaps `--no-video` like the existing > `--no-sound`? I could *try* to code it in myself it's something you > wouldn't mind having. Actually, I think, it'd be nicer to make private-dev to support lists like private-bin and private-etc. In that case, default behaviour (with no list) would work as before, and for the cases where you need exact list of devices you'd be able to specify exact list. Although, I guess, it's anyway possible with whitelist atm // although, AFAIK, whitelist still does not support wildcards/regexp :'(
Author
Owner

@SYN-cook commented on GitHub (May 22, 2017):

Being able to prevent software from accessing a webcam seems quite useful. It might even serve as an alternative to taping webcams on notebooks.

<!-- gh-comment-id:302975777 --> @SYN-cook commented on GitHub (May 22, 2017): Being able to prevent software from accessing a webcam seems quite useful. It might even serve as an alternative to taping webcams on notebooks.
Author
Owner

@Fred-Barclay commented on GitHub (May 22, 2017):

@SYN-cook I've got a working --novideo flag. 🎉 I'll test it some more and if it's still working I'll open a PR for it to be reviewed (my C is abysmal so it needs reviewing by someone much more experienced be 😁 )

EDIT: I'll open the PR now.

<!-- gh-comment-id:303012761 --> @Fred-Barclay commented on GitHub (May 22, 2017): @SYN-cook I've got a working `--novideo` flag. 🎉 I'll test it some more and if it's still working I'll open a PR for it to be reviewed (my C is abysmal so it needs reviewing by someone much more experienced be 😁 ) EDIT: I'll open the PR now.
Author
Owner

@msva commented on GitHub (May 22, 2017):

It might even serve as an alternative to taping webcams on notebooks.

Actually, firejail doesn't save you from trojan horses in firmwares (cpu,
intel's apus (skylake+ needs blob firmware to work properly), bios, whatever).

But, yes, I having idea to combine firejail and, say, mobile OSes for a very
long time already :)

<!-- gh-comment-id:303016822 --> @msva commented on GitHub (May 22, 2017): > It might even serve as an alternative to taping webcams on notebooks. Actually, firejail doesn't save you from trojan horses in firmwares (cpu, intel's apus (skylake+ needs blob firmware to work properly), bios, whatever). But, yes, I having idea to combine firejail and, say, mobile OSes for a very long time already :)
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#874
No description provided.