Skip to content

Instantly share code, notes, and snippets.

@PF4Public
Created November 8, 2019 15:58
Show Gist options
  • Save PF4Public/cf223fa1f9614b92dba2b64474226fff to your computer and use it in GitHub Desktop.
Save PF4Public/cf223fa1f9614b92dba2b64474226fff to your computer and use it in GitHub Desktop.
Polkit password re-request delay
--- polkit-0.115/src/polkitbackend/polkitbackendinteractiveauthority.c_old 2019-11-07 22:36:24.000000000 +0300
+++ polkit-0.115/src/polkitbackend/polkitbackendinteractiveauthority.c 2019-11-07 22:36:54.000000000 +0300
@@ -3233,7 +3233,7 @@ temporary_authorization_store_add_author
* the local authority could read it from a config file) or a vfunc
* (so the local authority could read it from an annotation on the action).
*/
- expiration_seconds = 5 * 60;
+ expiration_seconds = 30 * 60;
authorization = g_new0 (TemporaryAuthorization, 1);
authorization->id = g_strdup_printf ("tmpauthz%" G_GUINT64_FORMAT, store->serial++);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment