This file is indexed.

/usr/lib/ruby/vendor_ruby/specinfra/host_inventory/domain.rb is in ruby-specinfra 2.66.0-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
module Specinfra
  class HostInventory
    class Domain < Base
      def get
        cmd = backend.command.get(:get_inventory_domain)
        result = backend.run_command(cmd)

        if result.exit_status == 0
          result.stdout.strip
        else
          nil
        end
      end
    end
  end
end