Full disk access using macOS privacy protection support
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- macos, objective-c
- Domain
- desktop, operating-systems, security
Research direction
Start by reproducing the failure when launching /Applications/Syncthing.app and compare it with the terminal executable; use Console.app to inspect the macOS privacy denial. Done means the macOS-launched application handles the required Full Disk Access situation or clearly reports the privacy-protection cause instead of only showing the scan error.
Written by the indexing model from the issue text.
Description
Hi,
macOS Mojave introduced additional protection aimed towards privacy. It means that application does not have access to things like camera, contacts, photos library, etc. by default. In case of photos library, the files and folder permissions seems right, there is no ACLs and still the Syncthing cannot scan the folder with an error:
2019-02-21 22:28:03 Scanner (folder xsxxx-xxxxx, file "."): scan: open /Users/user/Pictures/Biblioteka Zdjęcia.photoslibrary/Masters: operation not permitted
Interestingly and confusingly, the .stfolder is created. The Console.app tells a little more if someone know what to look at:
Sandbox: syncthing(757) System Policy: deny(1) file-read-data /Users/user/Pictures/Biblioteka Zdjęcia.photoslibrary/Masters
There are two workarounds (at least two known to me):
-
Run Syncthing executable from terminal.
$ /Applications/Syncthing.app/Contents/MacOS/Syncthing
Note, that the below form will not work, it will have the same issue as Syncthing started by double click or auto started:
$ open /Applications/Syncthing.app
-
Go to Sytem settings -> Security & privacy -> Privacy, choose Full access to disk category and add Syncthing (the names may be different, I have polish version and translated back to english). This will work with Syncthing started in any way.
Note, that adding Syncthing to just Photos category is not possible. From what I have read the application must declare in a manifest that it requires the access and then explicitly ask user to grant it.
So I think that ideally Syncthing would ask user for permission to access photos library in such case. Less ideally, the error would mention that this may be the issue with macOS privacy protection (I do not know if this is official name). Otherwise it is really hard to find out what is going on. Especially for someone that do not know about that macOS feature.
The Syncthing-macos version is 1.0.0-2, Syncthing version is 1.0.1, macOS is Mojave version 10.14.3
- Dominant language
- Objective-C
- Stars
- 4k
- Forks
- 202
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from syncthing/syncthing-macos
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
syncthing/syncthing-macos#303 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 58/100
syncthing/syncthing-macos#301 ·
-
bug needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 48/100
syncthing/syncthing-macos#295 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
syncthing/syncthing-macos#289 · 1 comment ·
-
v2.0.15: Model initialization blocks indefinitely when launched via launchd (macOS LaunchAgent)Openbug should reproduce
Difficulty 4/5 3-5 days Newbie friendliness 45/100
syncthing/syncthing-macos#285 ·
All issues in syncthing/syncthing-macos
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
area-accessibility bug os-macos
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AvaloniaUI/Avalonia#22495 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Countly/countly-sdk-ios#485 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100