From nobody Sun Feb 8 19:25:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1565793215; cv=none; d=zoho.com; s=zohoarc; b=AJ/8Lne4pDZjUvOYOMoE0Z1frseHLYgbaQ0UuMYtcXwkFPOfeSX+Sa50zYURnAEUQOrfzk+R59Cd2L5hU1NHdT6o2QN5BokTSrsITL0zx0hMbHNZU71dC2bL8LnlMHRUNrm5jt8IsglgtfDn8gxX9DSY+tOmbZLMtG7umQturRo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1565793215; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=UNIPrzpzw2jO+z42PlCBMjZdYSciRSRF7m+ar5p4oy4=; b=hFhT399IoLC1RvjGitX8mrrcv4zvyrIX57LcCTAcRwGp8LTbfShFu6Cbls6/atcVEhv8BDKNV2of6GCo7jg1flByNPbwtachk9zDboOGUXsdX51xKxXgJ6bOdh1jaOnUW3UV1cCOu4vNwmzl42t8+ODsin150kpGNRYXrtr78WY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1565793215503906.0421659372266; Wed, 14 Aug 2019 07:33:35 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 515B6307C827; Wed, 14 Aug 2019 14:33:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2E6B485A53; Wed, 14 Aug 2019 14:33:34 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E398F24F34; Wed, 14 Aug 2019 14:33:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x7EEXWmD022536 for ; Wed, 14 Aug 2019 10:33:32 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2860183285; Wed, 14 Aug 2019 14:33:32 +0000 (UTC) Received: from moe.brq.redhat.com (unknown [10.43.2.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id A6E7E3ACA for ; Wed, 14 Aug 2019 14:33:31 +0000 (UTC) From: Michal Privoznik To: libvir-list@redhat.com Date: Wed, 14 Aug 2019 16:33:21 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 3/5] security_util: Document virSecurityMoveRememberedLabel X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 14 Aug 2019 14:33:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Signed-off-by: Michal Privoznik Reviewed-by: Jiri Denemark --- 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, } =20 =20 +/** + * 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, --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list