From owner-freebsd-bugs@freebsd.org Mon Nov 25 13:50:09 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5AB941AD15B for ; Mon, 25 Nov 2019 13:50:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47M7hK1dTdz4RLg for ; Mon, 25 Nov 2019 13:50:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 35EAA1AD15A; Mon, 25 Nov 2019 13:50:09 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 347521AD159 for ; Mon, 25 Nov 2019 13:50:09 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47M7hJ5dTrz4RLd for ; Mon, 25 Nov 2019 13:50:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A0639D91F for ; Mon, 25 Nov 2019 13:50:08 +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 xAPDo8EP092626 for ; Mon, 25 Nov 2019 13:50:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xAPDo8tn092625 for bugs@FreeBSD.org; Mon, 25 Nov 2019 13:50:08 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 241684] autofs: no way to have permissions other than 755 for automounted media Date: Mon, 25 Nov 2019 13:50:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: trasz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: trasz@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2019 13:50:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241684 Edward Tomasz Napierala changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |trasz@FreeBSD.org --- Comment #1 from Edward Tomasz Napierala --- When you mount a filesystem, permissions on a mountpoint are taken from permissions from the mounted filesystem root directory. Basically: % ll total 6 drwxr-xr-x 3 root wheel 512 Nov 25 13:04 . drwxr-xr-x 23 root wheel 1024 Nov 25 13:04 .. drwxr-xr-x 3 root wheel 512 Nov 25 13:44 md0 trasz@v2:/media % ll total 6 drwxr-xr-x 3 root wheel 512 Nov 25 13:04 . drwxr-xr-x 23 root wheel 1024 Nov 25 13:04 .. drwxr-xr-x 3 root wheel 512 Nov 25 13:44 md0 trasz@v2:/media % cd md0=20 trasz@v2:/media/md0 % ls -al total 9 drwxrwxrwx 3 root wheel 512 Nov 25 13:47 . drwxr-xr-x 3 root wheel 512 Nov 25 13:04 .. drwxrwxr-x 2 root operator 512 Nov 25 13:46 .snap trasz@v2:/media/md0 % cd .. trasz@v2:/media % ls -al total 9 drwxr-xr-x 3 root wheel 512 Nov 25 13:04 . drwxr-xr-x 23 root wheel 1024 Nov 25 13:04 .. drwxrwxrwx 3 root wheel 512 Nov 25 13:47 md0 In this case, "ls -al" triggered mounting an UFS-formatted md0, which, befo= re the experiment, had "chmod 0777 ." done to its root inode. What I'm getting at - the permissions on autofs nodes shouldn't matter at a= ll; it's the mounted filesystem's permissions that's being used for the access checks. Could you tell me some more about your scenario? --=20 You are receiving this mail because: You are the assignee for the bug.=