From nobody Fri Feb 6 12:09:27 2026 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 4f6tDl74d6z6R56j for ; Fri, 06 Feb 2026 12:09:27 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f6tDl691mz3Jfr for ; Fri, 06 Feb 2026 12:09:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770379767; 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=iogWRBsFvG2SjRhfydAg7BbFivYC4Jh+AIJQBSbskVY=; b=a+5u8hzoV3nd+vlnsJ0GpZRQ+HEbpDdQc6bFJp+eB6B0uouyGzpLETUmvj4bZ4BUOxFyUG IXBUpH3zc4CQb/acY2oXhTWe8KOumL06puXREXKE+vMGzUgAjna65iJrlvaBZCbtBie8B8 TLODWVqCnt7ezQKCdQHnQ7Aio/HHon1tHvrNitq05DN5L6h0GNEP4jBYaL6PeqrGBDLHgE +2bIbUcI9wre4kbyJj/czme4aA8OdoTGjYZRWbGRHbBWVdsF8QYDyWEeWj6ZzoD6Rb1jbz ibKBZPbwYS+4hXVWL6lGcb4Bq+9wZuzSvXBMdMNklaZ8EagXl1lfIKx9zppxEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770379767; a=rsa-sha256; cv=none; b=cBkbbXnz9wW8GQl7N+/+vlP6KeC1RnXgz6UI/oudxUO/slX0jkw+nUn5VOewdRzVe39s84 BwRXlsHDnAeUkz00gZsELmkWbvsnzyu+SJn5rLZtHv/trqy5SYUSyNjsR93UTq+eA26j1M YvP1eJB+KW+QlcKB5AMIQQfoGXEl/lFM+pcEtnE4EK81dykbXyzeplx5wDVmvQ729a0cxp v09L53c7x2bujZMALTk74lF25A8uAPt7bMBEOv/+mnaFC3YbhdlzdIUhrvunaj7Zphx8I+ 2nE4+jJsOPtldpND/5jaumOjL4BBKz5vK0dI8Z4ZnLXML6zFAk87Q15EFPO8/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770379767; 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=iogWRBsFvG2SjRhfydAg7BbFivYC4Jh+AIJQBSbskVY=; b=EFVmu8iaqj0tFj1+Rj2hollPLPodWB5h5psXu1WZ2nqV3ULbVWcFeHpy1Yw2oMUNznoy2n N0tVlGHtdVNNR58slR2yrqxIc5lZCxLdDT+eRcDNX2YsFTA6RsemdbagFSZ0Jc7wgBY5s5 dBY9JHlk/6Tj3gFbCtHyWHkaDQjT5BdSGbICUawUGLFeKbUFk6nXAi6xjuQgt8mREng+pi ZUVxTqGOEQ4l13fxrOG8Zzp2o5paH2ikVisJddANrnbq8OdUjCFi9lO5Em5ILnvePWkcSA 4alVdIZczukUx7QIWNJYfQLlHFB6pytm8uqzfRMiqRYoBc34B+/o1cqoBRsnmw== 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 4f6tDl5V8jzrB for ; Fri, 06 Feb 2026 12:09:27 +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 616C9RGg008283 for ; Fri, 6 Feb 2026 12:09:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 616C9RE7008280 for bugs@FreeBSD.org; Fri, 6 Feb 2026 12:09:27 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 293001] Granting the privilege to read(2) directories to non-root users Date: Fri, 06 Feb 2026 12:09:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: whr@rivoreo.one 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293001 Bug ID: 293001 Summary: Granting the privilege to read(2) directories to non-root users Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: whr@rivoreo.one As demonstrated in bug #275099, as least in case of FUSE, direct read(2)ing= of directories can sometimes be useful; a FUSE-based file system implementation may actually provide useful data for read(2)ing from a directory node. In current kernel, the ability ro read(2) directories is reserved for proce= sses with PRIV_VFS_READ_DIR privilege, even when security.bsd.allow_read_dir is = set to 1. I want to propose a few ideas to deal with this situation: * Allow unprivileged users to read(2) directories if security.bsd.allow_read_dir is set to 2 or higher. * Make an exception for fusefs(4) so unprivileged users may read(2) directories in fusefs(4), as long as security.bsd.allow_read_dir said so. * Introduce a KLD module to great selected or all users the PRIV_VFS_READ_= DIR privilege. --=20 You are receiving this mail because: You are the assignee for the bug.=