From nobody Mon Apr 29 17:11:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1592409561; cv=none; d=zohomail.com; s=zohoarc; b=eHjOpcq8T+8Zw7a2qyH2FUNGZ0lCUNIAXLofH8wHwACieQlsgK+ROVA5ux5HSEj5i1/qlQermfm5koLu6Tzb2F63d5W7erbzzPBPB0jU1Wur9yZILSe2vopTWZvoGWFObf8HTsjzLH5Xjkt//BPS0xuIdY4NKcZ9WuA6ACx1h3Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592409561; 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; bh=jEcnhQLbQArWHmjZvZzaU2ZOIMfXkBpjG4UfKowEOIE=; b=bntFUyobpa7k8ba+xz6WIqFqqW3+Zp1458jXFPLmHO20cEg2J20JBp/ihGD2UVcGswuRuheXLKOvS7bjHc67L8S/ja6GhFEaYWCIjgCf+o+jpPGAPSl8BY+5DOfXtjrhaQFRhgiaiMsn3+3+Jqt+FYlTRWJusKR2HGlw+igvDQ4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1592409561223503.4914413113969; Wed, 17 Jun 2020 08:59:21 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-507-5AYD9YeGNFOf9_sQ2NrZrw-1; Wed, 17 Jun 2020 11:59:17 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1F477250FF3; Wed, 17 Jun 2020 15:59:12 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E3EFD79302; Wed, 17 Jun 2020 15:59:11 +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 9C2BC1809554; Wed, 17 Jun 2020 15:59:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05HFwrfY021539 for ; Wed, 17 Jun 2020 11:58:53 -0400 Received: by smtp.corp.redhat.com (Postfix) id 99E9A1C8; Wed, 17 Jun 2020 15:58:53 +0000 (UTC) Received: from catbus.gsslab.fab.redhat.com (mustard.gsslab.fab.redhat.com [10.33.8.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0854A5F7D8; Wed, 17 Jun 2020 15:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592409560; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=jEcnhQLbQArWHmjZvZzaU2ZOIMfXkBpjG4UfKowEOIE=; b=EMZerPOSJF2pHFkQr09Jimov/9wIsHdWh+ErBimHJCNrGcVQbviqe5EmFySob6wxsdjh1R RyPbz1pP3qSe06FgdVaJPj9Mto9Owggi2OC98VthywA/RDyFOAqzSV5wD1t5L0u9fPwXiK yMRbnCJ/8Xy9VmBCOzm+HYzIFuvg/8o= X-MC-Unique: 5AYD9YeGNFOf9_sQ2NrZrw-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 1/3] lxc: drop compat code for mount constants Date: Wed, 17 Jun 2020 16:51:51 +0100 Message-Id: <20200617155153.1637033-2-berrange@redhat.com> In-Reply-To: <20200617155153.1637033-1-berrange@redhat.com> References: <20200617155153.1637033-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Given our supported platform matrix, we can safely assume that all the mount constants we need are defined by the system headers. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Pavel Hrdina --- src/lxc/lxc_container.c | 17 ----------------- src/lxc/lxc_controller.c | 8 -------- 2 files changed, 25 deletions(-) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 77df49ea75..b0a6deeb56 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -527,23 +527,6 @@ lxcContainerRenameAndEnableInterfaces(virDomainDefPtr = vmDef, /*_syscall2(int, pivot_root, char *, newroot, const char *, oldroot)*/ extern int pivot_root(const char * new_root, const char * put_old); =20 -#ifndef MS_REC -# define MS_REC 16384 -#endif - -#ifndef MNT_DETACH -# define MNT_DETACH 0x00000002 -#endif - -#ifndef MS_PRIVATE -# define MS_PRIVATE (1<<18) -#endif - -#ifndef MS_SLAVE -# define MS_SLAVE (1<<19) -#endif - - static int lxcContainerUnmountSubtree(const char *prefix, bool isOldRootFS) { diff --git a/src/lxc/lxc_controller.c b/src/lxc/lxc_controller.c index 4672920574..594d7f7e17 100644 --- a/src/lxc/lxc_controller.c +++ b/src/lxc/lxc_controller.c @@ -2052,14 +2052,6 @@ static int lxcSetPersonality(virDomainDefPtr def) return 0; } =20 -#ifndef MS_REC -# define MS_REC 16384 -#endif - -#ifndef MS_SLAVE -# define MS_SLAVE (1<<19) -#endif - /* Create a private tty using the private devpts at PTMX, returning * the master in *TTYMASTER and the name of the slave, _from the * perspective of the guest after remounting file systems_, in --=20 2.24.1 From nobody Mon Apr 29 17:11:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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=1592409569; cv=none; d=zohomail.com; s=zohoarc; b=e/d5j5MKcmnToSQSO4+9OzoO7uXDFWzTkBtjjg/BVZ3fb8IJB0nDNrym3qUh69zrpWSTIbI6f6GG4jbUs6S0YFKYWAOKjUOncPQScSmPqDHk08bE4Xw063ugZ96PTRsm+XbOI0sAqQVUGPwOMztAP4nXKlMxf3CLLMZ8DEPjK4s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592409569; 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; bh=BOxM8242ntfEAQ9TH0ClQoInaWtvRCbpdMiDTBvLtVo=; b=V3aXh633+sJaBRyueoB4rC9XdgbGFQ7zQCzHpCTZjocl63nnE1bQSrcdT3FObHm6ZCYfo8AZVy2oJdpNQ1O6uIAu4v/Lq0avbAMX7p7HKCS1xF+jnz4OtgVf528Nby7vzCZrtIueoUjvpODHh9aic5Q4Gmjh9Way5zK0e9PekzY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1592409569176469.3871610855583; Wed, 17 Jun 2020 08:59:29 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-52--wd04ylAOrmPj5tDIKQ_GQ-1; Wed, 17 Jun 2020 11:59:22 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 68EB88018A5; Wed, 17 Jun 2020 15:59:17 +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 43B9210002BC; Wed, 17 Jun 2020 15:59:17 +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 14EAA833C8; Wed, 17 Jun 2020 15:59:17 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05HFwsdh021547 for ; Wed, 17 Jun 2020 11:58:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7E58A6A950; Wed, 17 Jun 2020 15:58:54 +0000 (UTC) Received: from catbus.gsslab.fab.redhat.com (mustard.gsslab.fab.redhat.com [10.33.8.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id E06D51C8; Wed, 17 Jun 2020 15:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592409566; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=BOxM8242ntfEAQ9TH0ClQoInaWtvRCbpdMiDTBvLtVo=; b=aPxJAXw2xbhfW6hOoM6UH4BVc+bZOKzXFWPbM7QyVouV/CkJHn3JU+a17HKO0RokAAWcvl Rgkx9q1cdMfiexdh1OD9zXIoAC8dtvwqGRW3vs5lsGS0fU66UOaea+r4a1EBUgawfs6Fei +WLoC0wWYKTOSyExGNvv474iimukfJ8= X-MC-Unique: -wd04ylAOrmPj5tDIKQ_GQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 2/3] lxc: drop compat code for clone constants Date: Wed, 17 Jun 2020 16:51:52 +0100 Message-Id: <20200617155153.1637033-3-berrange@redhat.com> In-Reply-To: <20200617155153.1637033-1-berrange@redhat.com> References: <20200617155153.1637033-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Given our supported platform matrix, we can safely assume that all the clone constants we need are defined by the system headers. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Pavel Hrdina --- src/lxc/lxc_container.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index b0a6deeb56..36dee51168 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -66,26 +66,6 @@ =20 VIR_LOG_INIT("lxc.lxc_container"); =20 -/* - * GLibc headers are behind the kernel, so we define these - * constants if they're not present already. - */ - -#ifndef CLONE_NEWPID -# define CLONE_NEWPID 0x20000000 -#endif -#ifndef CLONE_NEWUTS -# define CLONE_NEWUTS 0x04000000 -#endif -#ifndef CLONE_NEWUSER -# define CLONE_NEWUSER 0x10000000 -#endif -#ifndef CLONE_NEWIPC -# define CLONE_NEWIPC 0x08000000 -#endif -#ifndef CLONE_NEWNET -# define CLONE_NEWNET 0x40000000 /* New network namespace */ -#endif =20 /* messages between parent and container */ typedef char lxc_message_t; --=20 2.24.1 From nobody Mon Apr 29 17:11:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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=1592409571; cv=none; d=zohomail.com; s=zohoarc; b=LG7LSbmmjkwpwAF6vsggY3a1+2wK7I1sKvpbNJY+AvmvZVtWkZyDL0QPyqsflz18f42CrGdpMTuro+GZX08WKZrqVc5za46at+sxu6Z9/DIqkJEygV6Oqaq39HOq92253KClOA8vKoht0WD3wKj9DUUceee/reUJ2g0e3UGr8+Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592409571; 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; bh=TfwttGbp2B3H+wEepou0YBoFL/wgmsfdiD3Gm7Mu0NA=; b=SjzCf5+g1RpNHGBB0ijiNBYFK8Ql1d7fWHgjT5xLfWQAzRv3zeFQxn1cduzlWFt9A3yVIeoyhVIAetsoaVFlqXfo0KhxAZGk/XCDML5wl5rUgJbKNDkG9cDa2z10ST5cKrb7yXJ0mHnsEYnyNsZiq5vS5ns8BPE0YbqLEypI/00= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1592409571413344.3983469446631; Wed, 17 Jun 2020 08:59:31 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-92-0-oZpiPoMrScHgiG7SdBXA-1; Wed, 17 Jun 2020 11:59:27 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C02D91882621; Wed, 17 Jun 2020 15:59:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A05196ED96; Wed, 17 Jun 2020 15:59:21 +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 66C001809563; Wed, 17 Jun 2020 15:59:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05HFwtRG021555 for ; Wed, 17 Jun 2020 11:58:55 -0400 Received: by smtp.corp.redhat.com (Postfix) id 62DF55F7D8; Wed, 17 Jun 2020 15:58:55 +0000 (UTC) Received: from catbus.gsslab.fab.redhat.com (mustard.gsslab.fab.redhat.com [10.33.8.112]) by smtp.corp.redhat.com (Postfix) with ESMTP id C52C51C8; Wed, 17 Jun 2020 15:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592409570; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=TfwttGbp2B3H+wEepou0YBoFL/wgmsfdiD3Gm7Mu0NA=; b=Y1LFAsw8lOugzorE9bsH/5d4PxjObU3ZrQxr2fi0n8vzkWOAgqxcfuD1jMd6vI3Vty5X9S coxEhK+Qv2TEbfeEfmC4CGnx5uigSym5wnLk2CsDOe2CLmBZEWfxMGLnp7Neg20njpqvfh 0C0m/x7h+H2qgAW2ospGl8N5OrO5k7c= X-MC-Unique: 0-oZpiPoMrScHgiG7SdBXA-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 3/3] lxc: drop compat code for capability constants Date: Wed, 17 Jun 2020 16:51:53 +0100 Message-Id: <20200617155153.1637033-4-berrange@redhat.com> In-Reply-To: <20200617155153.1637033-1-berrange@redhat.com> References: <20200617155153.1637033-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Given our supported platform matrix, we can safely assume that all the capability constants we need are defined by the system headers. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Pavel Hrdina --- src/lxc/lxc_container.c | 114 ---------------------------------------- 1 file changed, 114 deletions(-) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 36dee51168..c22b7b0709 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -1697,120 +1697,6 @@ static int lxcContainerResolveAllSymlinks(virDomain= DefPtr vmDef) */ #if WITH_CAPNG =20 -/* Define capabilities to -1 if those aren't defined in the kernel: - * this will help us ignore them. */ -# ifndef CAP_AUDIT_CONTROL -# define CAP_AUDIT_CONTROL -1 -# endif -# ifndef CAP_AUDIT_WRITE -# define CAP_AUDIT_WRITE -1 -# endif -# ifndef CAP_BLOCK_SUSPEND -# define CAP_BLOCK_SUSPEND -1 -# endif -# ifndef CAP_CHOWN -# define CAP_CHOWN -1 -# endif -# ifndef CAP_DAC_OVERRIDE -# define CAP_DAC_OVERRIDE -1 -# endif -# ifndef CAP_DAC_READ_SEARCH -# define CAP_DAC_READ_SEARCH -1 -# endif -# ifndef CAP_FOWNER -# define CAP_FOWNER -1 -# endif -# ifndef CAP_FSETID -# define CAP_FSETID -1 -# endif -# ifndef CAP_IPC_LOCK -# define CAP_IPC_LOCK -1 -# endif -# ifndef CAP_IPC_OWNER -# define CAP_IPC_OWNER -1 -# endif -# ifndef CAP_KILL -# define CAP_KILL -1 -# endif -# ifndef CAP_LEASE -# define CAP_LEASE -1 -# endif -# ifndef CAP_LINUX_IMMUTABLE -# define CAP_LINUX_IMMUTABLE -1 -# endif -# ifndef CAP_MAC_ADMIN -# define CAP_MAC_ADMIN -1 -# endif -# ifndef CAP_MAC_OVERRIDE -# define CAP_MAC_OVERRIDE -1 -# endif -# ifndef CAP_MKNOD -# define CAP_MKNOD -1 -# endif -# ifndef CAP_NET_ADMIN -# define CAP_NET_ADMIN -1 -# endif -# ifndef CAP_NET_BIND_SERVICE -# define CAP_NET_BIND_SERVICE -1 -# endif -# ifndef CAP_NET_BROADCAST -# define CAP_NET_BROADCAST -1 -# endif -# ifndef CAP_NET_RAW -# define CAP_NET_RAW -1 -# endif -# ifndef CAP_SETGID -# define CAP_SETGID -1 -# endif -# ifndef CAP_SETFCAP -# define CAP_SETFCAP -1 -# endif -# ifndef CAP_SETPCAP -# define CAP_SETPCAP -1 -# endif -# ifndef CAP_SETUID -# define CAP_SETUID -1 -# endif -# ifndef CAP_SYS_ADMIN -# define CAP_SYS_ADMIN -1 -# endif -# ifndef CAP_SYS_BOOT -# define CAP_SYS_BOOT -1 -# endif -# ifndef CAP_SYS_CHROOT -# define CAP_SYS_CHROOT -1 -# endif -# ifndef CAP_SYS_MODULE -# define CAP_SYS_MODULE -1 -# endif -# ifndef CAP_SYS_NICE -# define CAP_SYS_NICE -1 -# endif -# ifndef CAP_SYS_PACCT -# define CAP_SYS_PACCT -1 -# endif -# ifndef CAP_SYS_PTRACE -# define CAP_SYS_PTRACE -1 -# endif -# ifndef CAP_SYS_RAWIO -# define CAP_SYS_RAWIO -1 -# endif -# ifndef CAP_SYS_RESOURCE -# define CAP_SYS_RESOURCE -1 -# endif -# ifndef CAP_SYS_TIME -# define CAP_SYS_TIME -1 -# endif -# ifndef CAP_SYS_TTY_CONFIG -# define CAP_SYS_TTY_CONFIG -1 -# endif -# ifndef CAP_SYSLOG -# define CAP_SYSLOG -1 -# endif -# ifndef CAP_WAKE_ALARM -# define CAP_WAKE_ALARM -1 -# endif - static int lxcContainerDropCapabilities(virDomainDefPtr def, bool keepReboot) { --=20 2.24.1