]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
misc-progs: Introduce run()
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 6 Jan 2021 11:15:47 +0000 (11:15 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 27 Jan 2021 21:06:57 +0000 (21:06 +0000)
commitca060524a79e6d9d874b82f081e8c98d1abe4ff1
tree5807bd1334d9f42561f3dc32ca34fff163cc829e
parent5d482a74faf4732db7c77ee693a2bc65e0b81a7a
misc-progs: Introduce run()

This function invokes a new command similar to safe_system()
but without launching a shell before.

That way, it is possible to execute commands without any risk
of shell command injection from nobody.

Fixes: #12562
Reported-by: Albert Schwarzkopf <ipfire@quitesimple.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/misc-progs/setuid.c
src/misc-progs/setuid.h