diff options
author | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-10-09 18:06:36 +0200 |
---|---|---|
committer | Aurélien DESBRIÈRES <aurelien@hackers.camp> | 2014-10-09 18:06:36 +0200 |
commit | 1598de563bc4102d8d51b264638b986cdef49eca (patch) | |
tree | 2214e4c4ffa15c4be7d1e7bbd980b2147449ca9b /pcr/lynis/lynis.install | |
parent | a482ba801f52616f33e2ec339a807eed220ade4b (diff) | |
download | abslibre-1598de563bc4102d8d51b264638b986cdef49eca.tar.gz abslibre-1598de563bc4102d8d51b264638b986cdef49eca.tar.bz2 abslibre-1598de563bc4102d8d51b264638b986cdef49eca.zip |
Security and system auditing tool to harden Unix/Linux systems
Diffstat (limited to 'pcr/lynis/lynis.install')
-rw-r--r-- | pcr/lynis/lynis.install | 14 |
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/* } |