]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] dm devfs fix
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Apr 2003 06:10:26 +0000 (23:10 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Apr 2003 06:10:26 +0000 (23:10 -0700)
Don't pass DEVFS_FL_CURRENT_OWNER to devfs_register, the uid/gid of new
nodes should always be 0.

drivers/md/dm-ioctl.c

index fbc5616bac5fe61c440793fb2ad522035a3c58e3..d72c6272898c733da2e1ca33c6b46972200995fc 100644 (file)
@@ -180,8 +180,7 @@ static int register_with_devfs(struct hash_cell *hc)
        }
 
        sprintf(name, DM_DIR "/%s", hc->name);
-       devfs_register(NULL, name, DEVFS_FL_CURRENT_OWNER,
-                      disk->major, disk->first_minor,
+       devfs_register(NULL, name, 0, disk->major, disk->first_minor,
                       S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP,
                       &dm_blk_dops, NULL);
        kfree(name);