summaryrefslogtreecommitdiff
path: root/po/nso.po
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2013-12-23 10:15:48 -0700
committerCole Robinson <crobinso@redhat.com>2014-01-16 18:11:03 -0500
commit2ae5b3e3729735f27f7ee6fbf2f158c1cadc9f4b (patch)
tree78d55e0685100446dd98bdd1eebdacdd2be27f8b /po/nso.po
parent3ba6892066080cc8e55fea86037ac31ada505320 (diff)
downloadlibvirt-2ae5b3e3729735f27f7ee6fbf2f158c1cadc9f4b.tar.gz
virt-login-shell: fix regressions in behavior
Our fixes for CVE-2013-4400 were so effective at "fixing" bugs in virt-login-shell that we ended up fixing it into a useless do-nothing program. Commit 3e2f27e1 picked the name LIBVIRT_SETUID_RPC_CLIENT for the witness macro when we are doing secure compilation. But commit 9cd6a57d checked whether the name IN_VIRT_LOGIN_SHELL, from an earlier version of the patch series, was defined; with the net result that virt-login-shell invariably detected that it was setuid and failed virInitialize. Commit b7fcc799 closed all fds larger than stderr, but in the wrong place. Looking at the larger context, we mistakenly did the close in between obtaining the set of namespace fds, then actually using those fds to switch namespace, which means that virt-login-shell will ALWAYS fail. This is the minimal patch to fix the regressions, although further patches are also worth having to clean up poor semantics of the resulting program (for example, it is rude to not pass on the exit status of the wrapped program back to the invoking shell). * tools/virt-login-shell.c (main): Don't close fds until after namespace swap. * src/libvirt.c (virGlobalInit): Use correct macro. Signed-off-by: Eric Blake <eblake@redhat.com> (cherry picked from commit 3d007cb5f892bb9fd3f6efac6dc89a8e00e94922)
Diffstat (limited to 'po/nso.po')
0 files changed, 0 insertions, 0 deletions