This file is indexed.

/usr/share/openxenmanager/scripts/dmidecode is in openxenmanager 0.r80+dfsg-4.

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

# show hardware info with dmidecode

import XenAPIPlugin, time
import subprocess

def doexec(args, inputtext=None):
    """Execute a subprocess, then return its return code, stdout and stderr"""
    proc = subprocess.Popen(args,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE,close_fds=True)
    (stdout,stderr) = proc.communicate(inputtext)
    rc = proc.returncode
    return (rc,stdout,stderr)

def main(session, args):
    (rc,stdout,stderr) = doexec(["dmidecode", "-q"])
    return stdout

if __name__ == "__main__":
    XenAPIPlugin.dispatch({"main": main})