[OpenAFS] transitive "fs la"?
Derrick J Brashear
shadow@dementia.org
Sun, 2 Sep 2007 23:39:43 -0400 (EDT)
On Sun, 2 Sep 2007, Adam Megacz wrote:
>
> A user's rights on a directory are effectively moot unless s/he has
> "l" permissions on every ancestor directory (up to the volume root).
> So you could say that the "transitive" acl of a directory is its acl
> minus permissions which cannot currently be exercised by virtue of the
> acls on its ancestors.
>
> I'm interested in a simple utility to print out this sort of effective
> acl. For bonus points, query the pts database and factor in group
> membership (for example, a group you belong to has "l" on parent and
> you personally have "l" on the directory itself).
>
> Has anybody written this already, or should I take a crack at it?
You can probably use "ws" as a basis. See ws.c in my homedir in the andrew
cell.