8285915: failure_handler: gather the contents of /etc/hosts file

Reviewed-by: dfuchs, erikj
This commit is contained in:
Jaikiran Pai 2022-05-03 01:23:01 +00:00
parent 3420a1aa70
commit 45ca81ff5f
3 changed files with 13 additions and 3 deletions

View File

@ -77,7 +77,7 @@ environment=\
memory.vmstat.slabinfo memory.vmstat.disk \
files \
locks \
net.sockets net.statistics net.ifconfig \
net.sockets net.statistics net.ifconfig net.hostsfile \
screenshot
################################################################################
users.current.app=id
@ -124,6 +124,9 @@ net.statistics.args=-sv
net.ifconfig.app=ifconfig
net.ifconfig.args=-a
net.hostsfile.app=cat
net.hostsfile.args=/etc/hosts
screenshot.app=bash
screenshot.args=-c\0\
echo '\

View File

@ -83,7 +83,7 @@ environment=\
process.ps process.top \
memory.vmstat \
files \
net.netstat.av net.netstat.aL net.netstat.m net.netstat.s net.ifconfig \
net.netstat.av net.netstat.aL net.netstat.m net.netstat.s net.ifconfig net.hostsfile \
scutil.nwi scutil.proxy \
screenshot
################################################################################
@ -125,6 +125,9 @@ net.netstat.s.args=-s
net.ifconfig.app=ifconfig
net.ifconfig.args=-a
net.hostsfile.app=cat
net.hostsfile.args=/etc/hosts
scutil.app=scutil
scutil.nwi.args=--nwi
scutil.proxy.args=--proxy

View File

@ -72,7 +72,7 @@ environment=\
memory.free memory.vmstat.default memory.vmstat.statistics \
memory.vmstat.slabinfo memory.vmstat.disk \
files \
net.sockets net.statistics net.ipconfig \
net.sockets net.statistics net.ipconfig net.hostsfile \
screenshot
################################################################################
users.current.app=id
@ -121,6 +121,10 @@ net.statistics.args=-s -e
net.ipconfig.app=ipconfig
net.ipconfig.args=/all
net.hostsfile.app=bash
net.hostsfile.args.delimiter=\0
net.hostsfile.args=-c\0cat $WINDIR/System32/drivers/etc/hosts
screenshot.app=bash
screenshot.args=-c\0\
echo '\