]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
security_util: Document virSecurityMoveRememberedLabel
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 8 Aug 2019 11:45:41 +0000 (13:45 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 22 Aug 2019 08:34:42 +0000 (10:34 +0200)
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/security/security_util.c

index 04347f51e5ce11928aae45f1a15f344c987dee74..365b2dd2d6b2fd06980f65716f383cebe53fc895 100644 (file)
@@ -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,