From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 7C2B1A04C0;
	Thu, 17 Sep 2020 16:47:54 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id E22351D680;
	Thu, 17 Sep 2020 16:47:52 +0200 (CEST)
Received: from us-smtp-delivery-124.mimecast.com
 (us-smtp-delivery-124.mimecast.com [216.205.24.124])
 by dpdk.org (Postfix) with ESMTP id 10E1A1D676
 for <dev@dpdk.org>; Thu, 17 Sep 2020 16:47:50 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1600354070;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=m5oA/lTizMSag2TTKMrNDtUi5xiWtpcDHYIVKlbdEYg=;
 b=KhVpVKMnuxqQgvWfpsfKvRJ5px8ytAykkPCFR8oPWBzNtLhhzqWVCNWuXdQ+Tptedmpo/h
 ODggucYAwUV8N0nmw5qNJoz/l6yMnxs8riecoXmHpjZ4SqFeZntj9QDyFzqYvnqs90Q2xF
 SV8LabdsN6RrVbcXSG29hs8SivEiYuc=
Received: from mail-vs1-f72.google.com (mail-vs1-f72.google.com
 [209.85.217.72]) (Using TLS) by relay.mimecast.com with ESMTP id
 us-mta-305-Y24y7-uXMU25r7I8BBgaMw-1; Thu, 17 Sep 2020 10:47:48 -0400
X-MC-Unique: Y24y7-uXMU25r7I8BBgaMw-1
Received: by mail-vs1-f72.google.com with SMTP id f2so576525vsp.8
 for <dev@dpdk.org>; Thu, 17 Sep 2020 07:47:48 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=m5oA/lTizMSag2TTKMrNDtUi5xiWtpcDHYIVKlbdEYg=;
 b=Hu4RKj670C6C83aFmzMXgRvdhZqrU5KbSv2Df3anD157ak3R1aOM5mBkKBFqw7Hlib
 Oi+FsvPcOAdz+RxnbE4wwdsubdW6CTFZOT7Jfh0ST5OUkqGym6CrXIXcHV3dm2JktaHQ
 7M66+nmX0zYRCDR11dQFgjIECcNpWVffEXdbaY9CZMoAjRAtfDXK/h7qGKktmhejw/U/
 iExyKwtO8d3RvLs6+YQiElaOXzm75C0LeVw8dHgKAQ4th649HAufaLXZwGZGba02q+ll
 h7EGWEpa63qs4DNDaWsXuTC/tc7RmWQIkVQxdkAFKOYEF4L9/DQzORKmKQCDt6D2QHSC
 AbNQ==
X-Gm-Message-State: AOAM530EdvABpGh3NOmRU0Rs7NQuP4IOP0iFMAerY6JqtxteC374frV1
 SWr+nKaJfZ0LLcGuL3vVL+8Rg/6cbPXlfNyGlZIoer+DkHxqpGWDSGxKvgr1esTZ4VbevUtkf5X
 scLqI9Nmo0Z9y67aYbaI=
X-Received: by 2002:a05:6102:20e:: with SMTP id
 z14mr17319419vsp.17.1600354068418; 
 Thu, 17 Sep 2020 07:47:48 -0700 (PDT)
X-Google-Smtp-Source: ABdhPJzUEGh41eYA+9gkt14r6AXeXzkNXYMGr887HoguOB+bBw1OueSEjgrsMudrQoPzJv7GXGk1JPGDWGmLZYC8R3Q=
X-Received: by 2002:a05:6102:20e:: with SMTP id
 z14mr17319401vsp.17.1600354068179; 
 Thu, 17 Sep 2020 07:47:48 -0700 (PDT)
MIME-Version: 1.0
References: <20200910162407.12669-1-david.marchand@redhat.com>
 <ed178637-e82c-5aab-8094-f9ed60140160@intel.com>
 <CAJFAV8zxm=jNLc+nPt74ZzUp5_-dF9OV=ptfBH5yNZg8EKzJ=A@mail.gmail.com>
 <41283b3a-5591-da2b-dea3-f069248d3265@intel.com>
In-Reply-To: <41283b3a-5591-da2b-dea3-f069248d3265@intel.com>
From: David Marchand <david.marchand@redhat.com>
Date: Thu, 17 Sep 2020 16:47:37 +0200
Message-ID: <CAJFAV8waAge4oJwbZ1Co_5iYym9h5u1xKMam=JNtE_vJ0hedPw@mail.gmail.com>
To: "Burakov, Anatoly" <anatoly.burakov@intel.com>
Cc: dev <dev@dpdk.org>, Maxime Coquelin <maxime.coquelin@redhat.com>, 
 Sebastian Scheinkman <sscheink@redhat.com>, dpdk stable <stable@dpdk.org>,
 Aaron Conole <aconole@redhat.com>
Authentication-Results: relay.mimecast.com;
 auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="UTF-8"
Subject: Re: [dpdk-dev] [PATCH] eal/linux: fix memory allocations in
	containers+SELinux
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

On Thu, Sep 17, 2020 at 4:17 PM Burakov, Anatoly
<anatoly.burakov@intel.com> wrote:
> Anonymous hugepages shouldn't matter, yes, but single-file segments mode
> does fallocate() and remove - you have the remove part covered, but i'm
> just curious if fallocate() would also cause any issues with SELinux.

I found no hook in the kernel for fallocate + selinux...
Looked into fallocate itself and it ends up validating lsm write
access on the file.

I don't have the full setup atm but since I could truncate and write
to it, I'd say we are good.


-- 
David Marchand