Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 457660 - >sys-apps/util-linux-2.21.2: mount nfs with exec always mount as noexec
Summary: >sys-apps/util-linux-2.21.2: mount nfs with exec always mount as noexec
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 06:32 UTC by Tomáš Chvátal (RETIRED)
Modified: 2013-04-28 02:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Chvátal (RETIRED) gentoo-dev 2013-02-15 06:32:50 UTC
As per Summary this is regression compared to 2.20 series.

The relevant fstab entry:
192.168.137.10:/data/ /home/data/ nfs4 intr,async,bg,exec,nosuid,user 0 0

Mount state:
192.168.137.10:/data/ on /home/data type nfs4 (rw,user=root,noexec,nosuid,nodev,intr,bg,addr=192.168.137.10,clientaddr=192.168.137.1)

Latest release (2.22.2) still shows the problem.
Comment 1 SpanKY gentoo-dev 2013-04-28 02:55:38 UTC
from the man page:

user  Allow an ordinary user to mount the filesystem.  The name of the mounting
      user is written to mtab so that he can unmount the filesystem again.  This
      option implies the options noexec, nosuid, and nodev (unless overridden by
      subsequent options, as in the option line user,exec,dev,suid).

in your mount option, you put "user" after "exec" which means it's the same as:
  intr,async,bg,exec,nosuid,noexec,nosuid,nodev
and you can see "exec" is clobbered by the "noexec" later