Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109523177
D25281.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
865 B
Referenced Files
None
Subscribers
None
D25281.diff
View Options
Index: head/usr.sbin/mountd/mountd.c
===================================================================
--- head/usr.sbin/mountd/mountd.c
+++ head/usr.sbin/mountd/mountd.c
@@ -48,6 +48,7 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
+#include <sys/conf.h>
#include <sys/fcntl.h>
#include <sys/fnv_hash.h>
#include <sys/linker.h>
@@ -1525,9 +1526,9 @@
* Set defaults.
*/
has_host = FALSE;
- anon.cr_uid = 65534;
+ anon.cr_uid = UID_NOBODY;
anon.cr_ngroups = 1;
- anon.cr_groups[0] = 65533;
+ anon.cr_groups[0] = GID_NOGROUP;
exflags = MNT_EXPORTED;
got_nondir = 0;
opt_flags = 0;
@@ -3456,8 +3457,8 @@
/*
* Set up the unprivileged user.
*/
- cr->cr_uid = 65534;
- cr->cr_groups[0] = 65533;
+ cr->cr_uid = UID_NOBODY;
+ cr->cr_groups[0] = GID_NOGROUP;
cr->cr_ngroups = 1;
/*
* Get the user's password table entry.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 7, 5:14 AM (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16506486
Default Alt Text
D25281.diff (865 B)
Attached To
Mode
D25281: replace the numbers with UID_NOBODY, GID_NOGROUP in mountd.c
Attached
Detach File
Event Timeline
Log In to Comment