Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Jun 24, 2023

Pull Request Overview

In process loading we don't need capabilities for non-pub functions.

Testing Strategy

travis

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

We don't need capabilities for non-pub functions.
Copy link
Member

@lschuermann lschuermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I agree with these changes, but I feel like it's going to be an easy mistake to change these functions to be pub, but not take a capability. I wouldn't have an issue passing the capability onward to these internal functions, given that those are the actual process loading implementations for which the capability is actually relevant.

@bradjc
Copy link
Contributor Author

bradjc commented Jun 28, 2023

I guess I agree with these changes, but I feel like it's going to be an easy mistake to change these functions to be pub, but not take a capability. I wouldn't have an issue passing the capability onward to these internal functions, given that those are the actual process loading implementations for which the capability is actually relevant.

I think this is true of numerous functions in the kernel crate. I think we should keep the use case of capabilities narrow and not speculative.

@hudson-ayers hudson-ayers added this pull request to the merge queue Jul 11, 2023
Merged via the queue into master with commit 58df7d7 Jul 11, 2023
@ppannuto ppannuto deleted the kernel-process-loading-cap-doc branch July 12, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants