module KeyControl
Constants
- DEFAULT
- GROUP
- LIBRARIES
A list of potential library paths. Currently looks for the default shared libraries on CentOS installations.
- PROCESS
- SESSION
- THREAD
Constants for special keyring identifiers. For more information, see: manpages.ubuntu.com/manpages/oneiric/man1/keyctl.1.html
- USER
- VERSION
Public Class Methods
available?()
click to toggle source
Public: Is a libkeyutils shared library detected on this system?
Returns a boolean.
# File lib/key_control.rb, line 32 def self.available? library_names.any? do |library_name| begin Fiddle::Handle.new(library_name) rescue Fiddle::DLError false end end end
library_names()
click to toggle source
Public: Shared library names.
Returns an Array.
# File lib/key_control.rb, line 25 def self.library_names LIBRARIES end