Documentation
¶
Overview ¶
Package greeterconfig is what a user may change of the login screen the system shows: the login keys config.GreeterApplyKeys names and a background image, written to the runtime.yaml beside the greeter's system config, never to config.yaml itself.
A Change is staged by the user who makes it, with that user's rights: Stage and NewChange read the background image, so no privileged process ever opens a path a user names. Check, run by whoever may write the system config (root, or lys-login's display manager), trusts nothing in a Change but the allowlisted keys, and Write takes only what Check passed.
Index ¶
Constants ¶
const MaxImage = 32 << 20
MaxImage bounds the background image a Change carries.
const MaxStaged = 1 << 20
MaxStaged bounds a Change's staged config text.
Variables ¶
var ErrInvalid = errors.New("invalid login screen change")
Functions ¶
Types ¶
type Change ¶
type Change struct {
// Staged is the staged config: a login table, or its keys at the top
// level.
Staged string `json:"staged"`
// Image is the background an image-mode Staged names, read by the
// user who staged it; nil for the other modes.
Image *Image `json:"image,omitempty"`
}
Change is a staged change of the login screen.