mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-25 09:01:29 +02:00
11 lines
485 B
Go
11 lines
485 B
Go
package elevate
|
|
|
|
// adminWriteGIDs are the groups whose write access to an executable does not
|
|
// widen who could authorize elevating it.
|
|
//
|
|
// macOS installs applications as root:admin, mode 0775, /Applications included,
|
|
// so requiring owner-only write would reject every normal install. Group admin
|
|
// (gid 80) is exactly the set of accounts that can answer the authentication
|
|
// dialog, so its write access grants nothing the prompt would not.
|
|
var adminWriteGIDs = []uint32{0, 80}
|