[PATCH] dm devfs fix

Christoph Hellwig (hch@lst.de)
Sun, 6 Apr 2003 09:20:44 +0200


Don't pass DEVFS_FL_CURRENT_OWNER to devfs_register, the uid/gid of new
nodes should always be 0.

--- 1.15/drivers/md/dm-ioctl.c Sat Mar 22 10:38:04 2003
+++ edited/drivers/md/dm-ioctl.c Sun Apr 6 07:55:25 2003
@@ -180,8 +180,7 @@
}

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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/