]> xenbits.xensource.com Git - libvirt.git/commit
virSecurityManagerMetadataLock: Store locked paths
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Feb 2020 14:37:48 +0000 (15:37 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Feb 2020 10:09:18 +0000 (11:09 +0100)
commit256e01e59e922ff70dce56284e53e3463d4dc072
treef05e5b55cba889f1807035d6c4a1f6c455cbba7e
parent6a38acb3c0d5feb4841044cb230590088f8970d3
virSecurityManagerMetadataLock: Store locked paths

So far, in the lock state we are storing only the file
descriptors of the files we've locked. Therefore, when unlocking
them and something does wrong the only thing we can report is FD
number, which is not user friendly at all. But if we store paths
among with FDs we can do better error reporting.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/security/security_manager.c