In `man fs_snapshot_create` is stated "All snapshot functions require superuser privileges and also require an additional entitlement."
Which entitlement is it?
Background:
I want to write a tool to create snapshots without `tmutil localsnapshot /` because I noticed that these snapshots are deleted randomly. So I had the idea to check if this only applies to snapshots created with `tmutil` or to APFS-snapshots in general... if it's `tmutil`-related I could circumvent it by using my own app – because for me snapshots are pretty useless if they vanish magically.
The entitlement is a special entitlement that Apple that developers can request by contacting DTS. Note that it's currently only being granted to backup application developers and only after very close review.
One other note- the current man page is not 100% accurate. fs_snapshot_list does NOT require the enitlement and can be used by any app. However, if you're looking at the data it returns keep in mind that the size it returns is the size of the snapshot metadata, NOT the size that will be freed if/when that snapshot it deleted.
-Keivn