Post

Replies

Boosts

Views

Activity

Comment on Get executable path from audit token provided by NEFilterDataProvider
Thanks for your help. I forgot to mention that I'm running that code from inside the main app, with the data forwarded from the extension. I'm using SecCodeCopyPath now, but there still seem to be processes that do not return a path, like trustd, rapportd, nsurlsessiond and timed. Is there an explanation for that? Also I don't understand why apps returned a path and executables didn't, if the app sandbox should prevent me from accessing anything on disk.
Mar ’23
Comment on Reading Finder Info ATTR_CMN_FNDRINFO with getattrlistbulk
Thanks for your input. I would also rather use FileManager, but not all file properties I need are available on all macOS versions I'm currently supporting. In particular, the file identifier or inode, URLResourceKey.fileIdentifierKey, was only recently added in macOS 13.3, almost 3 years after I filed the enhancement request with Feedback Assistant. I understand that it would be sufficient to pass one of those structs to readUnaligned. What would be the correct way of importing them?
Topic: App & System Services SubTopic: General Tags:
Apr ’23
Comment on Setting URLResourceKey.fileSecurityKey raises error on some systems
Thanks for your help. During my own tests I could never reproduce an error, regardless whether the permissions were successfully set (on my boot drive) or not (on the external exFAT drive). I would just like to avoid attempting to set the permissions if it will result in an error. Do you think checking for ‘.volumeSupportsExtendedSecurityKey’ should be enough? In my case it returns ‘false’ but attempting anyway doesn’t result in an error, but maybe it would avoid errors on other systems?
Topic: App & System Services SubTopic: General Tags:
Apr ’23
Comment on How to install macOS 14 Sonoma or 13 Ventura on an external partition
I tried reinstalling Ventura on my external partition from the recovery one and it seemed to prepare the installation just fine, but then it rebooted into my main Ventura partition. Selecting the newly created Ventura partition from the startup disks makes the indeterminate progress indicator spin for a couple seconds, then it disappears again and nothing happens, just like when installing Ventura with the dmg installer. In my case, installing Ventura or Sonoma seems impossible.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’23
Comment on Get executable path from audit token provided by NEFilterDataProvider
Hi, sorry for my late answer. It seems that the developer forums started again not sending notifications for replies. That was indeed a copy-paste error. The original code is identical with the one I posted here except for return nil which really is return url.path. I also noticed another typo: I wrote "have a non-nil path" but of course it should be "have a nil path". I just checked again on macOS 14 and trustd is still insecure, along with wifivelocityd and fmfd.
Oct ’23