[10290] in bugtraq

home help back first fref pref prev next nref lref last post

Re: Bug in Linux Mount

daemon@ATHENA.MIT.EDU (Meelis Roos)
Tue Apr 20 19:14:37 1999

Date: 	Tue, 20 Apr 1999 21:13:29 +0300
Reply-To: Meelis Roos <mroos@CS.UT.EE>
From: Meelis Roos <mroos@CS.UT.EE>
X-To:         Jacek Konieczny <jajcus@ZEUS.POLSL.GLIWICE.PL>
To: BUGTRAQ@NETSPACE.ORG
In-Reply-To:  <19990420175807.A3196@koniu.local.net>

> But:
> [jacek@koniu jacek]$ls -l /mnt/cdrom/index.htm
> -r-xr-xr-x   1 root     root          869 lis 15  1997 /mnt/cdrom/index.htm
>
> As you can see the file (and all other files on the CD) have all execute
> bit set, although filesystem is mounted by user and with "noexec".

The exec bit doesn't mean anything. noexec tells that the exec syscall
must fail and nothing about the flags.

The permission mask for filesystems that lack permission information is
determined by mount options for filesystems. And maybe the default
value comes form your umask setting.

You can have files with x-bit on any noexec partition - e.g. /home.
But you can't exec them because of noexec. Try it!

---
Meelis Roos             e-mail: mroos@ut.ee
                        www:    http://www.cs.ut.ee/~mroos/

home help back first fref pref prev next nref lref last post