[pve-devel] [PATCH cluster 1/2] cluster: add cfs_lock_authkey

Fabian Gr├╝nbichler f.gruenbichler at proxmox.com
Wed Mar 6 08:21:40 CET 2019


used for authkey rotation in pve-access-control

Signed-off-by: Fabian Gr├╝nbichler <f.gruenbichler at proxmox.com>
---
 data/PVE/Cluster.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
index e52bf9d..83b401c 100644
--- a/data/PVE/Cluster.pm
+++ b/data/PVE/Cluster.pm
@@ -961,6 +961,12 @@ sub cfs_lock_acme {
     &$cfs_lock($lockid, $timeout, $code, @param);
 }
 
+sub cfs_lock_authkey {
+    my ($timeout, $code, @param) = @_;
+
+    $cfs_lock->('authkey', $timeout, $code, @param);
+}
+
 my $log_levels = {
     "emerg" => 0,
     "alert" => 1,
-- 
2.20.1




More information about the pve-devel mailing list