summaryrefslogtreecommitdiff
path: root/pcr/lynis/lynis.install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/lynis/lynis.install')
-rw-r--r--pcr/lynis/lynis.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/pcr/lynis/lynis.install b/pcr/lynis/lynis.install
new file mode 100644
index 000000000..abdb081f1
--- /dev/null
+++ b/pcr/lynis/lynis.install
@@ -0,0 +1,8 @@
+pre_upgrade() {
+ chmod -R o= /usr/share/lynis
+ chmod 0755 /usr/share/lynis
+ # fix non-test includes to let lynis run as user but complain gracefully
+ chmod o+rx /usr/share/lynis/include
+ chmod o+r /usr/share/lynis/include/*
+ chmod o-r /usr/share/lynis/include/tests_*
+}