Page 2 of 2

Re: Autoimport issue with Catalina

PostPosted: Wed Dec 18, 2019 3:48 pm
by lundman
Th script runs bash, so you'd have to give permission to bash I would have thought.

Re: Autoimport issue with Catalina

PostPosted: Sun Dec 29, 2019 10:13 am
by dabrahams
glessard wrote:I wonder whether this has something to do with my mount point.


I doubt it. My pool is mounted under /Users/Shared and I too needed to grant full disk access to bash, to get auto import to work.
https://github.com/openzfsonosx/zfs/issues/743

Re: Autoimport issue with Catalina

PostPosted: Sun Jan 05, 2020 4:11 pm
by lundman
I wonder if it can be fine tuned to just "zpool" and "zfs.util" commands, instead of "bash" as a whole.

Re: Autoimport issue with Catalina

PostPosted: Mon Jan 06, 2020 2:30 pm
by glessard
I have tried giving full disk access to just "zpool", but that doesn't work. Also giving privileges to "zfs" and "/usr/local/libexec/zfs/launchd.d/zpool-import-all.sh" doesn't do anything either. Where is `zfs.util` supposed to live? (again, openzfs 1.9.3 on 10.15.2).

Re: Autoimport issue with Catalina

PostPosted: Mon Jan 06, 2020 5:20 pm
by lundman
It is in /Library/Filesystems/zfs.fs/Contents/mumble/zfs.util - and it is run by diskarbistrationd. Although, you can leave that until after import works, as it "should" only affect the creation of /dev/disk proxy nodes, i think.

The only command that zpool-import-all.sh runs is zpool, so it is odd that bash requires permission, and not zpool. I wonder how that whole security system works now.

Re: Autoimport issue with Catalina

PostPosted: Tue Jan 07, 2020 9:49 am
by glessard
Thanks for pointing out the location; I searched for the wrong thing.
"/Library/Filesystems/zfs.fs/Contents/Resources/zfs_util" is it. I did try giving it (and its sibling mount_zfs) privileges, and that also didn't do anything.

The magic incantation is clearly to give /bin/bash full disk access; why that is would be nice to know!