aboutsummaryrefslogtreecommitdiffstats
path: root/testing/aaudit/aaudit-update-keys
diff options
context:
space:
mode:
Diffstat (limited to 'testing/aaudit/aaudit-update-keys')
-rwxr-xr-xtesting/aaudit/aaudit-update-keys18
1 files changed, 0 insertions, 18 deletions
diff --git a/testing/aaudit/aaudit-update-keys b/testing/aaudit/aaudit-update-keys
deleted file mode 100755
index 3521808cba..0000000000
--- a/testing/aaudit/aaudit-update-keys
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/lua5.2
-
-local posix = require 'posix'
-local aac = require 'aaudit.common'
-
-local home = os.getenv("HOME")
-local allkeys = {}
-for _, keyfile in ipairs(posix.glob(("%s/keydir/*.pub"):format(home))) do
- local identity = keyfile:match("keydir/(.*).pub$")
- for sshkey in io.lines(keyfile) do
- table.insert(allkeys,
- ('command="/usr/libexec/aaudit/aaudit-shell %s"'..
- ',no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty %s\n')
- :format(identity, sshkey))
- end
-end
-
-aac.writefile(table.concat(allkeys), ("%s/.ssh/authorized_keys"):format(home))