app-admin/sudo: Add secure-path use
authorKarel Kočí <cynerd@email.cz>
Tue, 4 Dec 2018 19:27:04 +0000 (20:27 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Sun, 13 Jan 2019 01:10:30 +0000 (02:10 +0100)
commit94bfb597738bad84a823b5f086cb7ffa72675ef7
tree7ee3fa83663d9e579cd10c2d0ff311368b7ffc0a
parent9ab81ac198938909d91de3f28bd3bd3f9bb4911c
app-admin/sudo: Add secure-path use

It makes sense to mask PATH variable when sudo is executed for secure
reasons with known secure content. Problem is that this is not common on
other distributions and in some cases it makes sense to allow user's
PATH to be used because it complicates common use of sudo such as:
sudo !!
This does not change default previous behavior. It just adds an use flag
to enabling secure-path that is in default enabled.

Bug: https://bugs.gentoo.org/672522

Signed-off-by: Karel Kočí <cynerd@email.cz>
Closes: https://github.com/gentoo/gentoo/pull/10566
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
app-admin/sudo/metadata.xml
app-admin/sudo/sudo-1.8.26-r1.ebuild [new file with mode: 0644]