Sunday, 1 March 2026

Re: On the unfortunate need for an "age verification" API for legal compliance reasons in some U.S. states

On Sun, 2026-03-01 at 16:08 -0500, Aaron Rainbolt wrote:
On Sun, 1 Mar 2026 21:51:15 +0100
Tomáš Zíma <tomas@tzima.cz> wrote:

 A root-owned file won't be accessible to sandboxed applications
such as Firefox running under Flatpak. 

I would imagine something like this:

1. Extend adduser to ask for the user's date of birth. (GUI
installers/tool would have to ask for this extra field too.) 2.
Generate root-owned file containing the birth day, as suggested.

This would be somewhat problematic for custom implementations that want
to avoid storing the user's real date of birth and store only the age
bracket. Whonix would want to do this for anti-fingerprinting purposes.
I suppose the root-owned file could be generated with a static age
bracket and the date of birth field could be empty. Then the cron job
would simply skip updating the bracket if the date-of-birth field was
empty.

3. Regenerate a root-owned, user-readable (non-writeable) file
containing the user's "age bracket" once per day via cron. The path &
its format (e.g. "UNDER_13") would be the API. Alternatively, to make
it more portable, a script get-age-bracket could be provided. 4.
Making the file/script available to sandboxes is a matter of
configuration.

I don't think XDG is a good place to implement this.

My main motivation for proposing that this be done in XDG is to make an
effort to make something that can be adopted more-or-less widely in the
end. It's definitely true that every OS could implement something
semi-bespoke like suggested here (or maybe this mechanism could end up
the standard). Personally I'd be perfectly happy with that solution,
but I don't think that's what the people who drafted the bill had in
mind when they wrote it, and I'd like for Whonix to not come under fire
for doing things "the wrong way". Even if ultimately no one wants a
standardized solution, we can say we tried.

--
Aaron

I am also not a lawyer but the law seems like it could easily be challenged and likely run afoul of privacy laws here in the US. The technical ramifications and enforcement of them can't be implemented in a way that wouldn't run afoul of privacy related rights (yes, even children have privacy rights) and also present a security quagmire. Further it puts the onus all on the "developer" or OS vendor to essentially keep track and obey "signals", or be fined. The spirit of the laws existence is to protect children but the implementation of this or a path-forward almost seems farcical to discuss. It's very clear it's drafting and implementation had no one who understands how this works in the room, and if they were, they were summarily ignored. Getting ahead of it as you are, whatever solution, it won't matter, because every larger distro is likely to implement their own way-to-do and same with every smaller one, and of course there will be those that ignore this completely or stop distributing in California and states that adopt such a law. The law's spirit is in the right place, but it needs revision so it can be implemented appropriately.

Christopher Warner