summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/vfs_aio.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 89a0c65..f7e00f5 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -695,16 +695,9 @@ aio_daemon(void *uproc)
/*
* Get rid of our current filedescriptors. AIOD's don't need any
* filedescriptors, except as temporarily inherited from the client.
- * Credentials are also cloned, and made equivalent to "root".
*/
fdfree(td);
mycp->p_fd = NULL;
- mycp->p_ucred = crcopy(mycp->p_ucred);
- mycp->p_ucred->cr_uid = 0;
- uifree(mycp->p_ucred->cr_uidinfo);
- mycp->p_ucred->cr_uidinfo = uifind(0);
- mycp->p_ucred->cr_ngroups = 1;
- mycp->p_ucred->cr_groups[0] = 1;
/* The daemon resides in its own pgrp. */
enterpgrp(mycp, mycp->p_pid, 1);
OpenPOWER on IntegriCloud