mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
net-misc/peervpn: 0.044-r1 revbump for bug 602550
Fix the openrc init script start_post function to use the chown --no-dereference option in order to prevent privilege escalation attacks. X-Gentoo-bug: 602550 X-Gentoo-bug-url: https://bugs.gentoo.org/show_bug.cgi?id=602550 Package-Manager: portage-2.3.3
This commit is contained in:
@@ -27,5 +27,7 @@ start_pre() {
|
||||
}
|
||||
|
||||
start_post() {
|
||||
chown "${user}":"${group}" "${logfile}"
|
||||
# Use --no-dereference to prevent privilege escalation
|
||||
# attacks. Fixes bug #602550.
|
||||
chown --no-dereference "${user}":"${group}" "${logfile}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user