From nobody Sun Apr 23 23:07:56 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q4P7K55KXz46cGY for ; Sun, 23 Apr 2023 23:07:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q4P7K3jgxz3rKv for ; Sun, 23 Apr 2023 23:07:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682291277; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TYb+demeSv6fBxeGjBm+1aH/79kiUxXCmA4DeX88OKc=; b=oSfpr4ZLRYLtSQw3HUvVOMUDT+Z3PW5AbCxLt5gGoLBi3O1ac21yhZM5CiwHUbj5QqV5pP dZQ/qrZ6sK4USAlfii34Jrc7+6k1CFhcBkjVG0s27/Wrcx/sP3ThYHNA/Ojrj460bFWKJj JYAUHHAdXANy8zZ4Q0o1TeLfKRuwDHx5SzGonhvxtix12X6PlBl1CxsEPhsvRxKgt7GwE4 adsSDR7zXNyF9s6KCr/5BBHnjVP1DGzsa9Oyqzk2fuS4K6VKWvJUMZIhbS2AiVCijJx4Mn taRbKFOjh8N9VnbRuPkGIVE2bxbzRfchIhGf05sPhlkLG7EmCqFNZH07J6m49Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682291277; a=rsa-sha256; cv=none; b=Fbhm8KrBgqykayY3pS0GtiRKZWaJK441FevDx0sD/5gzsbpuEu1walAeaECIvssDxWJWZt Ynmn6cV63KwbzgIwlNhYuOYW1sOCSh2BEVhJWOc2Y53Wi1SfvC/3jZDB9FJzeALdsaRYd2 8B3vq3aTJJw5lLTyUQ+yd0l9LLRleZZSqRx1XlozAeiROKFbxe2o8fQ4dgn9oYZUD1o6an FTyX/jZ5pM/+KMHUCQlKQJ7P32qD9xnzyVUzyuFtkGDAx4FNqA/KXEkpvg2Tb3A8LX4Ggj Ifdy0jQ3THVYxs+do/mIuaIhwgvdEeH/VLHvvi7rfd/q4ABC/n2vsLRDh8Jz2g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q4P7J6rWyz12DM for ; Sun, 23 Apr 2023 23:07:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 33NN7uqQ050681 for ; Sun, 23 Apr 2023 23:07:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 33NN7uPD050680 for bugs@FreeBSD.org; Sun, 23 Apr 2023 23:07:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271038] "posixshmcontrol ls" gets an error when another user restricts some shared memory Date: Sun, 23 Apr 2023 23:07:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: rau8344@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271038 Bug ID: 271038 Summary: "posixshmcontrol ls" gets an error when another user restricts some shared memory Product: Base System Version: 12.3-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: rau8344@gmail.com "posixshmcontrol ls" gets an error when another user restricts some shared memory, meaning the current user does not have access to it. The return cod= e of the command is also 1, indicating the command failed, which could cause problems in certain scripting scenarios. Within the output table, a line for the inaccessible shared memory path is output: "posixshmcontrol: open : Permission denied". Running as user1, output is like: MODE OWNER GROUP SIZE PATH rw-r--r-- user1 group1 1000 posixshmcontrol: open : Permission denied rw-r--r-- user1 group1 1000 Running with sudo, output is like: MODE OWNER GROUP SIZE PATH rw-r--r-- user1 group1 1000 rw------- user2 group2 1000 rw-r--r-- user1 group1 1000 The posixshmcontrol(1) docs say that the ls subcommand should "List all lin= ked named shared memory segments visible to the caller." Since path owned by ot= her user does NOT appear to be visible to the caller, the ls subcommand should probably ignore it completely. MODE OWNER GROUP SIZE PATH rw-r--r-- user1 group1 1000 rw-r--r-- user1 group1 1000 An alternative would be to add additional switches to control this behavior= and allow suppressing this error. --=20 You are receiving this mail because: You are the assignee for the bug.=