mirror of https://github.com/oxen-io/session-ios
Remove slow file protection updates from launch path
To avoid blocking launch, file protection is now updated async for most moved files. Out of paranoia, the database files are also update redundantly on a sync code path. It's still critical that we update permissions recursively for two reasons: 1. Updating a containing directories FileProtection does not affect existing files in that directory. 2. Because we've changed the containers default file protection level (from unspecified to NSFileProtectionComplete), some existing files will have there file protection updated upon launching Signal 2.20. It's not clear to me which files this affects, and I haven't found any relevant documentation, but from observation, it seems to affect any top-level files in the container. Regardless, we're now doing the right thing: after launching 2.20, ensure all file permissions are what we expect. Also removed no-op file protection on legacy db files. They've already been moved by the time this method runs in AppSetup. // FREEBIEpull/1/head
parent
6eb1ce682a
commit
033505afd7
Loading…
Reference in New Issue