-
-
Notifications
You must be signed in to change notification settings - Fork 810
fuse: add ACL support (Linux) #8843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| size = acl_size(acl) | ||
| if size < 0: | ||
| raise OSError(errno.errno, "Failed to get ACL size") | ||
| # Create a bytes object from the ACL data structure: | ||
| return PyBytes_FromStringAndSize(<char *> acl, size) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit dirty, but there is no official API call for this.
49340f2 to
c60aaf0
Compare
c60aaf0 to
e79c02b
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8843 +/- ##
=========================================
Coverage ? 82.05%
=========================================
Files ? 77
Lines ? 13515
Branches ? 2004
=========================================
Hits ? 11090
Misses ? 1759
Partials ? 666 ☔ View full report in Codecov by Sentry. |
8a36d8d to
cd576c2
Compare
cd576c2 to
0bda4f5
Compare
| try: | ||
| return item.get("xattrs", {})[name] or b"" | ||
| if name == b"system.posix_acl_access": | ||
| return get_binary_acl(item, "acl_access", self.numeric_ids) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the get_binary_acl does not work for some reason, another approach could be:
- borg create: archive ALL xattrs (including the ones used for ACLs)
- borg extract: skip extracting the xattrs for acls, because acl functions will be used to create these
- borg mount: just list/get all xattrs as archived now in the item and check if ACLs work then.
Junie (AI) experiment + some fixes the AI was not clever enough for.
But, tests fail - anyone wants to review this?