So, I have actually read the text of California law CA AB1043 and, honestly, I don't hate it. It requires operating systems to let you enter a date when you create a user account and requires a way for software to get a coarse-grained approximation of this that says either 'over 18' or one of three age ranges of under-18s. Importantly, it doesn't require:

  • Remote attestation.
  • Tamper-proof storage of the age.
  • Any validation in the age.

In short, it's a tool for parents: it allows you to set the age of a child's account so that apps (including web browsers, which can then expose via JavaScript or whatever) can ask questions about what features they should expose.

In a UNIX-like system, this is easy to do, with a tiny amount of new userspace things:

  • Define four groups for the four age ranges (ideally, standardise their names!).
  • Add a /etc/user_birthdays file (or whatever name it is) that stores pairs of username (or uid) and birthdays.
  • Add a daily cron job that checks the above file and updates group membership.
  • Modify user-add scripts / GUIs to create an entry in the above file.
  • Add a tool to create an entry in the above file for existing user accounts.

This doesn't require any kernel changes. Any process can query the set of groups that the user is in already.

If a parent wants to give their child root, they can update the file and bypass the check. And that's fine, that's a parent's choice. And that's what I want.

I like this approach far more than things that require users to provide scans of passports and other toxically personal information to be able to use services. If we had this feature, then the Online Safety Act could simply require that web browsers provide a JavaScript API to query the age bracket and didn't work unless it returned 'over 18'.

@david_chisnall And then another state or country passes a law that requires four age ranges, or another one that requires two, but they do not map nicely to the three CA requires.

You have now replicated another timezone mess.

@lerxst @david_chisnall Yeah, like 18 is not even standard across the globe.

@Arcaik 18 is the closest there is to a standard, due to the Convention on the Rights of the Child, which establishes 18 as the default age of majority (but stll allows it to be overridden by local laws). A curious example of another value leaking is how, because 16 used to be the age of majority in Netherlands for a long time, a lot of medical guidelines for trans youths, even in other countries, used to adopt 16 as an explicit age that a person would be able to consent to their gender (until the GOPnik bullies decided to start picking on trans women and children after the Oberge fell).

@lerxst @david_chisnall

@riley @Arcaik @lerxst @david_chisnall
Do you have a source for the 'age of majority in NL used to be 16'?

All I can find is that since the middle ages the age of majority in the Netherlands varied between 25 and 18.

And yes, children get gradually more rights/obligations between ages 12 and 21 in the Netherlands, it isn't black/white.

https://habsburg-legal-services.com/dutch-historical-age-of-majority-or-maturity/

Dutch Historical Age of Majority or Maturity

Dutch Historical Age of Majority versus Age of Maturity and Becoming an Adult Some of these terms can be confusing and are often used to mean the same. But t

@joosteto Not off the top of my head, I'm afraid. My source was some medical treatment guide that I read years and years ago, and don't remember the precise details of it anymore. If that helps, my understanding (from other marginal sources) is, the changeover from 16 to 18 would probably have happened in late 90s or early noughties.

But I could be wrong; if you find a contrary source, I will stand corrected.

@Arcaik
@lerxst @david_chisnall

@joosteto I believe the guidelines were some document published by the Dr Norman Spack's team, FWIW. I'm reasonably confident that they got it right, but, of course, they're doctors, not lawyers. @Arcaik @lerxst @david_chisnall
@riley @Arcaik @lerxst @david_chisnall
I turned 18 in 1988 (in the Netherlands) and I certainly remember that's when I was called an adult, so it must have been before that.

@joosteto Curious. I'll be watching out for a better source, then.

@Arcaik @lerxst @david_chisnall