Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDismissed = errors.New("Authorization request dismissed") ErrInteraction = errors.New("Authorization requires interaction") )
Functions ¶
func CheckAuthorization ¶
func CheckAuthorization(pid int32, uid uint32, actionId string, details map[string]string, flags CheckFlags) (bool, error)
CheckAuthorization queries polkit to determine whether a process is authorized to perform an action.
Types ¶
type CheckFlags ¶
type CheckFlags uint32
const ( CheckNone CheckFlags = 0x00 CheckAllowInteraction CheckFlags = 0x01 )
Click to show internal directories.
Click to hide internal directories.