[libvirt] [PATCH v4 13/25] security: Don't skip label restore on file systems lacking XATTRs
Daniel P. Berrangé
berrange at redhat.com
Mon Jun 17 13:23:23 UTC 2019
On Thu, Apr 25, 2019 at 10:19:49AM +0200, Michal Privoznik wrote:
> The way that virSecurityDACRecallLabel is currently written is
> that if XATTRs are not supported for given path to the caller
> this is not different than if the path is still in use. The value
> of 1 is returned which makes secdrivers skip label restore.
> This is clearly a bug as we are not restoring labels on say NFS
> even though previously we were.
>
> Strictly speaking, changes to virSecurityDACRememberLabel are not
> needed, but they are done anyway so that getter and setter behave
> in the same fashion.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> Reviewed-by: Cole Robinson <crobinso at redhat.com>
> ---
> src/security/security_dac.c | 18 ++++++++++++------
> src/security/security_selinux.c | 21 +++++++++++++++------
> src/security/security_util.c | 6 ++++--
> 3 files changed, 31 insertions(+), 14 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list