[quote='788938022, DTS Engineer, /thread/756027?answerId=788938022#788938022']
Are you using hdiutil for that? And, if so, I presume you hide that mount from the user?
[/quote]
Why yes, I am using hdiutil to mount the image. Specifically, I'm using:
(translating Obj-C to pseudocode just for brevity)
diskImagePath = "<path to dmg>"
mountPath = "/Volumes/" + UUID().uuidString
/usr/bin/hdiutil attach "$diskImagePath" -mountpoint "$mountPath" -nobrowse -noautoopen
And, later, to unmount, I'm using:
/usr/bin/hdiutil detach "$mountPath" -force
[quote='788938022, DTS Engineer, /thread/756027?answerId=788938022#788938022']
Your primary concern seems to be the point at which the system ingests your stapled ticket.
[/quote]
That's correct.
More precisely, I'm actually not completely sure what to be scared of in this ecosystem. I definitely want normal security measures to work as intended. This is why I phrased the original question (albeit somewhat confusingly) as "what is the best practice here", rather than "how do I fix this rare problem".
For example, if you were to (hypothetically) come back and say, "in this scenario, a notarized DMG is appropriate because , and you should also do to avoid ", then what that tells me is:
The general approach I'm using today is here to stay, at least for now.
Thus, it's worth my time to add more automated metrics around my hdiutil attach failure (see "Skippable Backstory" in the original post), and file a (useful) bug report.
And, because I'm using the technologies in a recommended way, I'm more likely to get a useful answer back, which is good for me.
On the other hand, if you were to say, "in this scenario, a notarized DMG is bad because , and you should use instead", then what that tells me is:
There's a risk that my undesirable use of this technology is contributing to my hdiutil attach problem.
Thus, it's not worth my time to fix the hdiutil attach problem, and instead, I should reengineer my fancy self-update system to operate in a way that is recommended by Apple
And, applying the recommendations may completely sidestep my problems, which is good for me.
Topic:
Privacy & Security
SubTopic:
General
Tags: