This file is indexed.

/usr/share/2013.com.canonical.certification:plainbox-resources/jobs/resource.txt is in plainbox-provider-resource-generic 0.3-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
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
id: cpuinfo
estimated_duration: 0.37
plugin: resource
command: cpuinfo_resource
_description: Gets CPU resource info from /proc/cpuinfo

id: cdimage
estimated_duration: 0.61
plugin: resource
user: root
command: cdimage_resource
_description: Gets installation info from casper.log and media-info

id: dpkg
estimated_duration: 0.19
plugin: resource
command: dpkg_resource
requires: package.name == "dpkg"
_description: Gets info on the version of dpkg installed

id: gconf
estimated_duration: 0.42
plugin: resource
command: gconf_resource | filter_templates -w 'name=.*proxy.*'
requires: package.name == "gconf2"
_description: Generates resource info from gconf settings

id: lsb
estimated_duration: 1.63
plugin: resource
command: lsb_resource
requires: package.name == "lsb-release"
_description: Generates release info based on /etc/lsb-release

id: meminfo
estimated_duration: 0.1
plugin: resource
command: meminfo_resource
_description: Generates resource info based on /proc/meminfo

id: module
estimated_duration: 0.13
plugin: resource
command: module_resource
_description: Generates resources info on running kernel modules

id: package
estimated_duration: 1.16
plugin: resource
command: dpkg-query -W -f='name: ${Package}\nversion: ${Version}\n\n'
_description: Generates a list of packages

id: executable
estimated_duration: 0.78
plugin: resource
_description: Generates a resource for all available executables
command:
    find -H $(echo "$PATH" | sed -e 's/:/ /g') -maxdepth 1 -type f -executable -printf "name: %f\n\n"

id: device
estimated_duration: 0.48
plugin: resource
command: udev_resource
requires: package.name == "udev"
_description: Creates resource info from udev

id: dmi
estimated_duration: 0.59
plugin: resource
user: root
requires: package.name == "dmidecode"
command: dmi_resource

id: efi
estimated_duration: 0.56
plugin: resource
user: root
command: efi_resource

id: uname
estimated_duration: 0.09
plugin: resource
command: uname_resource
_description: Creates resource info from uname output

id: sleep
estimated_duration: 0.03
plugin: resource
command: for state in `cat /sys/power/state`; do echo "$state: supported"; done
_description: Create resource info for supported sleep states

plugin: local
id: optical_drive
estimated_duration: 0.39
requires: device.category == 'CDROM'
_description: Create resource info for supported optical actions
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=CDROM"'
 id: optical_drive_`ls /sys$path/block`
 plugin: resource
 command: optical_resource /dev/`ls /sys/$path/block`
 estimated_duration: 0.5
 _description: Create resource info for supported optical actions
 EOF

id: block_device
estimated_duration: 0.08
plugin: resource
command: block_device_resource
_description: Create resource info for removable block devices

id: display
estimated_duration: 0.43
plugin: resource
command: display_resource
requires: package.name == "x11-xserver-utils"
_description: Creates display resource info from xrandr output

id: usb
estimated_duration: 0.33
plugin: resource
_description: Creates resource info for supported USB versions
command: 
 for version in 2 3; do 
     echo -n "usb$version: "
     lsusb |grep -q "Linux Foundation ${version}.0 root hub" && echo "supported" || echo "unsupported"
 done

id: xinput
estimated_duration: 0.19
plugin: resource
command: xinput_resource
requires: package.name == "xinput"
_description: Creates resource info from xinput output.

id: environment
estimated_duration: 0.11
plugin: resource
_description: Create resource info for environment variables
command:
 IFS=$'\n'
 for e in `env | sed 's/=/:/g'`; do
     echo $e | awk -F':' '{print $1 ": " $2}'
 done

id: mobilebroadband
estimated_duration: 0.38
plugin: resource
_description: Create resource for mobile broadband devices
command: mobilebroadband_resource

id: virtualization
estimated_duration: 0.13
plugin: resource
requires: package.name == "cpu-checker"
_description: Resource for hardware virtualization
command:
 if kvm-ok > /dev/null
 then
     echo "kvm: supported"
 else
     echo "kvm: unsupported"
 fi

id: IEEE_80211
estimated_duration: 0.08
plugin: resource
command: 80211_resource
_description: Creates resource info for wifi supported protocols/interfaces

id: rtc
estimated_duration: 0.02
plugin: resource
command: 
  if [ -e /sys/class/rtc ]
  then
      echo "state: supported"
  else
      echo "state: unsupported"
  fi
_description: Creates resource info for RTC

id: requirements
estimated_duration: 0.01
plugin: resource
command: [ -f $PLAINBOX_SESSION_SHARE/requirements_docs.txt ] && cat $PLAINBOX_SESSION_SHARE/requirements_docs.txt
_description:
 Provide links to requirements documents.
 .
 Each requirement should have two keys with their respective
 values:
 name: (to be used as the anchor text)
 link: (the actual URL)
 .
 Providers wishing to use this feature need to:
 1- Write a job that places a suitably-formatted file in $PLAINBOX_SESSION_SHARE
 2- Update their whitelists to run that job *before* miscellanea/submission-resources
    or the "requirements" resource job.