Re: [PATCH v3 2/2] security_util: Remove stale XATTRs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 22, 2019 at 16:56:02 +0200, Michal Privoznik wrote:
> It may happen that we leave some XATTRs behind. For instance, on
> a sudden power loss, the host just shuts down without calling
> restore on domain paths. This creates a problem, because when the
> host starts up again, the XATTRs are there but they don't reflect
> the true state and this may result in libvirt denying start of a
> domain.
> 
> To solve this, save a unique timestamp (host boot time) among
> with our XATTRs.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1741140
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
> 
> diff to v2:
> - Jirka's suggestions worked in.
> 
>  src/security/security_util.c    | 194 +++++++++++++++++++++++++++++++-
>  tests/qemusecuritymock.c        |  12 ++
>  tools/libvirt_recover_xattrs.sh |   2 +-
>  3 files changed, 206 insertions(+), 2 deletions(-)

Reviewed-by: Jiri Denemark <jdenemar@xxxxxxxxxx>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux