From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; 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 ; 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> <41283b3a-5591-da2b-dea3-f069248d3265@intel.com> In-Reply-To: <41283b3a-5591-da2b-dea3-f069248d3265@intel.com> From: David Marchand Date: Thu, 17 Sep 2020 16:47:37 +0200 Message-ID: To: "Burakov, Anatoly" Cc: dev , Maxime Coquelin , Sebastian Scheinkman , dpdk stable , Aaron Conole 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Sep 17, 2020 at 4:17 PM Burakov, Anatoly 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