filed: fix handling of STREAM_ACL_PLUGIN during restore#1308
Merged
Conversation
Member
|
Looks good. We may want to have a test that actually tries to backup and restore xattr and acl though. |
4fb4a16 to
bdccdca
Compare
arogge
reviewed
Nov 17, 2022
arogge
reviewed
Nov 17, 2022
core/src/plugins/filed/python/pyfiles/BareosFdPluginLocalFileset.py
Outdated
Show resolved
Hide resolved
arogge
reviewed
Nov 17, 2022
core/src/plugins/filed/python/pyfiles/BareosFdPluginLocalFileset.py
Outdated
Show resolved
Hide resolved
arogge
reviewed
Nov 17, 2022
arogge
reviewed
Nov 17, 2022
core/src/plugins/filed/python/pyfiles/BareosFdPluginLocalFileset.py
Outdated
Show resolved
Hide resolved
arogge
reviewed
Nov 17, 2022
core/src/plugins/filed/python/pyfiles/BareosFdPluginLocalFileset.py
Outdated
Show resolved
Hide resolved
d3561db to
fa5da5f
Compare
arogge
requested changes
Dec 1, 2022
core/src/plugins/filed/python/pyfiles/BareosFdPluginLocalFileset.py
Outdated
Show resolved
Hide resolved
systemtests/tests/python-bareos/python-modules/bareos_fd_pluginoptions/BareosFdPluginoptions.py
Show resolved
Hide resolved
ee7afb9 to
e6e15c3
Compare
arogge
approved these changes
Dec 7, 2022
e5eeadb to
e6e15c3
Compare
Add get_xattr()/set_xattr()/get_acl()/set_acl() to BareosFdPluginLocalFileset.py.
Enable support for ACL and XATTR in fileset.
Saves us from buffer overrun when printing the content via dmsg();
Move get/set_acl() and get/set_xattr() functions into BareosFdPluginBaseclass.py. Also remove the non-utf8 file from the python3 test as currently that does not work
PyAclPacketToNative() will now fail and return false if the provided data was not a bytearray
Move code from duplicate BareosFdPluginLocalFileset into BareosFdPluginLocalFilesetAclXattr.
0bf7489 to
0b968d5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thank you for contributing to the Bareos Project!
The handling of acl streams created by plugins was missing in the restore code of the filedaemon, whi ch results in the error message:
Warning: Unknown stream=1020 ignored. This shouldn't happen!.This PR fixes the problem, and also adds some example code how to handle the acl data in the python plugins.
Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
General
Source code quality
bareos-check-sources --since-mergedoes not report any problemsTests