]> git.ipfire.org Git - thirdparty/libvirt.git/commit
security: Don't try to lock NULL paths v4.8.0-rc1
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 24 Sep 2018 13:22:25 +0000 (15:22 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 26 Sep 2018 10:01:48 +0000 (12:01 +0200)
commitcd33eaa2513a143c47775777806ebb2e759c7617
tree05d12ed1d5960d47813974656a8ada192e16aa9b
parentf4d7ca62a4d05868f5e0c551fde9b2122f2fe424
security: Don't try to lock NULL paths

It may happen that in the list of paths/disk sources to relabel
there is a disk source. If that is the case, the path is NULL. In
that case, we shouldn't try to lock the path. It's likely a
network disk anyway and therefore there is nothing to lock.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/security/security_dac.c