chiark / gitweb /
fishdescriptor: Work if child is not running as root, but we are
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 7 Jun 2018 16:33:34 +0000 (17:33 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 7 Jun 2018 16:35:39 +0000 (17:35 +0100)
commit62e1d54313a88457b281d85e8ab6a2559192f680
tree2fbebbdc195b492dba335dd434bacb7aef487db6
parent086feb1679c895d85c9f0f533c5cf0806a52a6dc
fishdescriptor: Work if child is not running as root, but we are

We make a socket, normally in /var/run/user for the victim process,
which is therefore accessible only to the victim uid (and to root).
If we are running as root, the socket will typically not be writeable
by the user, and this will fail.  We need to chmod it.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
fishdescriptor/py/fishdescriptor/fish.py