Re: [PATCH 4/4] media: uvcvideo: Introduce allow_privacy_override
From: Ricardo Ribalda
Date: Tue Nov 18 2025 - 01:21:39 EST
On Mon, 17 Nov 2025 at 22:10, Gergo Koteles <soyer@xxxxxx> wrote:
>
> Hi Ricardo,
Hi Gergo
>
> On Mon, 2025-11-17 at 20:14 +0000, Ricardo Ribalda wrote:
> > + if (uvc_is_privacy_mapping(xmap) && !uvc_allow_privacy_override_param) {
> > + pr_warn_once("uvcvideo: Privacy related controls can only be mapped if param allow_privacy_override is true\n");
> > + return -EINVAL;
> > + }
> > +
>
> To really prevent the LED from being turned off, it should also be
> added to uvc_xu_ctrl_query.
Will add in in v2. Thanks.
I wanted to get the ball rolling first :)
>
> But why has it become so important after 10+ years that it cannot be
> turned off on Linux? What has changed?
> The majority of users use open-source software, they can view the
> source at any time.
Most users expect that the led is always on when the camera is active.
I think the usecases where the led should not be turned on are spooky
or very limited.
Even if you use open-source software, when it parses user generated
data, there is a risk for bugs. If there is a bug the only thing
protecting the security of the camera is the membership of the video
group which is a very low barrier. And once you manage to change the
LED behaviour will persist in other unrelated apps.
With the current proposal you need to actively enable the
privacy_override_param, which typically requires root access.
Regards!
>
>
> Gergo
--
Ricardo Ribalda