Hello.
I noticed that apple from 10.12 system push to kernel nullfs filesystem, but "forgot" to write mount_nullfs app. So I write this application, and try to mount new volume, but I got message that operation is not permited. I noticed that apple requires from my program to have entitlement "com.apple.private.nullfs_allow" so I add to my project .entitlement file with:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.private.nullfs_allow</key>
<true/>
</dict>
</plist>
but then when I try to launch my app I got "Killed: 9" and in console:
Default 18:38:41.301036 +0100 amfid /Users/***/Library/Developer/Xcode/DerivedData/mount_nullfs-gjwymekzvljjqdbhhrdpoyedjtiz/Build/Products/Debug/mount_nullfs signature not valid: -67050
Default 18:38:45.573339 +0100 kernel proc 23854: load code signature error 4 for file "mount_nullfs"
So I thinking that self-signing program with entitlement "com.apple.private.*" doesn't work?
I don't have developer account that allows me to signing applications, now I only want to test this filesystem (does quotas works etc.) and if everything works ok, I probably buy developer account with signing posibility.
For testing I have SIP disabled.
Can I self-sign code with entitlement com.apple.private.nullfs_allow?