Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1474356 Details for
Bug 1594707
nfs-utils-1.2.3-78.el6 enforces noexec even when it should not
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
The need patch... all that's needed now is the PM acks
nfs-utils-1.2.3-mount-noexec.patch (text/plain), 1.26 KB, created by
Steve Dickson
on 2018-08-08 14:27:33 UTC
(
hide
)
Description:
The need patch... all that's needed now is the PM acks
Filename:
MIME Type:
Creator:
Steve Dickson
Created:
2018-08-08 14:27:33 UTC
Size:
1.26 KB
patch
obsolete
>diff -up nfs-utils-1.2.3/utils/mount/mount.c.orig nfs-utils-1.2.3/utils/mount/mount.c >--- nfs-utils-1.2.3/utils/mount/mount.c.orig 2018-08-08 10:21:51.677162665 -0400 >+++ nfs-utils-1.2.3/utils/mount/mount.c 2018-08-08 10:22:22.244775944 -0400 >@@ -59,9 +59,6 @@ int string; > #define FOREGROUND (0) > #define BACKGROUND (1) > >-/* These flags need to be set for user mounts */ >-#define MS_SECURE (MS_NOEXEC|MS_NOSUID|MS_NODEV) >- > static struct option longopts[] = { > { "fake", 0, 0, 'f' }, > { "help", 0, 0, 'h' }, >@@ -555,8 +552,11 @@ int main(int argc, char *argv[]) > * to us, so it is non-trivial to test that we have the correct > * set of options and we don't want to trust what the user > * gave us, so just take whatever is in /etc/fstab. >+ * >+ * not-root implies 'user' option which implies >+ * 'nouser,nodev,nosuid' so we add them here > */ >- mount_opts = strdup(mc->m.mnt_opts); >+ asprintf(&mount_opts, "noexec,nodev,nosuid,%s", mc->m.mnt_opts); > } > > mount_point = canonicalize(mount_point); >@@ -577,9 +577,6 @@ int main(int argc, char *argv[]) > > parse_opts(mount_opts, &flags, &extra_opts); > >- if (flags & (MS_USERS|MS_USER)) >- flags |= MS_SECURE; >- > if (uid != 0) { > if (!(flags & (MS_USERS|MS_USER))) { > nfs_error(_("%s: permission denied"), progname);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1594707
:
1454710
| 1474356