Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4715691imm; Mon, 25 Jun 2018 22:34:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLQD3eyhH26Afh6WIf25uAMi9kZr8LFCQAqjzoiZB+zFbFGCmGlPvM/ERPz8Y2pbJ0/ERlA X-Received: by 2002:a65:602c:: with SMTP id p12-v6mr52754pgu.209.1529991269469; Mon, 25 Jun 2018 22:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529991269; cv=none; d=google.com; s=arc-20160816; b=CwT3mSpvUjnzWKu9wpaTzX2kKeZp3FE+wGNiPbHDnnxjIBri2LCEfI1ZJZGukgCDBb 8c0Dp+1PwbK4Y3WB+uXMcKtB/hS0u9Yzx4HBqB1WOaraIwSRsILkggHL3vDfbPFDWWF9 uBUEPI88MBnkBtXCZ6HFQ2mm7owuJBW3Ley8PG4GSIzerZm98KOGLgEFvu/ljy5HAJy9 FvLpCaVkfEbkvYoHqDINgPFJ51N8S3qw4mA2OPQdAzOnDnhWEL9IUw9W9mdX15iQNzPB 6uhhaXMZtF1o5keEInv1CUiu0CY5TYd6puFUeTK4WPwMzTha/Isx8li3sZU/hEXzhqWQ 3xvQ== 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=173+nqW/4hsa4WBCGR7iTfbmuOTAZubBq6d2zhkkJbs=; b=tLfC2vUSTkktgfO20RaWjYQZHjAtS6E4TWN259UK4WYbSF6lZMkwhK35q1Doc2GLsf xdbfnz3gFvq/8gooSDCrKwjkpnWAkQ6I4h4pzWpfUWQ0AgNcE8Jn163R6L2Qb8dRxOzX 7ZHgP4wJkuftq0yRg8XTiN+coYbKZaiW7X17D4TtvTbHf1pge5c02IaiBG3+w6bGUK/k MypkYcUIJ5VpO24c/jAlHiGlYPqSL5fh9DqH/KL1IeqlxcI2zcH+8t0lCooMiBv8Ewff W9U8rXnpfwc5HQk1aDqMg4A+dbrzG/T6lko0H+NtPdASgHMJsQ340/1YGhg5bFNao0kX wp7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Mz80/ai2"; 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 91-v6si798795ply.296.2018.06.25.22.34.14; Mon, 25 Jun 2018 22:34:29 -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="Mz80/ai2"; 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 S1751384AbeFZFdb (ORCPT + 99 others); Tue, 26 Jun 2018 01:33:31 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:45504 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbeFZFd3 (ORCPT ); Tue, 26 Jun 2018 01:33:29 -0400 Received: by mail-ot0-f196.google.com with SMTP id k3-v6so4117745otl.12; Mon, 25 Jun 2018 22:33: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=173+nqW/4hsa4WBCGR7iTfbmuOTAZubBq6d2zhkkJbs=; b=Mz80/ai2bITAKXp8/9SX261JNM/ldDcxqrHyOW0zbVhPZ8uiXeJ6gKW9J2E2DmDZFS GLRLAXqQyOqj9D7GGJaIwAR+Z1WBRE+dixfU5a1EkLxBIEGgN+ADv3a2rA9dKiaITw6/ fV+AgrJyZKzfgEkI86UisyvPk5Zdd+IekO/Hqn665YHYVsrP0BfvxeWc1alDXO0fRjhQ uefCi9vTMR2H4AHImgADny/BobYyiRqXvvbbV6Rb7LBb5iLCPXsslwXkSib1IbCpfy4H nv6aWkqVZIrDkrS3kdx106Ot+Tgg6U5vEMRG+EREVlyPpCTbYS4tkhAQxzk3mYN8KbvM etzA== 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=173+nqW/4hsa4WBCGR7iTfbmuOTAZubBq6d2zhkkJbs=; b=PI43L2X6dwngWEqLEkXPoBi65muPJPSyPjEdwMo4grezrabVZ++kd9lkM+FpegAuvn nEf151rMH31fFHBK3J9Dtbt7/o1CerM7pc9DaIth7xPG343P4H0OIxgiP8wCtYQHaJ+J V+WPYsw5BesG6sjJcyvugYJiu8s+Seq4PwR8XBH0Wdx3yvxvhzomjaI9XcQBtqxkJ8a8 P6e84ZdN1CzwZ0rXGZgfazkjAXOnnHJRqYF7UX00psAXpdxmDiyCwRXZ5Hqlrb+NTUmo HA3mFh8dzwvE1CURB18vfK+F9e0trHdRC9UMbflGr4cclUANkTXuhbikQDujPqLpxuey qRPw== X-Gm-Message-State: APt69E36KbwtjNfgp5361xO/A+mJuV6yrPaJ0QcowdgoBv0mvSpqQ6J1 BH1a2LIteG77a+fzAZHZcIU6kC0gLXDcqwpafoA= X-Received: by 2002:a9d:25cd:: with SMTP id q71-v6mr40439ota.262.1529991209211; Mon, 25 Jun 2018 22:33:29 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:4b10:0:0:0:0:0 with HTTP; Mon, 25 Jun 2018 22:33:28 -0700 (PDT) In-Reply-To: <20180622214032.6527-1-ahiliation@gmail.com> References: <20180622214032.6527-1-ahiliation@gmail.com> From: Song Liu Date: Mon, 25 Jun 2018 22:33:28 -0700 Message-ID: Subject: Re: [PATCH v2] 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 2:40 PM, Jeffrin Jose T wrote: > This test needs root privilege for it's successful execution. > > This patch is atleast used to notify the user about the privilege > the script demands for the smooth execution of the test. > > 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 >