Comment by ashishb
19 days ago
It also has persistent permissions.
Think about it from a real world perspective.
I knock on your door. You invite me to sit with you in your living room. I can't easily sneak into your bed room. Further, your temporary access ends as soon as you exit my house.
The same should happen with apps.
When I run 'notepad dir1/file1.txt', the package should not sneakily be able to access dir2. Further, as soon as I exit the process, the permission to access dir1 should end as well.
A better example would be requiring the mailman to obtain written permission to step on your property every day. Convenience trumps maximal security for most people.
The early version of UAC in Windows did that…
Asking continuously is worse than not asking at all…
Some of the stuff that I install is actually meant to behave like malware.
But fine lock windows down for normal users as long as I can still disable all the security. We don't need another Apple.
I would configure mailman with permanent write access to the mailbox area
That's what I with my sandbox right now
With systemd or firejail it's quite easy to do this sort of thing on linux.
Attempt at real life version (starts with idea they are actually not trustworthy)
> When I run 'notepad dir1/file1.txt', the package should not sneakily be able to access dir2.
What happens if the user presses ^O, expecting a file open dialog that could navigate to other directories? Would the dialog be somehow integrated to the OS and run with higher permissions, and then notepad is given permissions to the other directory that the user selects?
Pretty sure that’s how it works on iOS. The app can only access its own sandboxed directory. If it wants anything else, it has to use a system provided file picker that provides a security scoped url for the selected file.
It's also how it works on macOS and even on modern Windows if you are running sandboxed apps.
Yes, UIDocumentPickerViewController is 10+ years old at this point.
There’s also a similar photos picker (PHPicker) which is especially good from 2023 on. Signal uses this for instance.
[dead]