Skip to content
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

Allow for user-defined libraries #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Allow for user-defined libraries #4

wants to merge 1 commit into from

Conversation

p-b--
Copy link

@p-b-- p-b-- commented Jan 12, 2017

Create a mutator for LIBRARIES for cases where keyutil library names are not CentOS default.

I needed this for two use cases:

  1. On systems where I had my own build of the library and didn't want to namespace collide with the default libraries.
  2. In jruby it didn't seem to raise the same exception, but rather a LoadError which would terminate the process early.

There is an edge case for systems that don't have it named in the same way as CentOS (which I couldn't find, although I didn't try too hard), if the calling application checks the ELF header of keyctl and identifies the correct library, it can then call key_control with that library.

Create a mutator for LIBRARIES for cases where keyutil library names are not CentOS default.

# Public: Update the shared library names, for systems with different
# libraries that CentOS installations.
#
Copy link
Collaborator

Choose a reason for hiding this comment

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

Trailing whitespace detected.

@@ -25,6 +25,14 @@ module KeyControl
def self.library_names
LIBRARIES
end

Copy link
Collaborator

Choose a reason for hiding this comment

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

Trailing whitespace detected.

@p-b--
Copy link
Author

p-b-- commented Jan 13, 2017

I'll be honest, I don't know how to submit a new patch which is why I haven't.
If you'd like me to remove the whitespace -- I can.

@p-b-- p-b-- changed the title Update key_control.rb Allow for user-defined libraries Jan 13, 2017
@ahorner
Copy link
Owner

ahorner commented Jan 14, 2017

The contributor guidelines assume you're going through a standard fork + branch workflow. I'm unsure how you'd update a submitted patch. Don't worry about dealing with the whitespace issues; I'll commit the fix with some minor adjustments over the weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants