From 8fbfbb9aff17e8cac7808646f161fdee5f9f9da2 Mon Sep 17 00:00:00 2001 From: p-b-- Date: Thu, 12 Jan 2017 11:39:41 -0500 Subject: [PATCH] Update key_control.rb Create a mutator for LIBRARIES for cases where keyutil library names are not CentOS default. --- lib/key_control.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/key_control.rb b/lib/key_control.rb index 8dd74b0..25a7502 100644 --- a/lib/key_control.rb +++ b/lib/key_control.rb @@ -25,6 +25,14 @@ module KeyControl def self.library_names LIBRARIES end + + # Public: Update the shared library names, for systems with different + # libraries that CentOS installations. + # + # Returns an Array + def self.library_names=(user_libs) + LIBRARIES.replace Array(user_libs) + end # Public: Is a libkeyutils shared library detected on this system? #