2.0.0-release: System Policy prevents saving stuff

All your general support questions for OpenZFS on OS X.

2.0.0-release: System Policy prevents saving stuff

Postby poolparty » Thu Jan 28, 2021 8:11 am

Dear fellow Ooo users,

Been trying out the 2.0.0 release candidate (the one posted on 2020-12-20) on Big Sur/Intel for a few weeks now.
One major issue for me is System Policy seemingly arbitrarily preventing most platform binaries to save stuff.
For example, it says things like:

Code: Select all
System Policy: Preview(29720) deny(1) file-read-data FULL_PATH_TO_FILE_I_HAVE_OPENED


Or, when I try to delete a file in Finder:

Code: Select all
System Policy: dirhelper(43642) deny(1) file-read-data /Users/claudia/Downloads


This happens with various platform binaries, even `cfprefsd`.

My system volume runs on APFS; my /home/claudia is a ZFS mount. This combination has worked for years until I did the Big Sur upgrade.
My other account (which I’m using to import the pool and mount the datasets) is on APFS and works just fine.

What would be a good first step to debug this so I can figure out whether it’s a ZFS thing or a Big Sur thing?

Any help is appreciated, thanks in advance!
Attachments
Es1I6pdVoAgyTS_.jpg
Screenshot of messages that say things like System Policy: Preview(29720) deny(1) file-read-data
Es1I6pdVoAgyTS_.jpg (105.87 KiB) Viewed 4336 times
User avatar
poolparty
 
Posts: 26
Joined: Mon Apr 30, 2018 11:34 am

Re: 2.0.0-release: System Policy prevents saving stuff

Postby poolparty » Thu Feb 18, 2021 7:34 am

Still affected by this issue. Please help me understand how to debug this. Absolutely no clue where to start. Any idea hugely appreciated! Thanks!
User avatar
poolparty
 
Posts: 26
Joined: Mon Apr 30, 2018 11:34 am

Re: 2.0.0-release: System Policy prevents saving stuff

Postby poolparty » Tue Mar 16, 2021 11:49 am

Still would be deeply grateful for any idea.

Things used to work fine for many years until I upgraded to 2.0. I’ve been unable to use most apps normally ever since.
What can I do to enable anyone to help?
User avatar
poolparty
 
Posts: 26
Joined: Mon Apr 30, 2018 11:34 am

Re: 2.0.0-release: System Policy prevents saving stuff

Postby FadingIntoBlue » Tue Mar 16, 2021 2:03 pm

Still would be deeply grateful for any idea.

Things used to work fine for many years until I upgraded to 2.0. I’ve been unable to use most apps normally ever since.
What can I do to enable anyone to help?


I'm not sure what is going on, but can at least ask some questions that might help. I'm assuming you are OK using terminal:

What is the name of your pool? - the output of
Code: Select all
zfs list
will give you that and the filesystems on it. I don't want to assume the filesystem or pool is claudia

What does
Code: Select all
zfs get all
tell you? Specifically, what are the results for these properties:

Code: Select all
YourPool/Yourfilesystem            com.apple.browse       on                                 default
YourPool/Yourfilesystem            com.apple.ignoreowner  on                                 local
YourPool/Yourfilesystem            com.apple.mimic_hfs    on                                 local


It does sound like something to do with permissions, but whether in macOS or zfs isn't clear to me, on what you have given us so far.
FadingIntoBlue
 
Posts: 106
Joined: Tue May 27, 2014 12:25 am

Re: 2.0.0-release: System Policy prevents saving stuff

Postby poolparty » Wed Mar 17, 2021 2:34 pm

My filesystem is local/home/claudia. I have four nested sub-filesystems so my snapshot backups don’t include too much volatile stuff. Those are mounted automatically along with the main one.

Code: Select all
$ zfs list
NAME                           USED  AVAIL     REFER  MOUNTPOINT
local                          230G  95.7G      176K  none
local/home                     230G  95.7G      176K  none
local/home/claudia             230G  95.7G      112G  /Users/claudia
local/home/claudia/caches     5.12G  95.7G     5.12G  /Users/claudia/Library/Caches
local/home/claudia/downloads  11.3G  95.7G     11.3G  /Users/claudia/Downloads
local/home/claudia/images     44.5G  95.7G     44.5G  /Users/claudia/Images
local/home/claudia/rambox     2.54G  95.7G     2.54G  /Users/claudia/Library/Application Support/RamboxPro


Hmm, I remember turning on com.apple.mimic_hfs years ago (otherwise, iCloud would misbehave).
So I’m quite surprised to find com.apple.mimic_hfs turned off now:

Code: Select all
$ zfs get -r -t filesystem com.apple.browse,com.apple.ignoreowner,com.apple.mimic_hfs local/home/claudia
NAME                          PROPERTY               VALUE                  SOURCE
local/home/claudia            com.apple.browse       on                     default
local/home/claudia            com.apple.ignoreowner  off                    default
local/home/claudia            com.apple.mimic        off                    default
local/home/claudia/caches     com.apple.browse       on                     default
local/home/claudia/caches     com.apple.ignoreowner  off                    default
local/home/claudia/caches     com.apple.mimic        off                    default
local/home/claudia/downloads  com.apple.browse       on                     default
local/home/claudia/downloads  com.apple.ignoreowner  off                    default
local/home/claudia/downloads  com.apple.mimic        off                    default
local/home/claudia/images     com.apple.browse       on                     default
local/home/claudia/images     com.apple.ignoreowner  off                    default
local/home/claudia/images     com.apple.mimic        off                    default
local/home/claudia/rambox     com.apple.browse       on                     default
local/home/claudia/rambox     com.apple.ignoreowner  off                    default
local/home/claudia/rambox     com.apple.mimic        off                    default
User avatar
poolparty
 
