mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 05:38:21 +00:00
vfs: access check on vfs_lookup
This commit is contained in:
@@ -523,6 +523,10 @@ int vfs_lookup(vnode_t **result, vnode_t *start, char *path, char *lastcomp, int
|
||||
}
|
||||
}
|
||||
|
||||
error = VOP_ACCESS(current, V_ACCESS_SEARCH, getcred());
|
||||
if (error)
|
||||
break;
|
||||
|
||||
error = VOP_LOOKUP(current, component, &next, getcred());
|
||||
if (error)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user