From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 747498045D for ; Mon, 2 Nov 2026 14:10:38 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6A2E9Kai025596; Mon, 2 Nov 2026 17:09:21 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6A2E9Kai025596 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="KgEACmBH" Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6A2E9IPO025592 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Mon, 2 Nov 2026 17:09:18 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6A2E9IPO025592 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-48e0389d6f9so1512607f8f.1 for ; Mon, 02 Nov 2026 06:09:18 -0800 (PST) X-Gm-Message-State: APuU4Z+wfU36h/dVDikQLgO4TALYzlgmE//Sv+ZbnGY3QPCYm1+UKslC FLF5hlAiYlRcI4gEVhrUzhthXMEiw88g5Kn3rJ7t4XLQISXeQbtaIC8EfRRuzHIlsUzUU1ADYH2 rnSi5pgKohuvwYsHm6K8VGG7Sjv0wg56XGH+9PogMnXLjEuymv5IO2Q== X-Gm-Gg: AYBFou1w7yHiVZH7lsAbKTi1Az70nqrrveC+48iPUUMEUNXxWtxv5wxAznzZHx0m1fa pbMLPmtIQUAmgj3S5DTaVgXhhZctSTxEOm6qlE4RY9GZ4pfTO83HbWagJWvtaYclZ4TeUhYwEAs xTUKDsKrynOMeVWd5yyxLXvgMzZee4UHC1UQGVKPSEYQrfjW654ksi5eWZyGM4O93OSDEfg8DeP S0H8Zx4WRfLmqQY7eGXKAfolcRt4cVblI1/zK9BEjm2sIC2jkIxOp/gpRbZq7Z2algPPcqXfhYG LBJONXCMmdDZ6MkdBthendXVBpMhWeeDzf5AMyuL0jLubWaqOQDhVU+bMqiRNx3j2TOPzVFJh8y pFNgsE52R69avNJFT9LZ5OjYx X-Received: by 2002:a05:6000:2884:b0:48e:b8f:f7d9 with SMTP id ffacd0b85a97d-48e6e2bc041mr22968266f8f.6.1793628558199; Mon, 02 Nov 2026 06:09:18 -0800 (PST) X-Received: by 2002:a05:6000:2884:b0:48e:b8f:f7d9 with SMTP id ffacd0b85a97d-48e6e2bc041mr22968170f8f.6.1793628557478; Mon, 02 Nov 2026 06:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1793628557; cv=none; d=google.com; s=arc-20260327; b=aOTlKtvZBKo2FfK+s9L4A7Y5Yjg+2uCZeGVTdi2mP0k0BW1kvIzWE/aCxsm/sTeHpd IcG3cDreWiUdVwraGM7v09rvcPI2REfRxQlCeP7nNv/y5kxRW5r1I5BBw0gwzVSzx9h6 AdvE71/BzbVFT7Bdxo0mLcFwBvz9NvvbvWV3gKzlFnBuG/vYX646e9g8UMYe/pjJCqou h7oZz8jkubrZRIG3022xuH0P/HzEuqD1HqhqzKz5IhuNWTJsFPDXAVaAKMTFS3XOr9xE CEc15d3aQtICB3gEgZ18rgHzlr2419x/1KuaT3APZH1M5wuqUJ8YYe9JMz4sE5Mrij5a jxkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=z5RrbEN6aawGByosH8yjzAbe/rGLRvg47IxjHBO+4c8=; fh=WpT6aB7RBAGHZeWZzqAr71yzRFbPTYkPWKsRagLn48Q=; b=Zys4gtBgY0mXcc5JHrHqqRwrqPXfdnXMnbj1KBYhNFgWbLu9PYxu8F8JcJ9w9kQKsI 5jhygZGrdriGZt83LQyER778pqPJDca4kwa83qGXR2s+9qLgdY7If8EiDSpc9wFMT6kI HKRM7qZkGprctHUZLc4mF6eX0vmxKtKP71ZMms3pEiPpBtafn7NudFnccSFd3kIiaX9C EeOVMB5m2ILIdRv9ftZke+9eKsZm0lDxgNa4ylSaGU62I0G1YFoy9N4qNO2ylyhch4vd 8iAkvXWamaLziGbt/9GzlzlCRA6h/P1e1mD9yS4skWyzH8drLCJRgtqFiELnzP6+B3CB 7GIw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=KgEACmBH; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-48e71bbae48si19020258f8f.251.2026.11.02.06.09.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 06:09:17 -0800 (PST) Received-SPF: pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=KgEACmBH; spf=pass (google.com: domain of eva.kurchatova@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=eva.kurchatova@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=z5RrbEN6aawGByosH8yjzAbe/rGLRvg47IxjHBO+4c8=; b=KgEACmBHDmQq am9MxPSiGKIsm2JrEY6ctwbacbUalrCGA/iuvmp/XQROrKNpbmV7O3XOLo7A3rpUtL5rTChX5K9Tu P7Kw+8sip1a1L+R9p4vUlvLDuYLRnb7MIHO/6TEHz6RGakG9U2uwUa7c7TqdU2FpvwqO0HXvFSoaU OwgqR/NUft0Ah9gR1fxstyD5OsTSIB8ec8wH1k3Rkh8cNQzexeBRe5apBoSWQr3DXXOHMAYpe962e 4sjqQTi1VrU125stfZvXDFQBK1cOZjvG4LPv8bQzvDjGRgAeV6pc25YtuOZvLLlpW73Yof+gsTLEx GPejhmWcoyaLn31vTe6juA==; Received: from ch-vpn.virtuozzo.com ([130.117.225.6] helo=LekKit-T14) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xNsex-00Bjao-0F; Mon, 02 Nov 2026 15:09:08 +0100 From: Eva Kurchatova To: khorenko@virtuozzo.com Date: Mon, 2 Nov 2026 16:08:56 +0200 Message-ID: <20261102140914.2315569-1-eva.kurchatova@virtuozzo.com> X-Mailer: git-send-email 2.56.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1] selftests: ve: grant the root directory as well X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org allow_path() grants every directory above a file except the root, so a fresh VE can reach the file only if the default permissions already let it traverse the root, as vzctl sets them at boot. Without that, ve_perms.sysfs.enforce_allows fails. Grant the root too, proc refuses an entry for its root with EINVAL, as its root is always reachable. Fixes: ce7800c78ae9 ("selftests: ve: grant the directories the files sit in") Feature: fix selftests Signed-off-by: Eva Kurchatova --- tools/testing/selftests/ve/ve_perms_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/ve/ve_perms_test.c b/tools/testing/selftests/ve/ve_perms_test.c index 8096b1fa3b43..c57325d10901 100644 --- a/tools/testing/selftests/ve/ve_perms_test.c +++ b/tools/testing/selftests/ve/ve_perms_test.c @@ -351,6 +351,8 @@ static int allow_path(int cgv2_fd, const char *path, const char *file) char dir[PATH_MAX]; const char *sep; + if (set_entry(cgv2_fd, path, "/", "x") < 0 && errno != EINVAL) + return -1; for (sep = strchr(file, '/'); sep; sep = strchr(sep + 1, '/')) { if (snprintf(dir, sizeof(dir), "%.*s", (int)(sep - file), file) >= (int)sizeof(dir)) -- 2.56.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel