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 1454710 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]
Move where the secure options are added
bz1594707.patch (text/plain), 1.25 KB, created by
Alice Mitchell
on 2018-06-26 16:07:37 UTC
(
hide
)
Description:
Move where the secure options are added
Filename:
MIME Type:
Creator:
Alice Mitchell
Created:
2018-06-26 16:07:37 UTC
Size:
1.25 KB
patch
obsolete
>Only in nfs-utils-1.2.3.working/: tags >diff -ur nfs-utils-1.2.3.pristine/utils/mount/mount.c nfs-utils-1.2.3.working/utils/mount/mount.c >--- nfs-utils-1.2.3.pristine/utils/mount/mount.c 2018-06-26 16:03:54.433000002 +0100 >+++ nfs-utils-1.2.3.working/utils/mount/mount.c 2018-06-26 16:59:29.832999598 +0100 >@@ -59,9 +59,6 @@ > #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 @@ > * 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 @@ > > 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