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 16913427F6 for ; Tue, 28 Mar 2023 21:25:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0BC424282D; Tue, 28 Mar 2023 21:25:41 +0200 (CEST) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by mails.dpdk.org (Postfix) with ESMTP id B8394427F2 for ; Tue, 28 Mar 2023 21:25:39 +0200 (CEST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id B07E33200936; Tue, 28 Mar 2023 15:25:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 28 Mar 2023 15:25:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1680031538; x=1680117938; bh=OpeoycGGr+bO+jHODnp2dHDDgbdGvy9gzBK eVhm+0ZI=; b=RLUqfZ6WLAsRQbz20lEJbWIRYt1D246JuRIpFmgFs1kAMEl1JOd TtperF2PYBODvwOp/Q/rlH3gE8Y2nL3dNtBBfA+i2dGO5gIbQeG+yD9h+ciJ+SJK AYEezVWZb6y7lxlcviBBC13Bn+ckgkODrGzLArjE/cMs7M6tPXGMt7x/K3IQxzS2 JBBITfgg52np8mq+9PTVoCj5Jf9p5PD7oB0p4qly/z/tO5p/2z+FTftd4y9Sy6tt LUsbnhRPB1DSwttRmaY+5qE1/wyyJeNf4DPuPzrrwlj8RFj2S8MAvUUwEDJAR3ml SlyBTVOefHDhIAwynZNfT5+nAdhCUIpbiNQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1680031538; x=1680117938; bh=OpeoycGGr+bO+jHODnp2dHDDgbdGvy9gzBK eVhm+0ZI=; b=u6Z+EvnjY838fg0voOfpy0dK4BrPaY3+KaDV6BrFxNQCsCOy/Hf fyGSnsgxuDSbUR75F6hPuUCAEITPhZAIszNrQTqBn9YZUuqlYwzpUD40qH2doT4Q Z1bg4H0Zitoa699LR/4JSTsByflP9CJQ/JzLTQs7Obr5gWABDdg2+ldCBR7W2819 VLGS3+i4xZqDvlYCbJdQCurHrHkPefqEZ+DrTMo7tr2F9aus8Dg5Ru6uCGd3S580 li4WdyZMxhCUq9gYofYF4RPbGKe5rX/p94ySTfUGI4K3HzWYHHkfbd1b0PQoDt6q epilbyMx5/IZtzp0Lo7Q0Jot1mwMUgN9MFg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdehgedgudefiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhho mhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqne cuggftrfgrthhtvghrnhepgeffhfdtffeggedtkefgieevjedvvdekgeevfeetkeektdfh teevgedvffffledtnecuffhomhgrihhnpeguphgukhdrohhrghdptggvnhhtohhsrdhorh hgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Mar 2023 15:25:37 -0400 (EDT) From: Thomas Monjalon To: Isaac Boukris Cc: users@dpdk.org Subject: Re: Running testpmd as non-root user with uio_pci_generic Date: Tue, 28 Mar 2023 21:25:36 +0200 Message-ID: <9601752.ag9G3TJQzC@thomas> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org 14/01/2023 23:17, Isaac Boukris: > Hi, > > I tried to run testpmd as a non-root user with uio_pci_generic (i.e. > not vfio-pci) on a vmxnet3 interface by setting the > 'cap_ipc_lock,cap_sys_admin' capabilities as according to the doc at: > https://doc.dpdk.org/guides-21.11/linux_gsg/enable_func.html > > But that didn't work and I was still getting the documented error: > EAL: rte_mem_virt2phy(): cannot open /proc/self/pagemap: Permission denied > > I dug a little and found that I had to add the 'cap_dac_override' as > well and then it worked, the hint was at (which also includes a small > demo program): https://bugs.centos.org/view.php?id=17176 > > I thought it was worth sharing as I have seen it being asked a couple of times. Thank you for reporting. The preferred solution is to use the capability DAC_READ_SEARCH. The DPDK doc is updated: https://git.dpdk.org/dpdk/commit/?id=50b567c66da268bcc (so you become a DPDK contributor :)