summaryrefslogtreecommitdiff
path: root/libnetfs/io-identity.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs/io-identity.c')
-rw-r--r--libnetfs/io-identity.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libnetfs/io-identity.c b/libnetfs/io-identity.c
index 7e61984e..ffd941ed 100644
--- a/libnetfs/io-identity.c
+++ b/libnetfs/io-identity.c
@@ -49,11 +49,18 @@ netfs_S_io_identity (struct protid *cred,
}
}
+ err = netfs_validate_stat (np, cred->credential);
+ if (err)
+ {
+ mutex_unlock (&np->lock);
+ return err;
+ }
+
*id = np->identity;
*idtype = MACH_MSG_TYPE_MAKE_SEND;
*fsys = netfs_fsys_identity;
*fsystype = MACH_MSG_TYPE_MAKE_SEND;
- *fileno = np->dn_stat.st_ino;
+ *fileno = np->nn_stat.st_ino;
mutex_unlock (&np->lock);
return 0;