-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add support for capabilities #94
Conversation
ecf7370
to
16c4fa6
Compare
The change is unexpectedly complexed and will take some time to review. Capability-value is validated caps() in rpm::FileOptionsBuilder (which takes a string as an argument instead of capctl::FileCaps) unlike other paramters. So, this got a bigger change than I expected. |
Do you have any recommendations for simplifying the change here? My understanding was that cargo-generate-rpm is a wrapper around rpm-rs and so I have exposed the |
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.
@dsteeley Could you please confirm my comment and change your code?
It took long time to review... Regarding to the rpm crate design, I don't think simplifying than your code structures is not possible. Anyway, I would like you to add an new appropriate error type as I written in my review comment.
I have applied markups as per your comments, thank you for reviewing. Regarding your initial comment about rpm-rs taking a string and validating. That matches the existing group, user and mode behaviour of rpm-rs. See rpm-rs/rpm#166 (comment) for the discussion on usage of capctl vs parsing as a string |
Add support for setting capabilities on assets.
Exposing functionality added to rpm-rs in this PR, rpm-rs/rpm#166