You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: hp_xglance_priv_esc.rb
    path of file: ./repos/metasploit-framework/modules/exploits/linux/local
    
    the code of the file until where you have to start completion: ##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Exploit::Local
    
  def check
    return CheckCode::Safe("#{glance_path} file not found") unless file? glance_path
    return CheckCode::Safe("#{glance_path} is not setuid") unless setuid? glance_path

    lib = find_libs
    if lib.nil?
      vprint_error 'Patched xglance-bin, not linked to -L/lib64/'
      return CheckCode::Safe
    end