From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9B2ECA0547 for ; Wed, 8 Jun 2022 02:03:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7ED024021D; Wed, 8 Jun 2022 02:03:18 +0200 (CEST) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mails.dpdk.org (Postfix) with ESMTP id 267C34021D for ; Wed, 8 Jun 2022 02:03:18 +0200 (CEST) Received: by mail-pg1-f180.google.com with SMTP id q140so2305970pgq.6 for ; Tue, 07 Jun 2022 17:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BClscSQnzyj6EsO+rjPc20YmyTKmL4nMkLQ83wFMUpM=; b=dwq3xgt8r+loXj9RqOgg/ob8MEK9A6paNFzOkRzzOlYDvcogdRHdArwoZrMiGjrdi6 9MxqyT8s7SYM0n+3LzdeeCFudQUkk3RRvQBcEZU00tLK0bXvA8uI4X+hQtytLgnptog2 xNXU2cO7q43axAlHuNdMKMNky4JmPPUzzA970FdZpFCeGk1tVyHfvRgXiWPuLkJNOhVR /A6/y+0ZQL5RUMksGnjoAURbOeA50sKYCen14LbpWNtONlJrLWg8trGrc7GABJ2j7CG8 vH+pFe05BZbedpfqwPBVHKyq/IwlJJpWUg4nR1OYh509O/w5DvRhRcRIMUsf97RS/2Uj eWuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BClscSQnzyj6EsO+rjPc20YmyTKmL4nMkLQ83wFMUpM=; b=p6gaOh8tl6FLzf49fRkRw/i/ZJ9s/umFpUwHa4G0DblUC9gk3W1wm6gyk2CPZWlH8h ooaV7aGHsYrRuCmlk1Y86or/s8Cmoif9Lh1xbntOdB88mueL/7F+7KFeFp8xuyoE/gD5 CMNtLC7m5ahYxcre0+y1yyJjIPiA2DZ/JDo2bvSjBBTyQWOdsD6st8caMaz4qVtJxLiu /ea1kQZUTtvefd/HuuQ+GKejqPd/oH6rDvg6FHRDkETXX7xqLTT1E28ywR6q0zrioCX2 eq05LqZZ57anrnOTeGuRw3vguO0LKF/tmE7fy7r6sH4upiHWbQmJmvutTNH6Uz2mhiA5 50iQ== X-Gm-Message-State: AOAM532+BpDCOmcmTkQCMWGEpCCLGWHSFwsx88QMAcgBML0ce/Hhe/wR 4gji+7Pv5IY3PbHcP8tx/dQM/w== X-Google-Smtp-Source: ABdhPJwWi5XRyyIjTTsAchywGgPg1KfjHPnRAaf28yxaKwySDyR/LAU2pSowk6MrlvgeRmrTXziLSA== X-Received: by 2002:a05:6a00:2450:b0:4f7:bf07:c063 with SMTP id d16-20020a056a00245000b004f7bf07c063mr97877215pfj.51.1654646597328; Tue, 07 Jun 2022 17:03:17 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id p1-20020a1709027ec100b00167736c8568sm5549590plb.70.2022.06.07.17.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 17:03:16 -0700 (PDT) Date: Tue, 7 Jun 2022 17:03:14 -0700 From: Stephen Hemminger To: Dmitry Kozlyuk Cc: , Thomas Monjalon , , Anatoly Burakov Subject: Re: [PATCH 3/4] doc: give specific instructions for running as non-root Message-ID: <20220607170314.1856a3d9@hermes.local> In-Reply-To: <20220607234949.2311884-4-dkozlyuk@nvidia.com> References: <20220607234949.2311884-1-dkozlyuk@nvidia.com> <20220607234949.2311884-4-dkozlyuk@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Wed, 8 Jun 2022 02:49:48 +0300 Dmitry Kozlyuk wrote: > The guide to run DPDK applications as non-root in Linux > did not provide specific instructions to configure the required access > and did not explain why each bit is needed. > The latter is important because running as non-root > is one of the ways to tighten security and grant minimal permissions. > > Cc: stable@dpdk.org > > Signed-off-by: Dmitry Kozlyuk If running with multiple containers it is often better to have OS take care of mounting huge pages. https://github.com/systemd/systemd/blob/main/units/dev-hugepages.mount And a good way for managing multiple applications using hugepages is to mount device with group permissions and add supplementary group to each container.