Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jan 2002 22:38:15 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Eugene Grosbein <eugen@grosbein.pp.ru>
Cc:        arch@FreeBSD.ORG
Subject:   Re: [PATCH] msdosfs: differrent masks for directories and other files
Message-ID:  <200201210638.g0L6cFO01596@apollo.backplane.com>
References:   <20020120102521.A450@grosbein.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

: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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201210638.g0L6cFO01596>