diff options
author | 2017-12-04 21:38:46 +0000 | |
---|---|---|
committer | 2017-12-04 21:38:46 +0000 | |
commit | a507b9a229181e55bcc7aa8cbf925756f741c9ab (patch) | |
tree | 7f98a83ac2026255f94352d4689c8469bf398579 /app-oam | |
parent | remove old invoke ebuilds (diff) | |
download | lmiphay-a507b9a229181e55bcc7aa8cbf925756f741c9ab.tar.gz lmiphay-a507b9a229181e55bcc7aa8cbf925756f741c9ab.tar.bz2 lmiphay-a507b9a229181e55bcc7aa8cbf925756f741c9ab.zip |
set owner and permissions on sensitive config and log files
Diffstat (limited to 'app-oam')
-rw-r--r-- | app-oam/oam/Manifest | 2 | ||||
-rw-r--r-- | app-oam/oam/oam-9999.ebuild | 18 |
2 files changed, 16 insertions, 4 deletions
diff --git a/app-oam/oam/Manifest b/app-oam/oam/Manifest index 3d4aec2..53cf102 100644 --- a/app-oam/oam/Manifest +++ b/app-oam/oam/Manifest @@ -1 +1 @@ -EBUILD oam-9999.ebuild 1277 SHA256 e4923919956716c7ea0ff379cc159f5e4f8862e34c80ec89e99bae570f5ce3ca SHA512 1eae71a25de9acebd812b9d91c28c1facf64f4e9313b6e6bd9995ad6d6d8d60d7e2591cdf0b42ad113178d0161882d586296a2a78e0e396e5bd49e61eda8cd62 WHIRLPOOL 0dddc1dcf2e34062e709df3a5849f085138f3e5dbdd9819a5240881a162f54861484b830fe9beab980d55b4253f9368948ebaeab6722d33f31b8ecb1d2c03f69 +EBUILD oam-9999.ebuild 1618 SHA256 81612ac37f0724a52ab7c07773b5a1c23253b8c8f048f72d3ab7ba74ed0c53a2 SHA512 5af421cac17210aff2950db52eaa73b9e77fc90e60d8526f9ecf0e4440a9ffd526362be5db0aed23ba4001dbe9df03dfcb1a80b173e60ff4eb26e4e34d0694b1 WHIRLPOOL bd16ae298e9936f82df00e52173545aee1f6dafce7725c37b086b35be9db024f840ae96c12eb30971f1c153b0add700f9eab7b94a2228e5d6d518684b0b3efb8 diff --git a/app-oam/oam/oam-9999.ebuild b/app-oam/oam/oam-9999.ebuild index fdc6bc1..1f8dded 100644 --- a/app-oam/oam/oam-9999.ebuild +++ b/app-oam/oam/oam-9999.ebuild @@ -48,9 +48,21 @@ pkg_setup() { } python_install_all() { - dodoc ${DOCS} - newbashcomp etc/bash.completion oam - distutils-r1_python_install_all + dodoc ${DOCS} + newbashcomp etc/bash.completion oam + distutils-r1_python_install_all + + keepdir /var/log/oam + + fowners -R "root:oam" "/etc/oam" + fowners "root:oam" "/var/log/oam" + fowners "root:root" "/etc/cron.daily/oam" + + fperms 640 "/etc/oam/oam.yaml" + fperms 750 "/etc/oam/conf.d" "/etc/oam/localtasks" + fperms 640 /etc/oam/conf.d/*.yaml /etc/oam/localtasks/*.py + fperms 770 "/var/log/oam" + fperms 755 "/etc/cron.daily/oam" } python_test() { |