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 DE1A1A052B; Fri, 31 Jul 2020 09:44:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 70C1F1BFDC; Fri, 31 Jul 2020 09:44:01 +0200 (CEST) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 01404A69 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-vk1-f197.google.com (mail-vk1-f197.google.com [209.85.221.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-283-KH9jOXkVNPCGfrUcsDZ5nA-1; Fri, 31 Jul 2020 03:43:57 -0400 X-MC-Unique: KH9jOXkVNPCGfrUcsDZ5nA-1 Received: by mail-vk1-f197.google.com with SMTP id i185so4770672vki.7 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=ZFq+KfUtEXk84ifUIrP8dBe/6NQhcdJ4tV+c7a8mh5ub7u7ht1YlHxAbULM+Wlf7cT OVvhfCfvdJzdCfAWPvyETncisZ/il/WJPELW35a2P3gMWM6g/OHFqEpIQOZTEnTfCfP8 wFdQ+0IukK83Oxmi4KTpYS8Utu8Ia71jqt3vyNNGSqgU2BanOrIZU9hu4wD6xeHqMjKj QnCHxPLIS4+8ygxpbNMF2Np4Y2/ucNf0CGEkZXpz4zQdzx0ksqItpWYIMloroeTGrLOO LpaO0ATGEiRJ8ZYAIMpupxpYwS8pRmFMuguDon18Z2zEkljgy3Dg0BkoFIFfZfx3LIG9 FE2g== X-Gm-Message-State: AOAM530j8hUIMnDsNLg3aig84YDlflEdTdWRrSYKPYzdd0MKvBBJS1xZ D2xZPNQmb+Ij+Vh+JXszrGV1Lgyr+3QQ8XYngZ6asdds4JtJONhXNWapC6XSxfRkogOMbP0540H aM+9bX9xRAjV7U0XTDic= X-Received: by 2002:ab0:a8a:: with SMTP id d10mr1699205uak.41.1596181436298; 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: [dts] [dpdk-dev] Userspace testing X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" 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