This file is indexed.

/usr/share/pcsd/pcsd_remove_file.rb is in pcs 0.9.164-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'settings.rb'

module PcsdRemoveFile
  class RemovePcmkRemoteAuthkey
    def initialize(id, action)
      @id = id
      @action = action
    end

    def validate()
    end

    def process()
      unless File.exists? PACEMAKER_AUTHKEY
        return PcsdExchangeFormat::result(:not_found)
      end
      begin
        File.delete(PACEMAKER_AUTHKEY)
        return PcsdExchangeFormat::result(:deleted)
      rescue => e
        return PcsdExchangeFormat::result(:unexpected, e.message)
      end
    end
  end

  TYPES = {
    "pcmk_remote_authkey" => RemovePcmkRemoteAuthkey,
  }
end