summaryrefslogtreecommitdiff
path: root/pcr/lynis/lynis.install
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-10-09 18:06:36 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-10-09 18:06:36 +0200
commit1598de563bc4102d8d51b264638b986cdef49eca (patch)
tree2214e4c4ffa15c4be7d1e7bbd980b2147449ca9b /pcr/lynis/lynis.install
parenta482ba801f52616f33e2ec339a807eed220ade4b (diff)
Security and system auditing tool to harden Unix/Linux systems
Diffstat (limited to 'pcr/lynis/lynis.install')
-rw-r--r--pcr/lynis/lynis.install14
1 files changed, 8 insertions, 6 deletions
diff --git a/pcr/lynis/lynis.install b/pcr/lynis/lynis.install
index abdb081f1..1b104f01e 100644
--- a/pcr/lynis/lynis.install
+++ b/pcr/lynis/lynis.install
@@ -1,8 +1,10 @@
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_*
+ # fix local old umask
+ chmod o+rx,g+rx /usr/share/lynis/{include,db,plugins}
+}
+
+post_upgrade() {
+ chmod o+r,g+r /usr/share/lynis/include/*
+ chmod o+r,g+r /usr/share/lynis/db/*
+ chmod o+r,g+r /usr/share/lynis/plugins/*
}