This file is indexed.

/usr/bin/tethering is in lxc-android-config 0.230+16.04.20160328-0ubuntu1.

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

NMCONF=/etc/NetworkManager/system-connections/tethering

enable(){
    MAC="$(ip -o link show rndis0 |sed -e 's/^.*ether //'|cut -d' ' -f1)"
    UUID=ca16a21d-7d8b-4b49-926e-"$(echo $MAC|sed -e 's/://g')"
    STAMP=$(date +%s)

    if [ ! -e $NMCONF ];then
        cat << EOF >$NMCONF
[802-3-ethernet]
duplex=full
mac-address=$MAC

[connection]
id=tethering
uuid=$UUID
type=802-3-ethernet
timestamp=$STAMP

[ipv6]
method=auto

[ipv4]
method=shared
may-fail=false
EOF
    else
        sed -i s/^mac-address=.*/mac-address=${MAC}/ $NMCONF
        sed -i s/^uuid=.*/uuid=${UUID}/ $NMCONF
        sed -i s/^timestamp=.*/timestamp=${STAMP}/ $NMCONF
    fi

    chmod 0600 $NMCONF
    sleep 2
    nmcli c reload
    nmcli c up id tethering
}

disable(){
    nmcli c down id tethering || true
    rm $NMCONF || true
}

case $1 in
    enable)
        enable
        ;;
    disable)
        disable
        ;;
    *)
        echo "need an argument (enable|disable)"
        exit 0
        ;;
esac