diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-06-09 10:01:16 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2016-06-09 10:01:16 +0200 |
commit | 1ff74fb6e3243a2ade9ac38aa5effccb25432ad1 (patch) | |
tree | 4ae6d6ffca3550b4bdef36569935a01675f48c8a /src/resolve/resolved-etc-hosts.c | |
parent | 867476a30a01aeb22cc696bec9f9df788ca58ac1 (diff) |
execute: check whether the specified fd is a tty before chowning/chmoding it (#3457)
Let's add an extra safety check before we chmod/chown a TTY to the right user,
as we might end up having connected something to STDIN/STDOUT that is actually
not a TTY, even though this might have been requested, due to permissive
StandardInput= settings or transient service activation with fds passed in.
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=85255
Diffstat (limited to 'src/resolve/resolved-etc-hosts.c')
0 files changed, 0 insertions, 0 deletions