FreeBSD/sys/ufs/ufs/ufs_acl.c
/*
 * Calculate what the inode mode should look like based on an authoritative
 * ACL for the inode.  Replace only the fields in the inode that the ACL
 * can represent.
 */
Calculate what the inode mode should look like based on an authoritative
ACL for the inode.  Replace only the fields in the inode that the ACL
can represent.
Calculate what the inode mode should look like based on an authoritative ACL for the inode . Replace only the fields in the inode that the ACL can represent .
void
ufs_sync_inode_from_acl(struct acl *acl, struct inode *ip)
{
	ip->i_mode &= ACL_PRESERVE_MASK;
	ip->i_mode |= acl_posix1e_acl_to_mode(acl);
	DIP_SET(ip, i_mode, ip->i_mode);
}
void ufs_sync_inode_from_acl ( struct acl * acl , struct inode * ip ) { ip -> i_mode &= ACL_PRESERVE_MASK ; ip -> i_mode |= acl_posix1e_acl_to_mode ( acl ) ; DIP_SET ( ip , i_mode , ip -> i_mode ) ; }
Calculate what the inode mode should look like based on an authoritative
 ACL for the inode.
Calculate what the inode mode should look like based on an authoritative ACL for the inode .