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 6E78E80063 for ; Tue, 1 Dec 2026 12:21:16 +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 6B1CK1WN005681; Tue, 1 Dec 2026 15:20:02 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6B1CK1WN005681 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="Xen2Ka8Z" Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6B1CJoZ5005634 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 1 Dec 2026 15:19:50 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6B1CJoZ5005634 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-c505f26e9e1so887615366b.0 for ; Tue, 01 Dec 2026 04:19:50 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErHrmGy/5yn3Mp0P2GM2M0eMCH4mD53sOYh5FW6pVAEdpx1hN1Up+oyLEG0a/hS4U7IsJ9eupQ==@openvz.org X-Gm-Message-State: APuU4Z/WrsZ+QRvakO3QfqbJpBvqfSxat7T/Tu/1PRv8Lj13T7w0afXi WadnpNCTVS3+fDbsZQbZFAF1RrlsviIgPsJ8qz1Lx3+J4KSlcmeGYqsOfd7vuWi7wAhxJ0ihG1q iFlOQDBzh+LpL7Hm26T1dzcW2CUB/vcGDgwVuMhFj/LGSzX5YFfuI6g== X-Gm-Gg: AZFdTZfUOosf96eKn4JeIVytOurYiuObR5EIxCppcKu28bz0e4TjL9TCsZzD+xvCltf sW4puXuJ3p+zNmGvbVAvhx1ltVHBT9t5bjKa1PrvNhRH27i+ju3sACJuzUCNOYn9oqhbRjMKyO3 jZnoy9AEgEnfzcajc4YThg2UZke0KV2sSFXju7dgFb1zeO5ChFhEqt9isMYwzfTFu3p8xTo2LHj dDTP4c6PLiH/7nNu6Fq+HCqZnc1F5sgt4NohA3hsVMmIWDRs7dqcI0QHmiHgeSOxfkw8rfflkHy GquA0vgRcRETnpW6o4BGM/8PuYU8uolvBF4TL/61U4va6smKtqvSyCE6CvNaPBbK8z44keuvx4s Vld2vAI00lZ3MnU/F X-Received: by 2002:a17:907:d28:b0:c51:e6f3:27f1 with SMTP id a640c23a62f3a-c51e6f32a1fmr875652266b.24.1796127590092; Tue, 01 Dec 2026 04:19:50 -0800 (PST) X-Received: by 2002:a17:907:d28:b0:c51:e6f3:27f1 with SMTP id a640c23a62f3a-c51e6f32a1fmr875650466b.24.1796127589607; Tue, 01 Dec 2026 04:19:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796127589; cv=none; d=google.com; s=arc-20260327; b=h+VbWji+3KXDQMJRDDmfTdxqoKmt91krpY9dMN+qJ95lDp9mfqHU//zXPwb1i9SXHn rgD9fLYNq3uTZvnWOoR3Z0vS1/mVRZ9z2x6bYX1HvZUA9+85ApaIVoSqyoXWbolhOpwK nJiKVEgZPMgwIPTZAh4t5blBiOGFMIz8d1IiH9y4AvU2GYgp1IFQ3khkKm8KQtzrZ9tO jq20rNYkjQpsmNkt1Cu0V/hcNV0B3536lj7c1Ucm1OVxYmKspTKnHfK8oL7elRZ6pP7a U6GC6Qb4NfV58f9c0yolVhTWQ401mueolTM0ActUlP+bRJgfhczyn2Ug2UOQ4nmtnEV1 khQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:mime-version:dkim-signature; bh=TWlHwR4G36AO0Rl74+PYy38/8vFIae1rIfGk9qItm74=; fh=R8NytLLeipDfZGrMhUqAzNDAbge5+wdkh7KP26x4+V4=; b=a8G7dB4VDTI44EK6Olw3BPp3OKSdX9/mhP73Kz0xFpsBeLiq8MAN3e9YY9Db8MWOF1 LCgH1TootgC4xd+9/LKnA7IbEPU5uaY5bN2y6l/Yejr1GDsOT2uKBMPN6h0e7Fho9GTj zx1h+A5WRN5tOcfK6fh1N33gW4xWxiNw9Njy/3Ygc/stwuG8JrUZZXjo2+G+O3+PG4cH fFhnvfHJTeLPDd4LPbMKlogk7mSFQxVEgGNG0FN53StUb5Y0wZ9UvQJQZZTFM4NUjhKM hg0jWZ7SRFWqV6n/IlrNVRelD1ETFWRpMBV5NUaeFCBL0mb1s0JfcYPJazUIolPtLxHz 9hGA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=Xen2Ka8Z; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@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 a640c23a62f3a-c519f257062si1426232366b.316.2026.12.01.04.19.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 04:19:49 -0800 (PST) Received-SPF: pass (google.com: domain of khorenko@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=Xen2Ka8Z; spf=pass (google.com: domain of khorenko@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=khorenko@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=Message-Id:Date:From:Subject:Content-Type: MIME-Version; bh=TWlHwR4G36AO0Rl74+PYy38/8vFIae1rIfGk9qItm74=; b=Xen2Ka8ZT2ym xv4ss7RQKfwhkq9Ps2up0+kiYvXjNt2LEWKhzbayB/Xv8FmlHyfmIAyxaeTgSWvdeYbiFJ3sp6jUx ciIkT7QGc+nbe43ajrOwmGOKhVGKoCulRNJ4kvv7jL7GPx27mp8Io4mOGpQf2avfCRgAJNST+l/3U NqjcXAs+cjlrPlzvFFDOo33bN90orLQ6DcA8Pkn/x3Ur6NfrBJhrGzFTLQNznRXsKeIkdp4t8XT2r bDpQuBlkQun+yaA5xwVHUjQsx8SIqXHTUkxecf6387yZeYv4ULTn0h5E/AWERWd3w8D2tGrKWw2PV BM3ocRQEHpuF5pfZRWZMIA==; Received: from ch-demo-asa.virtuozzo.com ([130.117.225.8] helo=f0.sw.ru) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xYMpU-004FEE-1k; Tue, 01 Dec 2026 13:19:39 +0100 MIME-Version: 1.0 From: Konstantin Khorenko To: Pavel Tikhomirov In-Reply-To: <20261201-ve-perms-skip-slashes-v1-0-a444e8767c3e@virtuozzo.com> References: <20261201-ve-perms-skip-slashes-v1-0-a444e8767c3e@virtuozzo.com> Date: Tue, 01 Dec 2026 13:19:46 +0100 Message-Id: <179612758696.11372.8117923750242552586.b4-review@b4> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1832; i=khorenko@virtuozzo.com; h=from:subject:message-id; bh=giz946cHlvSZ5vjtd0Lpx0LPt1LU77o7Ud+q2YCed0I=; b=owEBbQKS/ZANAwAKAVGWCkf5YVwqAcsmYgBrDrtjQd1sm7yLdv3Ia3d4OwAmTLVnRBqFCIKML cpX82n/kFuJAjMEAAEKAB0WIQRWD23IPcXT0GO9CCxRlgpH+WFcKgUCaw67YwAKCRBRlgpH+WFc KinND/41InwvH6AlZwEmUadFulElcRSjXFC1zBWWbWr7k19Tb2s18Oq7tTLib8y4UGI1kZ/Z5yP 5gKtsn/iiSS1ibP/2wV7FAt20cZXap747+qeKQD7BIKHeDbmXVzz2xgO8+guy6+r9olJ4Lf/3Aj NnpVBwG+z6Jsg52K7qFxtIOMpRBoGzNc+vP4znEFW99BeI+oJit5ofnIuhe6NtaioVmo8Q6cVUq FropmeemAkhAWjLN3SpxcaCTnr1LYOeU+SIyKEjRqJTRgBGaPmyZDXtrCyExHM1TA2uGIEnHdTX FaU5h6vPgzJYQdTAJVQycieKbBwgBFOhU9tMqHinpqjo2/UkP1VyQxLJSGpdgyBggbOEbGOecIH MCLaxALvg+F49+wUD+zuUaZv6Lv/9nJKMhWuDpo8hLLEw/Jm5WNhtRa8A/lndSA8AsV1rqAO8+P M9mz1WobonTuNvi4wTHCdjx/j7ydTQZjr5JU4EIST4QOpCjeWX2k4ljfWGkWivi6jl2nBUy0EJC +akbQ7Q6xwDfaEYDwxIdS0547PNugwBNsoKvlIUI+rKT5azIk+DycHpgsGOcMHDHheSjp8zC8ZX 2jtAesQu4LrZ5YsqDOmdTgYFqd4DU0R9KL4ZusSgCj1Xd1yO98tQYGJ+2X1AQSGTPhMeBGi9QIo bYGA5XVGPeC8IrQ== X-Developer-Key: i=khorenko@virtuozzo.com; a=openpgp; fpr=560F6DC83DC5D3D063BD082C51960A47F9615C2A X-OZ-Fwd: true Cc: devel@openvz.org Subject: Re: [Devel] [PATCH hci-8.2 0/3] ve: count repeated slashes in a permission path as one 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 I won't apply this version, please send v2 with the changes below. The code of 1/3 and 2/3 is right; one comment, the messages and the test change. On Tue, 1 Dec 2026 12:43:28 +0100, Pavel Tikhomirov wrote: > Patch 1 skips empty components in ve.sysfs_permissions, as a path > lookup does, patch 2 does the same in ve.proc_permissions, patch 3 adds > a selftest. 1. Patch 1 message: say what else changes. A leading slash ("/kernel rx") used to set the sysfs root and now sets kernel. "dir//missing" used to set dir and succeed; now it fails with -ENOENT, and the rest of that write is dropped. 2. Patch 2: the comment "empty or leading-slash path walks to nothing" is stale; only a path of slashes gets there now. 3. Patch 2 message: "sys//kernel" is not a working example: /proc/sys has no proc_dir_entry children, so it fails with -ENOENT with or without the patch. "the same way as kernfs_perms_set()" names the loop patch 1 removes. The -ENOENT change of item 1 applies here too. 4. Patch 3: the proc case "//interrupts" has only leading slashes, so a walk that still stops at an inner empty component passes it. Put an empty component inside the path. The test comment wants one line. The rule table in patch 1 and here: an ASCII box table, please. Separate patches, not needed for this series. I created a task: 1. kernfs_walk_ns() does not check that the node it reached is a directory. A path through a file ("kernel/vmcoreinfo/x") makes kernfs_find_ns() read the file's attr.open as dir.children. Mainline has the same code and reaches it from cgroup_get_from_path() (the xt_cgroup path match), so it is for mainline first. https://virtuozzo.atlassian.net/browse/VSTOR-158293 -- Konstantin Khorenko, Virtuozzo Linux Kernel Team _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel