Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2289158imm; Thu, 21 Jun 2018 10:01:43 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLA9JrXFFuKZA4LLJUFfV1AB3Xk1aNjDA26O9FszMFkBlZpXoOB2IBaVt8UqrzmlP+gzgDF X-Received: by 2002:a17:902:8a87:: with SMTP id p7-v6mr29133030plo.281.1529600503329; Thu, 21 Jun 2018 10:01:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529600503; cv=none; d=google.com; s=arc-20160816; b=DPLIVrnjF1Ip9O0by2YdG6Rmy5KnZ6ByHI5ChgjTJvtA6MfJb5JzM1m1n/jT50SqiY YxJilKTPGFkoP3fyMk0z2exiETjMumYnYurOh+txhH/U/Pw6sfsHO9nStMspVq8vfpOF vCRiEarqwI8jZ5Pv05YQj77O39KcM1n9cWDGIcClnihDtiognhCVsrCQz2OfuYpuzieu YYNgxguwVGffIqeyxgIcRjWq6MgIxSuI06aW6k9X/IMEScBXECY+yh31Liy8RPTJfjvi hvdTEbJmMkdUFr7oMUxKGud9hM9sF1BRnH1OCCKAWtYvZaR96J2EI6ihnXHbWxgxZZIv GIyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=IJ3aT0MdDAiuGvRCjSjjEY3q2fim+Hm+RnUZWux4p1g=; b=xcdg2AoTTFSjQgK8gwo/Px3E54IEnTIulFHdV3nGyLbJpFI23T+8Xzpi92HI0zXzSh +rE8+ycBSfPjYqOeriJBFNFt7yEg34e20DsXViUeoSncWQvzvMvRIn4BqLuvPqusd1Xe 9iN/VPUuyukZPxPloPMkMcDgRdE5Cbt4PTZD28N4Uwuerlu0gTcwK2FlCD4R5hPl1zGu PWERJSF8nz2cRVvrmyhvXXMFeSw5zjagullMkm0JkH+WQyuKYA4C+I40BG/p0tNawFTb SkUo2ykVz9yTxDlUIrxsrpnCgkWxVjpiBRQpcLEgdWPnNNoRP81rjLLFny0ur5yMQtOG 44Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TDATeKRW; 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 81-v6si4822390pfz.334.2018.06.21.10.01.29; Thu, 21 Jun 2018 10:01:43 -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=TDATeKRW; 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 S933552AbeFURAo (ORCPT + 99 others); Thu, 21 Jun 2018 13:00:44 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:44505 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933438AbeFURAn (ORCPT ); Thu, 21 Jun 2018 13:00:43 -0400 Received: by mail-pf0-f194.google.com with SMTP id h12-v6so1822414pfk.11; Thu, 21 Jun 2018 10:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=IJ3aT0MdDAiuGvRCjSjjEY3q2fim+Hm+RnUZWux4p1g=; b=TDATeKRWGrE/z23bCdFi//soLQ6AwtYLUqNvooobhDV+4lqo5fgDdFpsStGn9HHmBz teRGGmG5EcaISC8PF6tC+dw65zElbN3+xlAl7Q/34jP5HenJDPAstJr3iazayDVHTpHq 7iDov0x65wwdY1NeVxPd08ywgXVSdR5F90b7GMLPxo48iD/9TK2DTeVUNhrrQPQ8Wd0N A4wDY3pDsJMsnExjqFv3vjLyTVD4ULI0JDwhXmGtgx3Hb9aorOGIZHBsnrSVveyFqws8 TZ+qteuvxUWzpEUY2H0AmWSeD7OAGyEVuvJAm+OWPVxWE/2fJlBKSq2/iibumhn4cQi0 nWMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IJ3aT0MdDAiuGvRCjSjjEY3q2fim+Hm+RnUZWux4p1g=; b=CzgB6nlKsJzlHseIjTmrHT617uSfzmO284lmyMmIcp/EVOs9Gd2okD+DeOco17nA3G Yz38UETGNCJpepoE1K0ZHzpAsUq66LmoS8AgPfr6Z7YFUHU6jpDW+Fch/LoF4jPJn6z7 Vv0H2wuwNHF2cbFV197jk/D7bygtboJBX7DujJ5E9EwdDSrjStUMMJXnt/UQgAbt5KDD F9XQRfEpQJUefnXRhZYOrWWvvvbql/7UYXaTs0Q25JTBxwqe4sf8aepSJ26yVoHyaM83 MdohODdPZY4dYDjquH8vS+ZUT82Wo3b3791Cj6Lj5aksXzOAjhViRaZPEEn/TLSzPHM8 T44w== X-Gm-Message-State: APt69E2EqUeSsC2pcQ+raSjQBzweI6tNSc/mD77TkHzNae+s3+N5gjA2 amYfavcJfu5Pbtb5tMqcZ98H5QCC3ac= X-Received: by 2002:a65:5cc8:: with SMTP id b8-v6mr23241183pgt.85.1529600442604; Thu, 21 Jun 2018 10:00:42 -0700 (PDT) Received: from localhost.localdomain ([122.174.189.32]) by smtp.gmail.com with ESMTPSA id z18-v6sm7233182pgc.0.2018.06.21.10.00.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 10:00:42 -0700 (PDT) From: Jeffrin Jose T To: ast@kernel.org, daniel@iogearbox.net, shuah@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Jeffrin Jose T Subject: [PATCH] selftests: bpf: notification about privilege required to run test_kmod.sh testing script Date: Thu, 21 Jun 2018 22:30:20 +0530 Message-Id: <20180621170020.9073-1-ahiliation@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The test_kmod.sh script require root privilege for the successful execution of the test. This patch is to notify the user about the privilege the script demands for the successful execution of the test. Signed-off-by: Jeffrin Jose T (Rajagiri SET) --- tools/testing/selftests/bpf/test_kmod.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/testing/selftests/bpf/test_kmod.sh b/tools/testing/selftests/bpf/test_kmod.sh index 35669ccd4d23..378ccc512ad3 100755 --- a/tools/testing/selftests/bpf/test_kmod.sh +++ b/tools/testing/selftests/bpf/test_kmod.sh @@ -1,6 +1,15 @@ #!/bin/sh # SPDX-License-Identifier: GPL-2.0 +# Kselftest framework requirement - SKIP code is 4. +ksft_skip=4 + +msg="skip all tests:" +if [ "$(id -u)" != "0" ]; then + echo $msg please run this as root >&2 + exit $ksft_skip +fi + SRC_TREE=../../../../ test_run() -- 2.17.0