This file is indexed.

/usr/lib/xcp/lib/update-mh-info is in xcp-xapi 1.3.2-5.

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
#! /bin/sh
#
# Copyright (c) Citrix Systems 2008. All rights reserved.
#

[ -z "$1" ] && exit 0
mgmt_mac=$(ip link show $1 | awk '/link.ether/ {print $2}')

[ -z "$mgmt_mac" ] && exit 0
xenstore-write -s /mh/boot-time/management-mac-address $mgmt_mac
xenstore-chmod -s /mh/boot-time/management-mac-address r0
exit 0