VFS: do not make cloned devices setuid/setgid

Change-Id: Ifd97444dd54334ccbc8780df9473450998ab7489
This commit is contained in:
David van Moolenbroek 2014-09-29 16:07:10 +00:00
parent 6990e61341
commit e296281ce2

View file

@ -343,7 +343,7 @@ static int cdev_clone(dev_t dev, devminor_t new_minor)
/* Issue request */
r = req_newnode(PFS_PROC_NR, fp->fp_effuid, fp->fp_effgid,
ALL_MODES | I_CHAR_SPECIAL, dev, &res);
RWX_MODES | I_CHAR_SPECIAL, dev, &res);
if (r != OK) {
(void) cdev_opcl(CDEV_CLOSE, dev, 0);
return r;