]> git.ipfire.org Git - thirdparty/util-linux.git/commit
more: drop setuid permissions before executing anything
authorSami Kerola <kerolasa@iki.fi>
Wed, 18 Mar 2020 20:12:57 +0000 (20:12 +0000)
committerSami Kerola <kerolasa@iki.fi>
Sat, 28 Mar 2020 07:55:58 +0000 (07:55 +0000)
commit8fb5fe304a20b12960422d8885647db7434f0d25
treec4ab76de3d9f90f7f7da3383914482b352051515
parent474c61c0a8f4051727e7cad3bee6499162c5d797
more: drop setuid permissions before executing anything

Pagers are not expected to have setuid or setgid bits, but assuming such
mistake has taken place try to avoid privilege escalation.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/more.c