I am looking into the XFS kernel code, and in the function
struct inode *dir,
struct dentry *dentry)
in fs/xfs/linux/xfs_iops.c, I want to be able to get the ACL for that file.
I looked into the function xfs_acl_vget(vp, data, size, _ACL_TYPE_ACCESS),
however, it returns an int, while I want an ACL.
I also looked into the function xfs_acl_get_attr(vp, acl, _ACL_TYPE_ACCESS,
but I get an error: undefined reference to 'xfs_acl_get_attr' when I try to
I am wondering how I can get the acl with just the inode *dir and dentry
*dentry. I want to eventually be able to look at the
acl->acl_entry[i].ae_perm so I can check the ACL permissions of that file.