elementary / switchboard-plug-parental-controls

Switchboard Screen Time & Limits Plug
https://elementary.io
GNU General Public License v3.0
11 stars 14 forks source link

Use setfacl for restricting access to apps for specifc user #28

Closed donadigo closed 4 years ago

donadigo commented 7 years ago

We can use setfacl command line utility to set specific permissions only for a specific user. This should remove the the need for the C kernel communication code and also all the code that's responsible for handling opening a restricted application. Showing the admin or error dialog should be then just handled by Slingshot and Plank themselves. The restricted application won't be accessible from either bash and file manager since the executable will have the right permissions set for that.