Autoimport issue with Catalina

All your general support questions for OpenZFS on OS X.

Re: Autoimport issue with Catalina

Postby lundman » Wed Dec 18, 2019 3:48 pm

Th script runs bash, so you'd have to give permission to bash I would have thought.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Autoimport issue with Catalina

Postby dabrahams » Sun Dec 29, 2019 10:13 am

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
dabrahams
 
Posts: 10
Joined: Sun Jun 19, 2016 1:06 pm

Re: Autoimport issue with Catalina

Postby lundman » Sun Jan 05, 2020 4:11 pm

I wonder if it can be fine tuned to just "zpool" and "zfs.util" commands, instead of "bash" as a whole.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Autoimport issue with Catalina

Postby glessard » Mon Jan 06, 2020 2:30 pm

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).
glessard
 
Posts: 17
Joined: Thu Mar 27, 2014 11:27 am

Re: Autoimport issue with Catalina

Postby lundman » Mon Jan 06, 2020 5:20 pm

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.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Autoimport issue with Catalina

Postby glessard » Tue Jan 07, 2020 9:49 am

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!
glessard
 
Posts: 17
Joined: Thu Mar 27, 2014 11:27 am

Previous

Return to General Help

Who is online

Users browsing this forum: No registered users and 28 guests