Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3476339imm; Sun, 24 Jun 2018 22:11:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIUkfJL3pNZ+6jC33Mg9HIPrayPK+3/8ZDnHhv7Kvt+ml2PhscyuHaGFlooQWgsFkQlcHI2 X-Received: by 2002:a17:902:301:: with SMTP id 1-v6mr10847475pld.127.1529903480990; Sun, 24 Jun 2018 22:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529903480; cv=none; d=google.com; s=arc-20160816; b=oqb7/WMbn6GPr5tuAC+iqrbbdNU+JiPqW8QeYrE/6wk0JVnH+sc6iTGx9mMq3jAXwp 9iWGSj6ttJnapE4lWhv7neKpDvKG8XwvLuL9T8E+XPr5W4bbymIanJluUYfsaOjnCp4H OREr+UEkCjMFqLD3cYR4s7Jmvrjg4HdzCsR+5n8ZPNlPEGguKl4ESUR8wC9pRO5OJ/Tp K7ky5cf1ReJC0F9FJLfQJTL5EWvHWL3X47LzYhznBlhGMKSeSkjwSTsAZT7YJjZiHz7C OdV665ztVml3PXJ/Bi4cD16sEEhVEd97TssBeF+KEUmCGfC6LfsHoPyui0HszR9dOxeF oE2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=H3BHhImraftB/8/PC119Ykcp+BYpWiefnn4OGWXm4cI=; b=bGaf4TonlLl3kOdgkfluOfPZOLvuZ22KYCCROoOwtHUC+DayLik5HskPdfnpp9OZed r3FLQjfjqkSkL8vwV/BMpVOYTNjpBYSgr5fwFFivE2TVSYOWFeiQS+/x/OUOeJq9c/0f 7NZmElk2/rr+sez4XkRDFpkr+JqoRTzan/iNSOh79lQb+/0sw/qPL1yaYTtpsUQ02tYt VeXIsD8Guy0Q3bmaRDpX2hznpMadRE2Q2US67/cQmGVcGtXHoGxcdcYLQu+SmA9YRDfq u2p753L0zedz/XvsxURvv8LUVZeMvtYVymL1BOSFWxjRxUARzrXicMurU7pxXPB/O1S0 rfHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=neOA11xm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4-v6si11004718pgo.568.2018.06.24.22.10.58; Sun, 24 Jun 2018 22:11:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=neOA11xm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751974AbeFYFJb (ORCPT + 99 others); Mon, 25 Jun 2018 01:09:31 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:41201 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751080AbeFYFJ3 (ORCPT ); Mon, 25 Jun 2018 01:09:29 -0400 Received: by mail-ot0-f195.google.com with SMTP id d19-v6so13669592oti.8; Sun, 24 Jun 2018 22:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=H3BHhImraftB/8/PC119Ykcp+BYpWiefnn4OGWXm4cI=; b=neOA11xmZyM9irlykqs82AM+Uu4KFG2FJuwYliVR5BM5kXHnmyxm5s9OghlWZRlCWO I2vYBueX4qS3u7pLsBg7886RyDKFa5il8CA9MPnGjAUghEqxHwlzuo0TIK0hkS8D3Dqq IRzvBSa6+5EAaPfUXfqJuSNgpCIbLJ7pzmlCL6pOe9DBs6VEW2d1kxsSpPvkd7FGVDEJ tVHv9dLlb398MM9TnUhCEIoF4w3tcLWKbmZq063EFD3uTvTxo6Yay7grBouzNs4JKGJb lIRHkg44ibYizyIeSHtYO6K1jICacJ+iUq8mm0+BHOC4qUMIDYTB/QXGeCrGl5LL1xQo LD5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=H3BHhImraftB/8/PC119Ykcp+BYpWiefnn4OGWXm4cI=; b=ARuEXaliF+qz4+teXR9Zmt+I3FdXCe1wvF9MNLIeVbPSuS1rZEakuLibZS6/UEOPOC N9EsIxMZvn/p+RmJr+vpxgWl/CVkBHbAa/nc+j83z1EtJDoPewD8bYWXWpEfbV0QZwX2 Q8+sMM+qpvv+pRzCnx5NLQj+V7Jh5Gm2xK0fQ9YJIeEoJi8F86Llq8o/VyehFKpEk9YC FzLLxtqd93DL/B3bKixiek4C4dE7k1I8ALF28MORr2YXOQQN+HZQav7UxxkTxAlG9UOw uXU5mks93afHp7dxv3wflkATqeKws67tW4il6bSIzx7UyTbJCRfp9i4DLlNgcm9ce/Xo 1X/g== X-Gm-Message-State: APt69E3KlpzPiBc0zTvjUWBPRjFHGX/HkpK9eTZXhART7tQTvzYx+54y 8hp2WSFxKEubdfQJTBHFebmrDEv+twZxPbXWlCX3YA== X-Received: by 2002:a9d:508a:: with SMTP id b10-v6mr435519oth.262.1529903368716; Sun, 24 Jun 2018 22:09:28 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:4b10:0:0:0:0:0 with HTTP; Sun, 24 Jun 2018 22:09:28 -0700 (PDT) In-Reply-To: <20180622200053.4957-1-ahiliation@gmail.com> References: <20180622200053.4957-1-ahiliation@gmail.com> From: Song Liu Date: Sun, 24 Jun 2018 22:09:28 -0700 Message-ID: Subject: Re: [PATCH] selftests: bpf: notification about privilege required to run test_lwt_seg6local.sh testing script To: Jeffrin Jose T Cc: Alexei Starovoitov , Daniel Borkmann , shuah@kernel.org, Networking , open list , linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 22, 2018 at 1:00 PM, Jeffrin Jose T wrote: > This test_lwt_seg6local.sh will execute with root privilege. > > This patch is atleast used to notify the user about the privilege > required related to smooth execution of the script. > > Signed-off-by: Jeffrin Jose T (Rajagiri SET) Acked-by: Song Liu > --- > tools/testing/selftests/bpf/test_lwt_seg6local.sh | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/tools/testing/selftests/bpf/test_lwt_seg6local.sh b/tools/testing/selftests/bpf/test_lwt_seg6local.sh > index 1c77994b5e71..30575577a8b2 100755 > --- a/tools/testing/selftests/bpf/test_lwt_seg6local.sh > +++ b/tools/testing/selftests/bpf/test_lwt_seg6local.sh > @@ -21,6 +21,15 @@ > # An UDP datagram is sent from fb00::1 to fb00::6. The test succeeds if this > # datagram can be read on NS6 when binding to fb00::6. > > +# Kselftest framework requirement - SKIP code is 4. > +ksft_skip=4 > + > +msg="skip all tests:" > +if [ $UID != 0 ]; then > + echo $msg please run this as root >&2 > + exit $ksft_skip > +fi > + > TMP_FILE="/tmp/selftest_lwt_seg6local.txt" > > cleanup() > -- > 2.17.0 >