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 4453CA0547; Wed, 8 Jun 2022 02:03:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A48D14069C; Wed, 8 Jun 2022 02:03:18 +0200 (CEST) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mails.dpdk.org (Postfix) with ESMTP id 27BC74021F for ; Wed, 8 Jun 2022 02:03:18 +0200 (CEST) Received: by mail-pg1-f173.google.com with SMTP id f65so7164618pgc.7 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=QejKpFJ3o76b7daKfqogESmqVhCJdHRMUjo2H/xz7+vuAWA32F8t0JaTP9QBhh6HaY 8XDEEDungQNy56a7QK8wjhaXYUBbhF+1V0IcN/3q9OI1SXB7xIXFygSP2w7js3RzJfbV h9xCjvWz+OT/pgMD86KEeew6CZMnpMg3fZCUZutw9JyR00FdcL4P3ef0rwx2KwsPupJX W8SUXO6r4yLKcE9nvOtVCpzkSVpxNGg2C31CO6VEhHy4ElJL0CwdyhGVgZST4QXQTniQ Y7qQ04rYZuP9ldhF8T40BrlHxGSxWD2uXefbA+aTIV5LeixPyCbCM9p2sBnQOPtLtgD2 Tckw== X-Gm-Message-State: AOAM530h1ThVw3WsIgS4b9vHfunMN9pGwYpx3PM62UmEwdyvub7qBRfA Mlhf1nF2L/gprIR6yUvtNXh3SQ== 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: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-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.