]> err.no Git - util-linux/commit
unshare: drop potential euid privileges before exec
authorKarel Zak <kzak@redhat.com>
Thu, 6 May 2010 07:59:16 +0000 (09:59 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 6 May 2010 07:59:16 +0000 (09:59 +0200)
commit3f1be691da4da51d3709ae26d4ad32edf163a195
tree80aab90dc0aa5b723ff0b1cf9d196d6020410c24
parent048b81c9ffd2554900523ff55718ab8914176f77
unshare: drop potential euid privileges before exec

This patch drops potential euid privileges before executing the target
program. This allows to setuid unshare.

The unshare(1) is still distributed as non-setuid program.

Based on patch from Martin Pohlack <mp26@os.inf.tu-dresden.de>.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/unshare.1
sys-utils/unshare.c