Implement _POSIX_ACL_PATH_MAX, which returns the maximum number of ACL

entries for a file system node using pathconf().

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
This commit is contained in:
Robert Watson 2002-10-20 22:08:26 +00:00
parent c740509854
commit 6f54838539

View File

@ -2196,6 +2196,16 @@ ufs_pathconf(ap)
*ap->a_retval = 0;
#else
*ap->a_retval = 0;
#endif
return (0);
case _POSIX_ACL_PATH_MAX:
#ifdef UFS_ACL
if (ap->a_vp->v_mount->mnt_flag & MNT_ACLS)
*ap->a_retval = ACL_MAX_ENTRIES;
else
*ap->a_retval = 3;
#else
*ap->a_retval = 3;
#endif
return (0);
case _POSIX_MAC_PRESENT: