From patchwork Mon Feb 6 17:54:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Gherzan X-Patchwork-Id: 1738296 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=N7NFbdTz; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P9YrC1y4Cz23r8 for ; Tue, 7 Feb 2023 04:57:31 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1pP5k5-0000dB-4r; Mon, 06 Feb 2023 17:57:25 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1pP5k3-0000cU-FU for kernel-team@lists.ubuntu.com; Mon, 06 Feb 2023 17:57:23 +0000 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 4A6D142258 for ; Mon, 6 Feb 2023 17:57:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1675706243; bh=CV6gjpNu1AS1+oFf9mkdcTaBy5WrrKRp498tKqlLUdM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=N7NFbdTzNOSg1xM5A6VIltjfIZwuz3HHE6/CBRSRDEQqA6KWszl9gKJmDfMyb9KO6 m7yOry4O79tb1q8ACHRurJlVkqDoQJxZ19qGMdRIfqW8Gtmd1cENEl9SFe6tvnyr0Z g/RTBvXK98i7XEHfEAU7+lMe+iaCjRK+9fDMdcVQncJY1UFyLIW0cUC496CP4n470U +xSLX0x5qI3TzZl1kjWh7cyYbF1tQanYXD+gdTQ9FwugbRYlW4YCgKckLZ+wZFtIjM xIIcC7YVoCgZ6eRCqam9ry5CId9XXA8PFvsk5KudRRPgmzjOFuUW2/6kEyCU3fMOWm WcWlMfmBXw2Qg== Received: by mail-wm1-f71.google.com with SMTP id k17-20020a05600c1c9100b003dd41ad974bso6913864wms.3 for ; Mon, 06 Feb 2023 09:57:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CV6gjpNu1AS1+oFf9mkdcTaBy5WrrKRp498tKqlLUdM=; b=JEUputlk/wFqyuWaalJJansz0DNzeTsw7u8dpDrXv61hsFnazgajQ5F4GE1An6qHbF Eo1Y5CnUcH5Z764L1IrSug5vIOC3gXpd1O2q9/TOsa8wWmNDIbr+cGXkwalzgQejRKUf vawM9bftLWJnudtoDa0hD7tW2vcQhEcyaDMEPJ0Ez5K3SfhCnkJapnBwYsix0kGeuj4Q 6L/2wbPuJF5R/vKX2xbFDiVvJ8+VxrSPrBxcTI2XNT6OhasuptXZZ+PQGFAoM3l55uRe u7ZscQoL41Y5Yq7WIP94o6EvL2w9fXTcQIPPtkFSVhZWy2koP1Im95hGhjS1oZedD7qo A6lw== X-Gm-Message-State: AO0yUKWdmMTsIqfwC1FKUDetZoOaznoTe3F+VehahK4kUx0DHeEqQc6x /og3xrzBQM7e5boJLGlbMxOxRRrhFwh0kMNmVbeVBjp7eFylusQ7+PnCuIA+kb99xlBVf26TJ2O K9fyUkJjJGoBYpFutW3eydIFoVW96cKx2SINHeFyPUw== X-Received: by 2002:a05:600c:4d97:b0:3e0:c75:7071 with SMTP id v23-20020a05600c4d9700b003e00c757071mr555246wmp.5.1675706242546; Mon, 06 Feb 2023 09:57:22 -0800 (PST) X-Google-Smtp-Source: AK7set8qVUXq8nEt4U1I0PEP+vSr5hXQ3PrdG9BBCMk/+53PEt4HLDgMRdgDe3821anb7tNe1ghhsw== X-Received: by 2002:a05:600c:4d97:b0:3e0:c75:7071 with SMTP id v23-20020a05600c4d9700b003e00c757071mr555235wmp.5.1675706242370; Mon, 06 Feb 2023 09:57:22 -0800 (PST) Received: from qwirkle.internal ([81.2.157.149]) by smtp.gmail.com with ESMTPSA id n9-20020a05600c3b8900b003d9aa76dc6asm17871668wms.0.2023.02.06.09.57.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 09:57:22 -0800 (PST) From: Andrei Gherzan To: kernel-team@lists.ubuntu.com Subject: [SRU][Kinetic][PATCH 1/1] selftest: net: Improve IPV6_TCLASS/IPV6_HOPLIMIT tests apparmor compatibility Date: Mon, 6 Feb 2023 17:54:57 +0000 Message-Id: <20230206175455.461333-2-andrei.gherzan@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230206175455.461333-1-andrei.gherzan@canonical.com> References: <20230206175455.461333-1-andrei.gherzan@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrei Gherzan Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2000710 "tcpdump" is used to capture traffic in these tests while using a random, temporary and not suffixed file for it. This can interfere with apparmor configuration where the tool is only allowed to read from files with 'known' extensions. The MINE type application/vnd.tcpdump.pcap was registered with IANA for pcap files and .pcap is the extension that is both most common but also aligned with standard apparmor configurations. See TCPDUMP(8) for more details. This improves compatibility with standard apparmor configurations by using ".pcap" as the file extension for the tests' temporary files. Signed-off-by: Andrei Gherzan Signed-off-by: David S. Miller (cherry-picked from commit a6efc42a86c0c87cfe2f1c3d1f09a4c9b13ba890 netdev) --- tools/testing/selftests/net/cmsg_ipv6.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/net/cmsg_ipv6.sh b/tools/testing/selftests/net/cmsg_ipv6.sh index 2d89cb0ad288..330d0b1ceced 100755 --- a/tools/testing/selftests/net/cmsg_ipv6.sh +++ b/tools/testing/selftests/net/cmsg_ipv6.sh @@ -6,7 +6,7 @@ ksft_skip=4 NS=ns IP6=2001:db8:1::1/64 TGT6=2001:db8:1::2 -TMPF=`mktemp` +TMPF=$(mktemp --suffix ".pcap") cleanup() {