Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Selinux::Context_s_t

SWIG Selinux Context class

Public Instance Methods

<=>(other) click to toggle source

Comparison excluding MCS label

@param other [Context_s_t] context being compared against

# File lib/openshift-origin-node/utils/selinux.rb, line 31
def <=>(other)
  test = Selinux.context_user_get(self) <=> Selinux.context_user_get(other)
  return test unless 0 == test

  test = Selinux.context_role_get(self) <=> Selinux.context_role_get(other)
  return test unless 0 == test

  Selinux.context_type_get(self) <=> Selinux.context_type_get(other)
end
to_s() click to toggle source

Convert context to string

# File lib/openshift-origin-node/utils/selinux.rb, line 42
def to_s
  Selinux.context_str(self)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.