From nobody Sun Feb 8 07:08:04 2026 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 --- 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