mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
auth: filesystem unlink action check + add parent vnode to auth_filesystem_check
This commit is contained in:
@@ -10,7 +10,7 @@ static int dochmod(vnode_t *node, mode_t mode) {
|
||||
vattr_t attr;
|
||||
cred_t *cred = &_cpu()->thread->proc->cred;
|
||||
|
||||
int e = auth_filesystem_check(cred, AUTH_ACTIONS_FILESYSTEM_SETATTR, node);
|
||||
int e = auth_filesystem_check(cred, AUTH_ACTIONS_FILESYSTEM_SETATTR, node, NULL);
|
||||
if (e)
|
||||
return e;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user