Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#33999 - [util-linux] Mount ignores fstab exec-flag if user-flag present when mounting nfs

Attached to Project: Arch Linux
Opened by Tuomas Jäntti (qwertypoke) - Sunday, 24 February 2013, 16:48 GMT
Last edited by Dave Reisner (falconindy) - Friday, 14 June 2013, 11:53 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When mounting nfs filesystem with user-flag enabled in fstab, exec-flag is ignored and the mounted share does not permit executing files regardless of file permissions.

This seems to be a duplicate of this.
https://bugzilla.redhat.com/show_bug.cgi?id=769636

It seems to have been fixed once already. But a Redhat user reports that is is back. I have not used nfs before so I do not know how it has worked in older versions.


Additional info:
* package version(s)

util-linux 2.22.2-1

* config and/or log files etc.

Relevant line in /etc/fstab:

lacie-d2:/shares/media /mnt/nfs/lacie-d2/media nfs rsize=8192,wsize=8192,timeo=14,intr,_netdev,exec,user 0 0


Steps to reproduce:

[root@rotta tuomas]# mount /mnt/nfs/lacie-d2/media
[root@rotta tuomas]# mount
...
lacie-d2:/shares/media on /mnt/nfs/lacie-d2/media type nfs (rw,nosuid,nodev,noexec,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=14,retrans=2,sec=sys,mountaddr=192.168.100.23,mountvers=3,mountport=48204,mountproto=udp,local_lock=none,addr=192.168.100.23,_netdev,user)
...

Noexec flag is reported by mount and files cannot be executed.

Noexec is also active when executed as normal user:
$ mount /mnt/nfs/lacie-d2/media

This does not help:
# mount -o exec /mnt/nfs/lacie-d2/media/

or this:

# mount -o nouser /mnt/nfs/lacie-d2/media/


Noexec is disabled when nouser and exec are given as options

# mount -o exec,nouser /mnt/nfs/lacie-d2/media/

or if user-flag is removed from fstab

This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 14 June 2013, 11:53 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Order matters
Comment by Tom Gundersen (tomegun) - Wednesday, 15 May 2013, 22:54 GMT
Sorry for not following up on this sooner.

Is it still a problem with 2.23? If so, could you report this upstream, as it does not appear to be a packaging problem.
Comment by Tuomas Jäntti (qwertypoke) - Thursday, 13 June 2013, 20:55 GMT
Hi Tom

I am no faster. Finally upgraded my system. The bug is still present in 2.23.1-2
I emailed this bug report to the util-linux maintainer: Karel Zak, kzak@redhat.com
Comment by Dave Reisner (falconindy) - Thursday, 13 June 2013, 21:11 GMT
FYI, this came back because mount was rewritten. The patch mentioned on RHBZ only applied to what is now the old deprecated mount:

https://github.com/karelzak/util-linux/commit/a4c0cc75ff9744299f108c259efab1bd30c8007a

We switched implementations some time ago. Fedora did as well, which is why the RHBZ bug was pinged again.
Comment by Tuomas Jäntti (qwertypoke) - Friday, 14 June 2013, 10:28 GMT
I got a quick response from Karel:

>>
You have to use

user,exec

it means "exec" after the "user" option. I'll update man page to make
it more obvious that the last option wins.
<<

Changing the order works. In my opinion this bug might be marked as solved.

Loading...