]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add helpers for getting env vars in a setuid environment
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 9 Oct 2013 09:52:39 +0000 (10:52 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 21 Oct 2013 13:03:52 +0000 (14:03 +0100)
commitae53e5d10e434e07079d7e3ba11ec654ba6a256e
tree408fabbe8ab36e06d9dd672412b89f5701e5e23c
parent57687fd6bf7f6e1b3662c52f3f26c06ab19dc96c
Add helpers for getting env vars in a setuid environment

Care must be taken accessing env variables when running
setuid. Introduce a virGetEnvAllowSUID for env vars which
are safe to use in a setuid environment, and another
virGetEnvBlockSUID for vars which are not safe. Also add
a virIsSUID helper method for any other non-env var code
to use.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
bootstrap.conf
src/libvirt_private.syms
src/util/virutil.c
src/util/virutil.h