From: David van Moolenbroek Date: Mon, 29 Sep 2014 16:07:10 +0000 (+0000) Subject: VFS: do not make cloned devices setuid/setgid X-Git-Url: http://zhaoyanbai.com/repos/%22http:/static/doc/zpipe.c?a=commitdiff_plain;h=refs%2Fchanges%2F47%2F2847%2F1;p=minix.git VFS: do not make cloned devices setuid/setgid Change-Id: Ifd97444dd54334ccbc8780df9473450998ab7489 --- diff --git a/minix/servers/vfs/device.c b/minix/servers/vfs/device.c index 9fed98ae1..e5a6901c1 100644 --- a/minix/servers/vfs/device.c +++ b/minix/servers/vfs/device.c @@ -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;