mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-analyzer/suricata: make rule-file and update dirs setuid suricata
So that it is possible to run suricata-update as root (which according to upstream documentation is still very much allowed) but have suricata itself drop its privileges, without having to manually change the ownership of downloaded files. In the long run it would be nice for suricata-update to drop privileges as well - but that's something for upstream to take care of, and setuid suricata on the relevant directories appears to work fine. Closes: https://bugs.gentoo.org/900627 Signed-off-by: Marek Szuba <marecki@gentoo.org>
This commit is contained in:
@@ -146,7 +146,7 @@ src_install() {
|
||||
|
||||
fowners -R ${PN}: "/var/lib/${PN}" "/var/log/${PN}" "/etc/${PN}"
|
||||
fperms 750 "/var/lib/${PN}" "/var/log/${PN}" "/etc/${PN}"
|
||||
fperms 2750 "/var/lib/${PN}/rules" "/var/lib/${PN}/update"
|
||||
fperms 6750 "/var/lib/${PN}/rules" "/var/lib/${PN}/update"
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
|
||||
Reference in New Issue
Block a user