]> Zhao Yanbai Git Server - minix.git/commitdiff
VFS: do not make cloned devices setuid/setgid 47/2847/1
authorDavid van Moolenbroek <david@minix3.org>
Mon, 29 Sep 2014 16:07:10 +0000 (16:07 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 29 Sep 2014 16:16:27 +0000 (16:16 +0000)
Change-Id: Ifd97444dd54334ccbc8780df9473450998ab7489

minix/servers/vfs/device.c

index 9fed98ae186e6b0f24b23d4d794f20890dd815d1..e5a6901c1ef5d571e25bc05da0dc8e58103ce10e 100644 (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;