mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] [trivial] fs/vfat: add *.cmd to filenames listed as executable by mount option "showexec"
       [not found] ` <8762foe543.fsf@devron.myhome.or.jp>
@ 2012-02-03  9:55   ` Roland Eggner
  2012-02-03 12:34     ` OGAWA Hirofumi
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Eggner @ 2012-02-03  9:55 UTC (permalink / raw)
  To: OGAWA Hirofumi; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2302 bytes --]

On 2012-02-03 Fr 16:41:16 +0900, OGAWA Hirofumi wrote:
> Roland Eggner <edvx1@systemanalysen.net> writes:
> 
> > The mount option "showexec" provides a somewhat more native view of vfat
> > filesystems:  only filenames *.exe *.com *.bat are listed as executable, rather
> > than all files.  This patch adds filenames *.cmd to those listed as executable.
> > *.cmd are usually scripts associated with the shell "cmd.exe", which has been
> > the default shell in several OS versions of its vendor.
> >
> > Signed-off-by: Roland Eggner <edvx1@systemanalysen.net>
> > ---
> 
> Hm, this may be good for someone, but this may not be for someone. So,
> this probably should be option if someone really care it.
> 
> I'm not thinking about how though...
> 
Think of VM images of recent versions of the FAT originating OS:  currently
"showexec" will miss roughly half of the files, for which it is intended for.
IMHO this patch provides a very cheap completion of a feature of the vfat kernel
module.  Cheap in terms of only 9 characters additional source code.

If you really see an advantage in the current, incomplete state of the
"showexec" feature, compared to the proposed, completed state:  please elaborate
your objection.

> > --- a/Documentation/filesystems/vfat.txt	2011-10-24 09:10:05.000000000 +0200
> > +++ b/Documentation/filesystems/vfat.txt	2012-02-03 07:26:30.457441230 +0100
> > @@ -114,7 +114,7 @@
> >  
> >  showexec      -- If set, the execute permission bits of the file will be
> >  		 allowed only if the extension part of the name is .EXE,
> > -		 .COM, or .BAT. Not set by default.
> > +		 .COM, .BAT or .CMD.  Not set by default.
> >  
> >  debug         -- Can be set, but unused by the current implementation.
> >  
> > --- a/fs/fat/inode.c	2012-02-03 06:23:35.721409360 +0100
> > +++ b/fs/fat/inode.c	2012-01-23 01:35:29.000000000 +0100
> > @@ -326,7 +326,7 @@ struct inode *fat_iget(struct super_bloc
> >  
> >  static int is_exec(unsigned char *extension)
> >  {
> > -	unsigned char *exe_extensions = "EXECOMBAT", *walk;
> > +	unsigned char *exe_extensions = "EXECOMBATCMD", *walk;
> >  
> >  	for (walk = exe_extensions; *walk; walk += 3)
> >  		if (!strncmp(extension, walk, 3))

-- 
Roland Eggner <edvx1@systemanalysen.net>

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] [trivial] fs/vfat: add *.cmd to filenames listed as executable by mount option "showexec"
  2012-02-03  9:55   ` [PATCH] [trivial] fs/vfat: add *.cmd to filenames listed as executable by mount option "showexec" Roland Eggner
@ 2012-02-03 12:34     ` OGAWA Hirofumi
  0 siblings, 0 replies; 2+ messages in thread
From: OGAWA Hirofumi @ 2012-02-03 12:34 UTC (permalink / raw)
  To: Roland Eggner; +Cc: linux-kernel

Roland Eggner <edvx1@systemanalysen.net> writes:

> On 2012-02-03 Fr 16:41:16 +0900, OGAWA Hirofumi wrote:
>> Roland Eggner <edvx1@systemanalysen.net> writes:
>> 
>> > The mount option "showexec" provides a somewhat more native view of vfat
>> > filesystems: only filenames *.exe *.com *.bat are listed as
>> > executable, rather
>> > than all files.  This patch adds filenames *.cmd to those listed
>> > as executable.
>> > *.cmd are usually scripts associated with the shell "cmd.exe",
>> > which has been
>> > the default shell in several OS versions of its vendor.
>> >
>> > Signed-off-by: Roland Eggner <edvx1@systemanalysen.net>
>> > ---
>> 
>> Hm, this may be good for someone, but this may not be for someone. So,
>> this probably should be option if someone really care it.
>> 
>> I'm not thinking about how though...
>> 
> Think of VM images of recent versions of the FAT originating OS:  currently
> "showexec" will miss roughly half of the files, for which it is intended for.
> IMHO this patch provides a very cheap completion of a feature of the vfat kernel
> module.  Cheap in terms of only 9 characters additional source code.
>
> If you really see an advantage in the current, incomplete state of the
> "showexec" feature, compared to the proposed, completed state:  please elaborate
> your objection.

You would be happy with adding "cmd", and may think enough. But Someone
is not happy with it. And someone want to add "sh", "py", and "pl".

If I have to tackle it, why I have to make happy only your state? I'm
not saying current has advantage, I'm saying your patch doesn't make
guys happy like current one. It is just moving a place of happiness from
a group to an another group, right?

Thanks.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-03 12:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20120203064055.GA7184@mobil.systemanalysen.net>
     [not found] ` <8762foe543.fsf@devron.myhome.or.jp>
2012-02-03  9:55   ` [PATCH] [trivial] fs/vfat: add *.cmd to filenames listed as executable by mount option "showexec" Roland Eggner
2012-02-03 12:34     ` OGAWA Hirofumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®