FreeBSD Bugzilla – Attachment 167853 Details for
Bug 207807
mountd: mountd.pid file is not readable by normal users
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Change permissions of mountd.pid to 0644
mountd.pid.patch (text/plain), 1.38 KB, created by
Ruben Kerkhof
on 2016-03-08 14:42:15 UTC
(
hide
)
Description:
Change permissions of mountd.pid to 0644
Filename:
MIME Type:
Creator:
Ruben Kerkhof
Created:
2016-03-08 14:42:15 UTC
Size:
1.38 KB
patch
obsolete
>Index: cddl/compat/opensolaris/misc/fsshare.c >=================================================================== >--- cddl/compat/opensolaris/misc/fsshare.c (revision 296499) >+++ cddl/compat/opensolaris/misc/fsshare.c (working copy) >@@ -50,7 +50,7 @@ > struct pidfh *pfh; > pid_t mountdpid; > >- pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &mountdpid); >+ pfh = pidfile_open(_PATH_MOUNTDPID, 0644, &mountdpid); > if (pfh != NULL) { > /* Mountd is not running. */ > pidfile_remove(pfh); >Index: sbin/mount/mount.c >=================================================================== >--- sbin/mount/mount.c (revision 296499) >+++ sbin/mount/mount.c (working copy) >@@ -224,7 +224,7 @@ > struct pidfh *pfh; > pid_t mountdpid; > >- pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &mountdpid); >+ pfh = pidfile_open(_PATH_MOUNTDPID, 0644, &mountdpid); > if (pfh != NULL) { > /* Mountd is not running. */ > pidfile_remove(pfh); >Index: usr.sbin/mountd/mountd.c >=================================================================== >--- usr.sbin/mountd/mountd.c (revision 296499) >+++ usr.sbin/mountd/mountd.c (working copy) >@@ -367,7 +367,7 @@ > char **port_list; > > /* Check that another mountd isn't already running. */ >- pfh = pidfile_open(_PATH_MOUNTDPID, 0600, &otherpid); >+ pfh = pidfile_open(_PATH_MOUNTDPID, 0644, &otherpid); > if (pfh == NULL) { > if (errno == EEXIST) > errx(1, "mountd already running, pid: %d.", otherpid);
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 207807
: 167853