[libvirt] [PATCH 3/5] security_util: Document virSecurityMoveRememberedLabel

Michal Privoznik mprivozn at redhat.com
Wed Aug 14 14:33:21 UTC 2019


Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 src/security/security_util.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/security/security_util.c b/src/security/security_util.c
index 04347f51e5..365b2dd2d6 100644
--- a/src/security/security_util.c
+++ b/src/security/security_util.c
@@ -244,6 +244,19 @@ virSecuritySetRememberedLabel(const char *name,
 }
 
 
+/**
+ * virSecurityMoveRememberedLabel:
+ * @name: security driver name
+ * @src: source file
+ * @dst: destination file
+ *
+ * For given security driver @name, move all XATTRs related to seclabel
+ * remembering from @src to @dst. However, if @dst is NULL, then XATTRs
+ * are just removed from @src.
+ *
+ * Returns: 0 on success,
+ *         -1 otherwise.
+ */
 int
 virSecurityMoveRememberedLabel(const char *name,
                                const char *src,
-- 
2.21.0




More information about the libvir-list mailing list