xfs
[Top] [All Lists]

accessing the ACL of a file inside XFS kernel.

To: <linux-xfs@xxxxxxxxxxx>
Subject: accessing the ACL of a file inside XFS kernel.
From: "Eric Chen" <echen@xxxxxxxxxxx>
Date: Thu, 8 May 2003 17:15:19 -0700
Importance: Normal
Sender: linux-xfs-bounce@xxxxxxxxxxx
Hi,

I am looking into the XFS kernel code, and in the function

STATIC int
linvfs_unlink(
        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,
0, &err),
but I get an error: undefined reference to 'xfs_acl_get_attr' when I try to
compile.

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.

~Eric


<Prev in Thread] Current Thread [Next in Thread>