by gbdubs · 2w ago · 0 comments
- Allow the developer to specify the common location(s) that they need access to. Rather than having to have the user select the folder they want to grant access to, have the developer say "this app uses data in these 5 folders, do you want to grant that access" - so much clearer, and useful in cases where an app has to integrate with other apps through the filesystem. - Readonly access. Allow an app to read your files but prevent writes or deletes. - Time limited access. Allow some kind of access and allow the user to auto-expire it rather than having to remember it exists. - Allow for negative access (i.e. allow labels or tags on directories to mark them as sensitive and prevent access by default - browsers could do this for their cookie stores, `~/.ssh` could ship with it as a default, etc.)
Apple could have used this opportunity to think through the question of "why do developers ask for filesystem access, and how can we allow legitimate usage through well scoped access controls", but instead they built a bad API that will (I would guess) not actually allow developers to be more judicious or achieve any of the user-safety benefits.
Apple needs to learn to talk to (and listen to) developers.
However users are very happy with it.
> developers will continue to feel like they need to request these expansive permissions
And users will continue to seek alternatives, or risk denying said permission.
I don't use any apps that require this permission, and would never use any app that required this permission without an extremely good explanation of why it was needed.
Until that happens, no.
> Allow the developer to specify the common location(s) that they need access to.
Why not just back up: How does the developer know the location. What's common about it?
I'm so not sure they need access to anything yet.
I use Spotify, Slack, Zoom, and WhatsApp: All of them have asked for it, but they all seem to work fine if I deny them access to full-disk access. So I am confident your issue is a non-issue for me and millions of people like me.
I don't have any apps that need this, so I do not want you to blow past this so quickly with the prior that just because you are a developer who has a use case that requires this, it is still my computer and you don't get any time on it while you're asking for this.
> Readonly access. Allow an app to read your files but prevent writes or deletes
Again: Absolutely not. There are no files I want your app to have access to without an explanation.
> Allow for negative access (i.e. allow labels or tags on directories to mark them as sensitive and prevent access by default - browsers could do this for their cookie stores, `~/.ssh` could ship with it as a default, etc.)
I know Linux works this way, and it only ever works for stuff that the integrator ships (i.e. on Red Hat, they are called seLinux labels), so it's not something that independent publishers have ever done, and to my knowledge, despite it being so easy, not one independent developer has ever used them in the way you say, despite such a thing being possible for more than 25 years.
> Apple needs to learn to talk to (and listen to) developers.
That sounds like your opinion. I think developers need to explain better what they actually want and why.
You have what you ask for on other platforms, so I think if your ideas were so right you would have simply ignored Apple, so I think Apple doesn't need to do shit for you, and you have some explaining to do.
MacOS is also used by power users, though. The kind of people who were drawn to it being a user-friendly UNIX and then stayed. I think it's reasonable for them to ask for a more granular permission system that actually supports their usecases.
Regular users need a way of giving informed consent.
The existing system reminds me of Windows; poorly dialogs designed without any thought for regular users whatsoever, which causes everybody to grant access to everything, as a knee jerk response.
This is the unsolved problem. Neither the platforms nor app developers are aligned on solving it between themselves, much less aligned with user interests. My pet peeves:
- Apps requesting way broader or more general access for reasons that are unexplained, whether due to innocent oversight or actual malice.
- Platforms aggressively segregating access into broad categories (to reduce user fatigue), which compounds the problem of broad requests, and then preventing users from being able to override those.
- Platform giving special bypasses to their "valued partners", and refusing to inform the users or give means to disable this access (or grant to apps of their choice).
Now wrt. platforms, I get the arguments and I'm sympathetic, even though most of them don't apply to majority of customers. The end result is still the same: users don't get to offer informed consent, and have little to no control where it actually matters.
No. You should ask them to explain their usecases because you are totally confused about what this is about.
I've been using UNIX since the 1980s, and other than a brief stint at Microsoft in the late 1990s, I haven't used anything else. I have a few apps in the app stores, and none of them need me to ask their users for this permission.
My software has run on billions of machines, including almost certainly yours, and so with all due respect, it is as power-user as they come that is telling you that I don't need the ability to ship software to end-users with any of the functionality that is unlocked by this permission, and as far as I know nobody else does.
I am willing to be convinced I am wrong, but it is incredibly foolish that you have allowed yourself to be convinced of this so casually: Don't you think someone who claims to be such a "power user" should be able to explain to you why they need it?
No, they’re not. They find it really annoying that apps ask them for overbroad permissions
Being informed of such dangerous acts, I welcome.
It's dangerous to look at usability through the lens of your understanding and expertise and not the average user.
You're a bit confused. The options here are not no access or automatic read only access without an expansion, but full access or read only access (the explanation here is the same and can be arbitrarily bad just like today), so it's strictly an improvement
I use none of these plapps on my Mac, and I've not had issues with the filesystem access APIs.
Xcode has never asked for these permissions though. Pretty sure Xcode *can* read any path in my ~. Without asking.
> I know Linux works this way, and it only ever works for stuff that the integrator ships (i.e. on Red Hat, they are called seLinux labels), so it's not something that independent publishers have ever done, and to my knowledge, despite it being so easy, not one independent developer has ever used them in the way you say, despite such a thing being possible for more than 25 years.
At least I can do it myself via selinux labels or systemd service sandboxing. Apple, the alleged user centrism saints, are yet to provide me with a user-centric way of sandboxing an application. I run browsers and dev shells in microvms on Linux. Those tools get a view of my filesystem that I constrain. Why can't I do the same on macOS? With all the filesystem restrictions they are imposing, they ended up still letting samba read SSH agent UDS - which allowed for a cool vuln where people on your local network could use your SSH keys. Gee, I truly wish those pesky developers actually defined what it is they need upfront so that a user could have a say in how much access these apps get on their system and what data they share.
Apple is the biggest company in the world. They need not your donation of labour.
Xcode isn't sandboxed, so by default it can read most of your FS without asking. However, it's trivial to demonstrate that Xcode does, in fact, need to request Files & Folders permissions to read from certain locations under ~/.
First, I ran `tccutil reset All com.apple.dt.Xcode` to clear out all Xcode TCC permissions. Then, I created a basic Xcode project and added a new "Run Script" build phase. For the script, I entered `ls ~/Downloads`, and pressed the Run button, which presented the standard prompt requesting ~/Downloads access for Xcode.
Granting an app full disk access requires clicking "Bypass System Protections", but none of the other permissions do. Apple has not explained what about this one is fundamentally different that it is "Bypassing" instead of "Allowing" like every other permission.
It also doesn't bypass system permissions because you can still only read files readable to your user. In order to scare the user away from using this feature Apple has told a lie.
It's also critical to recognise that data exfiltration is just as serious a risk as data manipulation. Read-only access doesn't prevent data theft, and time-limited access can't undo it.
> puts control in users' hands rather
These two statements are very much at odds with each other.
Non-technical users generally don't know which folder the app needs. It will be confusing for them. If anything this feature works best for *technical* users, that know, or have the ability to look up, which folders the application actually needs.
You can export files to an external location and you can import from external locations in this scheme but they will be user directed.
With this scheme, you would teach most users to select NO!!! if any app asks for full disk access or system access.
“My Photoshop plug-in doesn’t work”
“My Outlook macro that creates emails for each PDF in this folder doesn’t work”
“There;s a readme.txt in Matlab’s .app folder, but TextEdit says it doesn’t have permission to read other program’s private data files”
“The only way to back-up our files now, without scary warnings, is to pay Adobe/Apple $lots/mo for each app’s own silo iCloud-based backup service”
Negative access is what came next, applied to all apps. By default, an unsandboxed program can access everything except specific protected directories, and can request access to those directories too, e.g. Documents, Desktop, Photos, other apps' data.
Full Disk Access is the last resort that turns all of that off. Or, well, was.
It's also the only way to access Messages, which might be why certain AI apps request it.
At this point, permissions on Mac is in such a broken state it does not add anything of value. It is extremely common for apps to open up dialog boxes telling you exactly where to go in system settings to grant them access. Malware is just going to do the same, and users are trained to expect it.
Apps ask you to manage the system settings dialog only when they're requesting a very high level of system access and ship outside the app store. That describes a lot of apps that developers like to use (custom window managers etc), but not so many apps normal users will encounter.
When apps do uncover use cases that the permissions system isn't a good fit for, Apple are pretty responsive about adapting the system in backwards compatible ways. For example, AI apps wanting full disk access because they want to read the internal files of a messaging app - not ideal, so Apple have introduced a way to grant access to only specific apps from a modal popup triggered when the app tries to do it, not from the system settings app.
The way this is meant to work, by the way, is that the messaging app cooperates with the apps that want access to messages by exposing an app over XPC. AI apps are going offroad because AI companies in such a mad scramble to ship features and because of the complicated web of corporate relationships - does Meta really want to grant OpenAI access to people's WhatsApp messages on macOS or would they prefer to push users towards Meta Muse, etc. So AI apps bypass the genteel cooperative way and try to suck data out of the app's internal files directly. Apple is standing in the middle trying to mediate this stuff in a reasonable way, and I think they're doing a fine job.
Any sort of malware or malware-ish app (including software from a lot the large tech companies like Meta) will know exactly how to circumvent the protections, and exactly how to get the users consent in the process.
Not quite. Not every apps obeys this and I’m not even sure how. Adobe’s apps all insist on creating an “Adobe” folder in your iCloud-synced Documents folder regardless of file system permissions. You may deny access to every Adobe app under the sun, and they will still create those goddamned folders at launch. Apple’s solutions are not universally implemented and are most definitely not universally obeyed.
The day Apple gives me a way to simply say “fuck you Adobe, you won’t have access to my Documents folder anymore” is the day that these permission models have started to work properly, until then it’s all theatre.
The main reason is that it’s a simple fact-of-life that software needs to be able to interact with other software, with or without permission (e.g. part of my day-job involves LoB integrations between software vendors that either went-out-of-business, despise each other, or live on vendor lock-in and offer no export/import functionality (looking at you, Progress, Clarion, and others…) - my work would be very difficult - but not impossible I’ll admit - if it ran on
(Fwiw, I always follow PLP when creating daemons, their service-principals, and FS ACLs, I’m always amazed at how everyone else (esp. multimillion-dollar ISVs) runs their MSSQL Express instances under SYSTEM, with ‘sa’ enabled, where every install uses the exact same single hardcoded password; often with LAN router port-forwarding on 1433 for “remote support” (don’t forget TeamViewer or Splashtop too). Sorry I’m ranting but the amount of security-incompetence still rampant in the LoB software industry today is flabbergasting)
Many apps already work this way and request access to a single directory, and the best apps (little snitch, arq) give you fine control over what is accessible for what actions.
I see it more as a step in the right direction. They could add separate “read only” flags in the future, for example, and add an API for apps to tell this system component to ask the user to give permission for specific directories (time limited already is there, sort-of, it seems, with the option to ask the user each time, which I assume doesn’t mean “on every read or write call”)
Also, AFAIK most user applications never need this. They can have their own store for ‘their stuff’ and standard file dialogs already open up access to files user pick in them.
"Don't trust developer" is absolutely the right thing to do here, because developers WILL try to trick user into getting them more access than required
Full access is a non sense.
Before, we had to Terminal it, create a user group, chmod this, chmod that, authorize dirs and sub dirs and let it go.
If I can just click dirs directly, I am happy with it (dev and user here).
To the end user a list of directories like ~/Library/Support… is meaningless. This is a misguided approach.
In this case, Apple has prioritised the safety of its end users, I think the page is well written and the implementation is reasonable
In an perfect world such an API would be great. We don't live there unfortunately
1. In the modern day, especially Apple is extremely down on the idea of a block/allow dialog. Their thinking is that most people will simply click allow anytime. They see a dialog without understanding what’s going on.
2. Also, it should be obvious that to a casual user the sensitive paths may look inscrutable. Most people don’t know what /etc/hosts means or ~/.ssh either.
Apple has already taken some (manual) steps in this direction - certain directories under ~/Library/Application Support are inaccessible to other applications without "full disk access". In particular, web browsers and Discord have this protection applied - this is to thwart some common types of session-stealing malware.
https://wojciechregula.blog/post/golden-gate-appdata-protect...
they can’t be trusted with it.