SELinuxDenyPtrace and security by default
SELinuxDenyPtrace and security by default
Posted Apr 12, 2012 6:15 UTC (Thu) by slashdot (guest, #22014)In reply to: SELinuxDenyPtrace and security by default by dlang
Parent article: SELinuxDenyPtrace and security by default
You open files like this:
1. User clicks Open in LibreOffice
2. LibreOffice asks GTK+ to run the Open dialog
3. GTK+ doesn't open the dialog, but instead sends a request via D-Bus to the session file manager
4. The session file manager opens the Open dialog
5. The user selects the file to open
6. The session file manager instructs the kernel LSM to grant access to the user-selected path to LibreOffice
7. The session file manager gives the user-selected path (either as a path, or as an FD over AF_UNIX that becomes /proc/self/fd/#) back to LibreOffice's GTK+ via D-Bus, which then gives it to LibreOffice
8. LibreOffice opens the file
Of course, this also needs a properly designed windows manager that doesn't let random clients simulate keystrokes and other nefarious stuff.
The game can try to do the same, but the user is unlikely to choose his own personal files when asked about which file to open.
Of course, there's a bunch of other scenarios that need to be handled, but it's all fixable with minimal or no changes to applications.