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 87D37A052B; Fri, 31 Jul 2020 09:44:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AE7891C025; Fri, 31 Jul 2020 09:44:01 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 04D9B1BFDC for ; Fri, 31 Jul 2020 09:43:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596181439; 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=z64P94uDuc23vxDQJ30tFtoUTssehutFSUCWqb6N4Lk=; b=Uyw7J78dMuXI+FrcqFBPewFav9oXSS7GM1duU9NScDYE2rO6HWyDbsIQtrjtodWQiRDfJz feQpxO7lKYUoCMouU/mfwCsrjghmny33nmTrRFEwTmK7xPsujo9iHeQWA64SEb2RnuNCHP AMIyuiG24pc29W2Hv7rKRf5qeKGAqFU= Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-283-SBU6dFBzOB-rgbSCV5CRCQ-1; Fri, 31 Jul 2020 03:43:57 -0400 X-MC-Unique: SBU6dFBzOB-rgbSCV5CRCQ-1 Received: by mail-vs1-f69.google.com with SMTP id g185so4978478vsc.12 for ; Fri, 31 Jul 2020 00:43:56 -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=z64P94uDuc23vxDQJ30tFtoUTssehutFSUCWqb6N4Lk=; b=pyBK5gw1gzVPUvJIlLNDvmCmkrGhhxbA4eoUMFPfYbFoQmtrvUdj+ZyZpxah7ZC/Hg A2lhHKNEAOUkzEagAUISqihed1GcVc0NXiCQP1siI9i0SFUtzfcbaut50lZ1wMtTZOhn pIL8uMsqFPSYCbr3DNI6zZp9CyLAMKsaNql4DOuAz1cfyUgf8Rz0uXkRdYNP9gdjHqRt AqMqXFLCxXy/xhoawmL2mHPLfAcrIziYzm+lnuPUDqiMuDVRFGHGlNmMJPVuza3MK+zw fqFdyTH3c/+6b6JITBBsqWK/tAGC0UtT4AG9od2uMHnwzWb5qLLG3cz3qzxoKtuY81EE adgQ== X-Gm-Message-State: AOAM531XeCIjHRkPrf1zvUzwJXur+5wMWaS7PmRVqZxV2DNHk3TrqCBj Mv9zJTnR3sz+wzcWIC8mQplDstckuQENqGqJ6efPJlJueF6VkrZoZtDJ8uT0hpnpV8x9ovolVIX Xcz+PgZLZ53kHiFM0HDk= X-Received: by 2002:ab0:a8a:: with SMTP id d10mr1699204uak.41.1596181436297; Fri, 31 Jul 2020 00:43:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhsVpjA2637eNDxIKUCWV0yjU2RMa85UrGKkRC/DTZb/Uc/ZdezRrUcm5r4+YKxp1FbZ5j+eDhrQrONXSrNys= X-Received: by 2002:ab0:a8a:: with SMTP id d10mr1699197uak.41.1596181435913; Fri, 31 Jul 2020 00:43:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Marchand Date: Fri, 31 Jul 2020 09:43:44 +0200 Message-ID: To: Owen Hilyard Cc: dts@dpdk.org, dev , Lincoln Lavoie , Aaron Conole X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] Userspace testing 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 Wed, Jul 29, 2020 at 4:35 PM Owen Hilyard wrote: > I was wondering what everyone's thoughts on doing both userspace testing > and unprivileged testing of dpdk applications is. DTS currently runs all > commands on the tester and the dut as the root user. Please correct me if > I'm wrong, but I was under the assumption that most applications written > with dpdk would not run as root. This could present a problem since it is > possible that permissions errors could arise and we wouldn't notice it due > to the way we currently test. Given that, I was wondering what should and > should not be possible as a normal (non-root) user, and what would be the > best way to go about verifying this. That is an interesting idea. There are things that won't work unless you give proper permissions (vfio, hugepages) or capabilities (like for bifurcated solutions: mlx being the first example that comes to mind). Additionally, some distributions apply further restrictions, like SElinux in RHEL. But on this side, I don't think it makes sense, as selinux rules are distrib specific. -- David Marchand