Replies: 1 comment
|
There is an ongoing discussion on xdg mailing list that you are free to participate in. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I think it would be best if various OS distributions could come together and come up with a standardised method, but here is the method(s) I suggest that would need minimal code to implement in Unix systems:
An AGE_ID field can be added to the user database as new field or as an entry in the GECOS field. Discussion will be had as to which way is ideal. Non-human users will simply have the most significant bit set to 1 to denote that age verification is not required for that user. Various interfaces of account creation tools will need to be modified to conform to AB 1043, prompting the user for their age when appropriate. Default value, as well as the value entered whensetting up someone else's user should be 0 which serves to denote a user "account" that is not fully set up in respect to age verification.
An I_AID field is added as a new entry to the inode table (which does not seem like a good idea), or as an Extended Attribute (system.age_min, default value of 0). An Extended Attribute seems like the best bet for maximum compatibility across most filesystems (except those like UFS1 that do not use them), but various tools throughout the toolchain such as cp and tar will need to be updated to preserve Extended Attributes, or at least the system.age_min attribute.
At this point, it is up to the Linux Security Module's implementation to conform to AB 1043 in respect age authentication. When a process attempts to access a file, the LSM checks if age verification is required (system.age_min msb is equal to 0) and if so, if the user's AGE_ID is 0 or not. 0 means make a system call to prompt user for their age, and any other value means block access if AGE_ID is not equal to or greater than system.age_min (AB 1043's requirements are now met).
Finally, package managers do the rest. When downloading a package, the package manager calls the LSM to call for access to download the package, and sets the appropriate system.age_min extended attributes for the package's files.
While the LSM is already managing access to files and directories, a developer will need to have their application call the LSM to check for access to start the application. This is completely unnecessary, and is only done to meet the requirements of AB 1043.
Once implemented, we gain a secondary benefit in that file, directory, and resource, local or remote, can be seamlessly age authenticated, essentially allowing parental controls with resilient authentication allowing a parent to set a child's age for their user that is universally applied. A parent can even manually set age minimums to whatever they want for any file, directory, and resource.
Unexpectedly, if we use this minimalist approach, we actually create a framework for robust parental controls.
All reactions