feat: add a setting for sudo over ssh

This commit is contained in:
Felitendo committed 2026-09-28 14:38:02 +02:00
1 parent 658adb7da7
commit d8bbefed8a
22 files changed
+1367 -1320

No files matched your search

+1
View File
@@ -50,6 +50,7 @@ Settings Settings::load(const QString &path)
s.maxFailures = kv.integer(QStringLiteral("MaxFailures"), s.maxFailures, 1, 20);
s.lockoutMinutes = kv.integer(QStringLiteral("LockoutMinutes"), s.lockoutMinutes, 1, 24 * 60);
s.skipLidClosed = kv.boolean(QStringLiteral("SkipLidClosed"), s.skipLidClosed);
s.sshSessions = kv.boolean(QStringLiteral("SshSessions"), s.sshSessions);
s.adapt = kv.boolean(QStringLiteral("Adapt"), s.adapt);
return s;
}
+4
View File
@@ -44,6 +44,10 @@ struct Settings {
int lockoutMinutes = 15;
// A laptop with the lid shut has its camera looking at the keyboard.
bool skipLidClosed = true;
// sudo and admin prompts in an SSH session. Off by default: whoever sits
// in front of the camera need not be whoever types. On, that person still
// has to be at the machine (see the PAM module).
bool sshSessions = false;
// Take in a little of each confident unlock, so a new haircut or a pair
// of glasses does not need a new setup. Face ID does the same.
bool adapt = true;