Posts: 26
Joined: Mon Apr 30, 2018 11:34 am

Re: 2.0.0-release: System Policy prevents saving stuff

Postby poolparty » Wed Mar 17, 2021 2:43 pm

For good measure, here’s the full set of properties for the home filesystem (minus custom properties):

Code: Select all
$ zfs get -o property,value,source all local/home/claudia | grep -vE '^(cat|org)'
PROPERTY                                         VALUE                                                                       SOURCE
type                                             filesystem                                                                  -
creation                                         So Mär  4  2:07 2018                                                       -
used                                             230G                                                                        -
available                                        95.7G                                                                       -
referenced                                       112G                                                                        -
compressratio                                    1.07x                                                                       -
mounted                                          yes                                                                         -
quota                                            none                                                                        default
reservation                                      none                                                                        default
recordsize                                       128K                                                                        default
mountpoint                                       /Users/claudia                                                              local
sharenfs                                         off                                                                         default
checksum                                         on                                                                          default
compression                                      off                                                                         default
atime                                            off                                                                         inherited from local
devices                                          on                                                                          default
exec                                             on                                                                          default
setuid                                           on                                                                          default
readonly                                         off                                                                         default
zoned                                            off                                                                         default
snapdir                                          hidden                                                                      local
aclmode                                          discard                                                                     default
aclinherit                                       restricted                                                                  default
createtxg                                        321                                                                         -
canmount                                         on                                                                          default
xattr                                            on                                                                          default
copies                                           1                                                                           default
version                                          5                                                                           -
utf8only                                         on                                                                          -
normalization                                    formD                                                                       -
casesensitivity                                  insensitive                                                                 -
vscan                                            off                                                                         default
nbmand                                           off                                                                         default
sharesmb                                         off                                                                         default
refquota                                         none                                                                        default
refreservation                                   none                                                                        default
guid                                             6914361914910644062                                                         -
primarycache                                     all                                                                         default
secondarycache                                   all                                                                         default
usedbysnapshots                                  54.6G                                                                       -
usedbydataset                                    112G                                                                        -
usedbychildren                                   63.5G                                                                       -
usedbyrefreservation                             0B                                                                          -
logbias                                          latency                                                                     default
objsetid                                         56                                                                          -
dedup                                            off                                                                         default
mlslabel                                         none                                                                        default
sync                                             standard                                                                    default
dnodesize                                        legacy                                                                      default
refcompressratio                                 1.00x                                                                       -
written                                          12.4G                                                                       -
logicalused                                      231G                                                                        -
logicalreferenced                                100G                                                                        -
volmode                                          default                                                                     default
filesystem_limit                                 none                                                                        default
snapshot_limit                                   none                                                                        default
filesystem_count                                 none                                                                        default
snapshot_count                                   none                                                                        default
snapdev                                          hidden                                                                      default
acltype                                          nfsv4                                                                       default
context                                          none                                                                        default
fscontext                                        none                                                                        default
defcontext                                       none                                                                        default
rootcontext                                      none                                                                        default
relatime                                         off                                                                         default
redundant_metadata                               all                                                                         default
overlay                                          on                                                                          default
encryption                                       off                                                                         default
keylocation                                      none                                                                        default
keyformat                                        none                                                                        default
pbkdf2iters                                      0                                                                           default
special_small_blocks                             0                                                                           default
com.apple.browse                                 on                                                                          default
com.apple.ignoreowner                            off                                                                         default
com.apple.mimic                                  off                                                                         default
com.apple.devdisk                                poolonly                                                                    default
User avatar
poolparty
 
Posts: 26
Joined: Mon Apr 30, 2018 11:34 am

Re: 2.0.0-release: System Policy prevents saving stuff

Postby FadingIntoBlue » Thu Mar 18, 2021 5:44 pm

Great. So time to experiment a little:

you could probably reset the com.apple.mimic to hfs for the whole pool. There is a change in options for this between 1.9.4 and 2.0
com.apple.mimic from ZFS V2.00 has off|hfs|apfs as its options instead of V1.94 off|on
that might be why it has reset when you upgraded

then try:
set com.apple.ignoreowner to on for one of your folders, say home/claudia/downloads


test whether that changes the error messages if you attempt to write to it, save a file to it?

I'm assuming you might have an ownership issue, given that you have mounted the filesystem with your other account. I'm likely to get lost in the fine details, but possibly a unix permissions issue, or alternately an acls issue/conflict between the unix or macOS side
FadingIntoBlue
 
Posts: 106
Joined: Tue May 27, 2014 12:25 am


Return to General Help

Who is online

Users browsing this forum: Google [Bot] and 23 guests