Documentation
¶
Overview ¶
Package authorizer deals client authorization based on a definite set of polkit actions. The client UID and PID are obtained via the D-Bus sender passed to the authorizing method.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
Authorizer is an abstraction of polkit authorization and D-Bus credential lookup.
func (Authorizer) CheckSenderAllowed ¶
func (a Authorizer) CheckSenderAllowed(action string, sender dbus.Sender) (err error)
CheckSenderAllowed returns nil if the user is allowed to perform a given operation. Based on the D-Bus sender it will query the user's credentials and then attempt to authorize the action using polkit.
Click to show internal directories.
Click to hide internal directories.