devfs: take cred struct in devfs_register

This commit is contained in:
Matheus
2024-08-24 21:51:55 -03:00
parent 357f5c65cf
commit 806fa3a333
12 changed files with 57 additions and 16 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ static int registerdesc(blockdesc_t *desc, char *name) {
if (ret)
return ret;
return devfs_register(&devops, name, V_TYPE_BLKDEV, DEV_MAJOR_BLOCK, id, 0644);
return devfs_register(&devops, name, V_TYPE_BLKDEV, DEV_MAJOR_BLOCK, id, 0600, NULL);
}
#define PART_NONE 0