Page MenuHomeFreeBSD

Expose an interface to determine if an ACE is inherited.
ClosedPublic

Authored by delphij on Sep 1 2015, 12:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 2, 3:50 AM
Unknown Object (File)
Thu, Mar 27, 7:30 PM
Unknown Object (File)
Sun, Mar 23, 9:15 PM
Unknown Object (File)
Feb 23 2025, 4:44 PM
Unknown Object (File)
Feb 23 2025, 2:48 AM
Unknown Object (File)
Feb 22 2025, 4:19 AM
Unknown Object (File)
Feb 21 2025, 9:30 PM
Unknown Object (File)
Feb 20 2025, 12:31 AM

Details

Summary

This is submitted on behalf of sef@. Currently, there is no way to
determine if an ACE was inherited, which prevents properly copying of a hierarchy.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

delphij retitled this revision from to Expose an interface to determine if an ACE is inherited..
delphij updated this object.
delphij edited the test plan for this revision. (Show Details)
delphij added a reviewer: trasz.

Does the acltools tests still pass with this patch applied?

How does Solaris display that bit? Is it "I", "inherited", just like here?

Please update setfacl.8, acl_add_flag_np.3, and acl.9.

Does the acltools tests still pass with this patch applied?

Where are they?

How does Solaris display that bit? Is it "I", "inherited", just like here?

google's hunt for a Solaris getfacl man page seems to indicate it doesn't have anything about inheritance (looks like the posix1e acl, rather than nfsv4).

Please update setfacl.8, acl_add_flag_np.3, and acl.9.

Will do so.

The tests are at tools/regression/acltools/ in the source tree. I'd expect they will need to be fixed a little, as they depend on textual output from getfacl, and this patch changes it - it expands the 'flags' field by one '-'.

As for Solaris - I've checked it, and it's exactly what they do, so it's fine. (They don't use getfacl, it's "ls -V" there.)

delphij edited edge metadata.

Refresh patchset from sef@

delphij edited edge metadata.

Fix a minor space/tab nit.

manpages seem reasonable.
Semicolons are in general somewhat unfriendly to the reader of technical documentation, so the one occurrence in the added text could be converted to a full sentence break, but it is not a blocker.

wblock added inline comments.
bin/setfacl/setfacl.1
29 ↗(On Diff #8434)

Please remember to update this.

385 ↗(On Diff #8434)

The exception about "inherited" is confusing. Maybe leave the existing section nearly as-is, changing the last sentence to say

These inheritance flags can only be set on directories.

Then add another section after it:

.Bl -tag -width ".Dv short"
.It Short
Long
.It I
​inherited
.El
.Pp
The inherited flag (describe how it is different from the others).

I've got updated diffs, but the interface for this thing still confuses me, so I'm not sure how to get them. (The changes include man page changes, and the regression tests.)

delphij edited edge metadata.

Refresh patch from sef@.

trasz edited edge metadata.

I'm no expert in man pages, but the rest looks good. Thank you!

This revision is now accepted and ready to land.Sep 3 2015, 8:26 PM
delphij edited edge metadata.

Space cleanup and diff reduction. (remove ^M's).

This revision now requires review to proceed.Sep 4 2015, 12:10 AM
This revision was automatically updated to reflect the committed changes.