Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Kernel (http://www.linux-archive.org/debian-kernel/)
-   -   Bug#657497: Bug #657497 nfs-common: Exec permission denied (http://www.linux-archive.org/debian-kernel/637959-bug-657497-bug-657497-nfs-common-exec-permission-denied.html)

Ben Hutchings 02-27-2012 05:43 AM

Bug#657497: Bug #657497 nfs-common: Exec permission denied
 
On Sun, 2012-02-26 at 16:35 +0000, Tony Houghton wrote:
> I tried "hand mounting" as per message #72, I don't think that's the
> cause. It seems to be the "user" option that disables exec. Without
> "user" I get exec permissions whether I mount using /etc/fstab or give a
> full mount command, with the "user" option I get no exec.

Well yes, 'user' implies 'noexec,nodev,nosuid'. You have to put 'exec'
*after* 'user' to override that. Maybe mount.nfs behaved differently in
the past, but if so that was a bug.

However Jakub and Luc apparently had these options in the right order.

I tested the conversion of option strings by running:

strace -e mount mount.nfs -o <options> <source> <mountpoint>

This shows the mount() call made to the kernel along with the mount
flags (names beginning 'MS_'), which should not include MS_NOEXEC. when
I run mount.nfs with options 'users,async,exec' or 'rw,user,exec,auto' I
see mount.nfs using the correct mount flags, MS_NOSUID|MS_NODEV.

Jakub, Luc, do you get the same results?

Ben.

--
Ben Hutchings
Q. Which is the greater problem in the world today, ignorance or apathy?
A. I don't know and I couldn't care less.

Tony Houghton 02-27-2012 02:53 PM

Bug#657497: Bug #657497 nfs-common: Exec permission denied
 
On Mon, 27 Feb 2012 06:43:55 +0000
Ben Hutchings <ben@decadent.org.uk> wrote:

> On Sun, 2012-02-26 at 16:35 +0000, Tony Houghton wrote:
> > I tried "hand mounting" as per message #72, I don't think that's the
> > cause. It seems to be the "user" option that disables exec. Without
> > "user" I get exec permissions whether I mount using /etc/fstab or give a
> > full mount command, with the "user" option I get no exec.
>
> Well yes, 'user' implies 'noexec,nodev,nosuid'. You have to put 'exec'
> *after* 'user' to override that. Maybe mount.nfs behaved differently in
> the past, but if so that was a bug.
>
> However Jakub and Luc apparently had these options in the right order.

I thought I had tried exec after user but I see that on one of my
affected machines I had them the wrong way round. Putting exec after
user fixes it for me.


All times are GMT. The time now is 04:41 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.