AFS_STATCNT(afs_syscall_icreate);
- if (!afs_suser(credp))
+ if (!afs_osi_suser(credp))
return (EPERM);
/** Code to convert a 32 bit dev_t into a 64 bit dev_t
AFS_STATCNT(afs_syscall_iopen);
- if (!afs_suser(credp))
+ if (!afs_osi_suser(credp))
return (EPERM);
/** Code to convert a 32 bit dev_t into a 64 bit dev_t
register afs_int32 code;
dev_t newdev;
- if (!afs_suser(credp))
+ if (!afs_osi_suser(credp))
return (EPERM);
/** Code to convert a 32 bit dev_t into a 64 bit dev_t
vn_rdwr((rw),(gp),(base),(len),(offset),(segflg),(ioflag),(ulimit),(cr),(aresid))
-#if !defined(AFS_SUN510_ENV)
-#define afs_suser(x) suser(x)
+#if defined(AFS_SUN510_ENV)
+#define afs_suser(x) afs_osi_suser(x)
+#else
+#define afs_suser(x) suser(x)
#endif
#ifdef KERNEL
AFS_STATCNT(afs_mount);
- if (!suser(credp)) {
+#if defined(AFS_SUN510_ENV)
+ if (secpolicy_fs_mount(credp, amvp, afsp) != 0) {
+#else
+ if (!afs_osi_suser(credp)) {
+#endif
AFS_GUNLOCK();
- return EPERM;
+ return (EPERM);
}
afsp->vfs_fstype = afsfstype;
if (afs_globalVFS) { /* Don't allow remounts. */
AFS_GUNLOCK();
- return EBUSY;
+ return (EBUSY);
}
afs_globalVFS = afsp;
AFS_GLOCK();
AFS_STATCNT(afs_unmount);
- if (!suser(credp)) {
- AFS_GUNLOCK();
- return EPERM;
+#if defined(AFS_SUN510_ENV)
+ if (secpolicy_fs_unmount(credp, afsp) != 0) {
+#else
+ if (!afs_osi_suser(credp)) {
+#endif
+ AFS_GUNLOCK();
+ return (EPERM);
}
afs_globalVFS = 0;
afs_shutdown();