summaryrefslogtreecommitdiff
path: root/libtrivfs/file-access.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs/file-access.c')
-rw-r--r--libtrivfs/file-access.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libtrivfs/file-access.c b/libtrivfs/file-access.c
index 7b9deb80..91b5427a 100644
--- a/libtrivfs/file-access.c
+++ b/libtrivfs/file-access.c
@@ -25,7 +25,12 @@ trivfs_S_file_check_access (struct trivfs_protid *cred,
{
if (! cred)
return EOPNOTSUPP;
+
+ if (! trivfs_check_access_hook)
+ file_check_access (cred->realnode, allowed);
else
- return file_check_access (cred->realnode, allowed);
+ (*trivfs_check_access_hook) (cred->po->cntl, cred->user,
+ cred->realnode, allowed);
+
return 0;
}