diff --git a/docs/wiki/Security-Model.md b/docs/wiki/Security-Model.md index 2982363c..d5ff6183 100644 --- a/docs/wiki/Security-Model.md +++ b/docs/wiki/Security-Model.md @@ -53,8 +53,11 @@ When the session is locked via [ext-session-lock](https://wayland.app/protocols/ Only a very small set of safe actions is allowed. In particular, spawning will not work, with the exception of binds explicitly configured with `allow-when-locked=true`. +Until: next release Importantly, the **quit** action is allowed—you can always quit niri, even when on a lock screen. -Therefore, you must ensure that quitting niri does not drop you into an unprotected TTY commandline. + +Be careful if you allow the **quit** action, or if your lock screen has a way to exit niri. +You must ensure that quitting niri does not drop you into an unprotected TTY commandline. Usually, a display manager, like GDM, will do this for you: when niri exits (via the quit bind or if it crashes), it'll put you back into a safe password prompt. Other than quitting, the only way to exit a lock screen is for the lock screen client to tell niri to unlock the session. diff --git a/src/input/mod.rs b/src/input/mod.rs index f291608f..7ddc4c3b 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -4799,8 +4799,7 @@ fn should_reset_pointer_inactivity_timer(event: &InputEvent) fn allowed_when_locked(action: &Action) -> bool { matches!( action, - Action::Quit(_) - | Action::ChangeVt(_) + Action::ChangeVt(_) | Action::Suspend | Action::PowerOffMonitors | Action::PowerOnMonitors