From owner-freebsd-arch Sun Jan 20 22:38:35 2002 Delivered-To: freebsd-arch@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id D0C7737B416 for ; Sun, 20 Jan 2002 22:38:32 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id g0L6cFO01596; Sun, 20 Jan 2002 22:38:15 -0800 (PST) (envelope-from dillon) Date: Sun, 20 Jan 2002 22:38:15 -0800 (PST) From: Matthew Dillon Message-Id: <200201210638.g0L6cFO01596@apollo.backplane.com> To: Eugene Grosbein Cc: arch@FreeBSD.ORG Subject: Re: [PATCH] msdosfs: differrent masks for directories and other files References: <20020120102521.A450@grosbein.pp.ru> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :Hi! : :There is very frequently asked (at least, in Russian newsgroups) question: :is it possible to make Midnight Commander enter to archives on msdosfs :and stop his attempts to execute files there? The only way is to :use '-m 644', but then you can enter directories as root only. :Finally I got tired of these questions and patched kernel, :mount_msdosfs and its man page to accept new option '-M mask'. :This mask is used for directories only, if supplied. :If -M is used and -m is not then supplied mask is used for all objects. :I do not run CURRENT so this patch is for 4.5RC1 :That is my first 6K kernel patch so please review. :It works at least for me :-) Why not simply mount the filesystem with the 'noexec' flag? The patch looks fine, but I don't like the idea of such a targeted hack being added to the mount code and we definitely do not want to go changing msdosfs's mount structure just before the release either. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message