mas options to overcome install/purchase/upgrade/lucky failures from macOS 26.1, 15.7.2 & 14.8.2
#6550
-
|
Since Brew Bundle uses mas, I wanted to check with Homebrew personnel: macOS 26.1, 15.7.2 & 14.8.2 all require an Apple-only entitlement to connect to That breaks the Apple private framework that mas uses for its mas can work around this by calling The forthcoming mas 4.0.0 must be run with root permission for any of the aforementioned 4 commands to work. That isn't ideal for scripts, but people can modify their mas wouldn't need to use It would also require the user to allow the helper executable to run as a background process, also requiring user acceptance when mas is installed. Would it be beneficial to have mas available using a privileged helper executable? Maybe mas could use a privileged helper process if it is running, otherwise mas could still work if it is called with root permissions. I don't know if that would be easy to do, either in a single packaging or in separate packagings (one for helper, one for root permissions). Signing mas & using a privileged helper executable would take some time to implement (coding & packaging the privileged helper app, signing the executable & installer, possibly switching build system from SwiftPM to Xcode, etc.), while the If mas stays with requiring root permissions, mas can provide instructions about how to setup FYI: 4.0.0 will probably only update the progress bar for the download portion, not for the install portion. I don't want to waste much time on logging output right now, especially since I will probably completely refactor the output system to support the forthcoming JSON output option & installing / upgrading in parallel. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
Thanks for the heads up @rgoldberg.
Just for any users reading this: I would strongly recommend against doing this, even if just for
No. I don't like the security profile this introduces and puts a lot more trust in a tool that hasn't yet earned it.
I would suggest not recommending users do this then and that Homebrew should also not recommend this. I think the best trust model here is for |
Beta Was this translation helpful? Give feedback.
@rgoldberg I would rather we can just repeatedly call
masand have it only prompt the first time and not others, using usualsudotimeout semantics.