diff options
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 47f392a..2aad545 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -2188,6 +2188,26 @@ ufs_pathconf(ap) case _PC_NO_TRUNC: *ap->a_retval = 1; return (0); + case _POSIX_ACL_EXTENDED: +#ifdef UFS_ACL + if (ap->a_vp->v_mount->mnt_flag & MNT_ACLS) + *ap->a_retval = 1; + else + *ap->a_retval = 0; +#else + *ap->a_retval = 0; +#endif + return (0); + case _POSIX_MAC_PRESENT: +#ifdef MAC + if (ap->a_vp->v_mount->mnt_flag & MNT_MULTILABEL) + *ap->a_retval = 1; + else + *ap->a_retval = 0; +#else + *ap->a_retval = 0; +#endif + return (0); default: return (EINVAL); } |