]> git.e2factory.org Git - e2factory.git/commit
e2lib: callcmd: add argument to run command under a pseudo tty
authorTobias Ulmer <tu@emlix.com>
Fri, 15 Feb 2019 10:53:40 +0000 (11:53 +0100)
committerTobias Ulmer <tu@emlix.com>
Fri, 15 Feb 2019 10:59:58 +0000 (11:59 +0100)
commit7e662255742d9eb4c58d5d7766b5937804b6fc3b
treeea075397086f9fdf07031e6bb5f7699ea4df9775
parent0041748cbf34dd4f9b26c16d313392e371476ec9
e2lib: callcmd: add argument to run command under a pseudo tty

Running under a pseudo tty allows using the TIOCSIG ioctl to terminate
non-user owned processes, in particular setuid programs like e2-su or
sudo.

Various improvements around signal handling during forking, with better
error handling and reporting.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua