This file is indexed.

/usr/share/checkbox/scripts/network_device_info is in checkbox 0.13.7.

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

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
#!/usr/bin/python

import os
import re
import sys


def main(args):
    devices = []
    command = "lspci"
    for line in os.popen(command).readlines():
        match = re.match("^.*(Network|Ethernet) controller: (.*)", line)
        if match:
            devices.append(match.group(2))

    if devices:
        print "\n".join(devices)
        return 0
    else:
        print "Not found."
        return 1

if __name__ == "__main__":
    sys.exit(main(sys.argv[1:]))