Bugtraq mailing list archives

Re: Bug in Linux Mount


From: mroos () CS UT EE (Meelis Roos)
Date: Tue, 20 Apr 1999 21:13:29 +0300


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/



Current thread: