Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
sosreport /
sos /
plugins /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2021-12-04 13:17
__init__.py
71.25
KB
-rw-r--r--
2020-03-24 16:33
abrt.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
acpid.py
900
B
-rw-r--r--
2020-03-24 16:33
activemq.py
1.68
KB
-rw-r--r--
2020-03-24 16:33
alternatives.py
1.21
KB
-rw-r--r--
2020-03-24 16:33
anaconda.py
1.36
KB
-rw-r--r--
2020-03-24 16:33
anacron.py
811
B
-rw-r--r--
2020-03-24 16:33
ansible.py
834
B
-rw-r--r--
2020-03-24 16:33
apache.py
3.6
KB
-rw-r--r--
2020-03-24 16:33
apparmor.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
apport.py
1.31
KB
-rw-r--r--
2020-03-24 16:33
apt.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
ata.py
1.14
KB
-rw-r--r--
2020-03-24 16:33
atomichost.py
1.26
KB
-rw-r--r--
2020-03-24 16:33
auditd.py
1.08
KB
-rw-r--r--
2020-03-24 16:33
autofs.py
2.1
KB
-rw-r--r--
2020-03-24 16:33
azure.py
2.29
KB
-rw-r--r--
2020-03-24 16:33
block.py
2.15
KB
-rw-r--r--
2020-03-24 16:33
boom.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
boot.py
1.48
KB
-rw-r--r--
2020-03-24 16:33
btrfs.py
773
B
-rw-r--r--
2020-03-24 16:33
buildah.py
2.03
KB
-rw-r--r--
2020-03-24 16:33
candlepin.py
4.25
KB
-rw-r--r--
2020-03-24 16:33
canonical_livepatch.py
946
B
-rw-r--r--
2020-03-24 16:33
ceph.py
3.61
KB
-rw-r--r--
2020-03-24 16:33
ceph_ansible.py
937
B
-rw-r--r--
2020-03-24 16:33
cgroups.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
chrony.py
1.45
KB
-rw-r--r--
2020-03-24 16:33
cifs.py
1012
B
-rw-r--r--
2020-03-24 16:33
clear_containers.py
2.59
KB
-rw-r--r--
2020-03-24 16:33
cloud_init.py
943
B
-rw-r--r--
2020-03-24 16:33
cman.py
1.89
KB
-rw-r--r--
2020-03-24 16:33
cobbler.py
1.12
KB
-rw-r--r--
2020-03-24 16:33
cockpit.py
926
B
-rw-r--r--
2020-03-24 16:33
collectd.py
2.02
KB
-rw-r--r--
2020-03-24 16:33
composer.py
1.18
KB
-rw-r--r--
2020-03-24 16:33
conntrackd.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
console.py
859
B
-rw-r--r--
2020-03-24 16:33
container_log.py
1.09
KB
-rw-r--r--
2020-03-24 16:33
convert2rhel.py
787
B
-rw-r--r--
2020-03-24 16:33
corosync.py
2.26
KB
-rw-r--r--
2020-03-24 16:33
crio.py
3.01
KB
-rw-r--r--
2020-03-24 16:33
cron.py
1022
B
-rw-r--r--
2020-03-24 16:33
crypto.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
cs.py
4.36
KB
-rw-r--r--
2020-03-24 16:33
ctdb.py
1.42
KB
-rw-r--r--
2020-03-24 16:33
cups.py
1.23
KB
-rw-r--r--
2020-03-24 16:33
date.py
813
B
-rw-r--r--
2020-03-24 16:33
dbus.py
906
B
-rw-r--r--
2020-03-24 16:33
devicemapper.py
937
B
-rw-r--r--
2020-03-24 16:33
devices.py
764
B
-rw-r--r--
2020-03-24 16:33
dhcp.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
distupgrade.py
1.51
KB
-rw-r--r--
2020-03-24 16:33
dlm.py
1.49
KB
-rw-r--r--
2020-03-24 16:33
dmraid.py
1.31
KB
-rw-r--r--
2020-03-24 16:33
dnf.py
2.69
KB
-rw-r--r--
2020-03-24 16:33
docker.py
4.86
KB
-rw-r--r--
2020-03-24 16:33
docker_distribution.py
1.3
KB
-rw-r--r--
2020-03-24 16:33
dovecot.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
dpkg.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
dracut.py
887
B
-rw-r--r--
2020-03-24 16:33
ds.py
2.48
KB
-rw-r--r--
2020-03-24 16:33
ebpf.py
3.13
KB
-rw-r--r--
2020-03-24 16:33
elastic.py
2.26
KB
-rw-r--r--
2020-03-24 16:33
etcd.py
2.42
KB
-rw-r--r--
2020-03-24 16:33
fcoe.py
1006
B
-rw-r--r--
2020-03-24 16:33
fibrechannel.py
1.1
KB
-rw-r--r--
2020-03-24 16:33
filesys.py
2.52
KB
-rw-r--r--
2020-03-24 16:33
firewalld.py
2.01
KB
-rw-r--r--
2020-03-24 16:33
foreman.py
12.77
KB
-rw-r--r--
2020-03-24 16:33
frr.py
665
B
-rw-r--r--
2020-03-24 16:33
fwupd.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
gdm.py
822
B
-rw-r--r--
2020-03-24 16:33
gfs2.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
gluster.py
4.67
KB
-rw-r--r--
2020-03-24 16:33
gluster_block.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
gnocchi.py
3.46
KB
-rw-r--r--
2020-03-24 16:33
grafana.py
1.5
KB
-rw-r--r--
2020-03-24 16:33
grub.py
1022
B
-rw-r--r--
2020-03-24 16:33
grub2.py
2.58
KB
-rw-r--r--
2020-03-24 16:33
gssproxy.py
857
B
-rw-r--r--
2020-03-24 16:33
haproxy.py
2.17
KB
-rw-r--r--
2020-03-24 16:33
hardware.py
1.01
KB
-rw-r--r--
2021-04-22 18:49
host.py
1.07
KB
-rw-r--r--
2020-03-24 16:33
hpasm.py
932
B
-rw-r--r--
2020-03-24 16:33
hts.py
688
B
-rw-r--r--
2020-03-24 16:33
i18n.py
793
B
-rw-r--r--
2020-03-24 16:33
infiniband.py
2.57
KB
-rw-r--r--
2020-03-24 16:33
insights.py
1.39
KB
-rw-r--r--
2020-03-24 16:33
ipa.py
6.78
KB
-rw-r--r--
2020-03-24 16:33
ipmitool.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
iprconfig.py
4.47
KB
-rw-r--r--
2020-03-24 16:33
ipvs.py
1.03
KB
-rw-r--r--
2020-03-24 16:33
iscsi.py
1.4
KB
-rw-r--r--
2020-03-24 16:33
iscsitarget.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
jars.py
5.03
KB
-rw-r--r--
2020-03-24 16:33
java.py
1007
B
-rw-r--r--
2020-03-24 16:33
juju.py
2.35
KB
-rw-r--r--
2020-03-24 16:33
kata_containers.py
1.8
KB
-rw-r--r--
2020-03-24 16:33
kdump.py
2.66
KB
-rw-r--r--
2020-03-24 16:33
keepalived.py
833
B
-rw-r--r--
2020-03-24 16:33
kernel.py
4.17
KB
-rw-r--r--
2020-03-24 16:33
kernelrt.py
1.41
KB
-rw-r--r--
2020-03-24 16:33
keyutils.py
882
B
-rw-r--r--
2020-03-24 16:33
kimchi.py
1.02
KB
-rw-r--r--
2020-03-24 16:33
kpatch.py
1.02
KB
-rw-r--r--
2020-03-24 16:33
krb5.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
kubernetes.py
7.13
KB
-rw-r--r--
2020-03-24 16:33
kvm.py
998
B
-rw-r--r--
2021-04-22 18:49
landscape.py
3.28
KB
-rw-r--r--
2021-04-22 18:49
ldap.py
3.11
KB
-rw-r--r--
2020-03-24 16:33
leapp.py
1006
B
-rw-r--r--
2020-03-24 16:33
libraries.py
1.5
KB
-rw-r--r--
2020-03-24 16:33
libreswan.py
2.23
KB
-rw-r--r--
2020-03-24 16:33
libvirt.py
2.71
KB
-rw-r--r--
2020-03-24 16:33
lightdm.py
1.2
KB
-rw-r--r--
2020-03-24 16:33
lilo.py
704
B
-rw-r--r--
2020-03-24 16:33
login.py
1.03
KB
-rw-r--r--
2020-03-24 16:33
logrotate.py
1.09
KB
-rw-r--r--
2020-03-24 16:33
logs.py
3.21
KB
-rw-r--r--
2020-03-24 16:33
lstopo.py
1.22
KB
-rw-r--r--
2020-03-24 16:33
lustre.py
1.9
KB
-rw-r--r--
2020-03-24 16:33
lvm2.py
3.02
KB
-rw-r--r--
2020-03-24 16:33
lxd.py
1.3
KB
-rw-r--r--
2020-03-24 16:33
maas.py
4.01
KB
-rw-r--r--
2021-04-22 18:49
manageiq.py
2.84
KB
-rw-r--r--
2020-03-24 16:33
md.py
870
B
-rw-r--r--
2020-03-24 16:33
megacli.py
1.01
KB
-rw-r--r--
2020-03-24 16:33
memcached.py
1.16
KB
-rw-r--r--
2020-03-24 16:33
memory.py
1.35
KB
-rw-r--r--
2020-03-24 16:33
mongodb.py
2.02
KB
-rw-r--r--
2020-03-24 16:33
monit.py
2.39
KB
-rw-r--r--
2020-03-24 16:33
mpt.py
767
B
-rw-r--r--
2020-03-24 16:33
mssql.py
3.19
KB
-rw-r--r--
2020-03-24 16:33
multipath.py
936
B
-rw-r--r--
2020-03-24 16:33
mysql.py
3.17
KB
-rw-r--r--
2020-03-24 16:33
named.py
2.56
KB
-rw-r--r--
2020-03-24 16:33
navicli.py
3.33
KB
-rw-r--r--
2020-03-24 16:33
networking.py
12.92
KB
-rw-r--r--
2021-04-22 18:49
networkmanager.py
4.71
KB
-rw-r--r--
2020-03-24 16:33
nfs.py
943
B
-rw-r--r--
2020-03-24 16:33
nfsganesha.py
1.25
KB
-rw-r--r--
2020-03-24 16:33
nfsserver.py
1.47
KB
-rw-r--r--
2020-03-24 16:33
nginx.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
nis.py
847
B
-rw-r--r--
2020-03-24 16:33
nodejs.py
1.15
KB
-rw-r--r--
2020-03-24 16:33
npm.py
3.86
KB
-rw-r--r--
2020-03-24 16:33
nscd.py
1000
B
-rw-r--r--
2020-03-24 16:33
nss.py
919
B
-rw-r--r--
2020-03-24 16:33
ntb.py
926
B
-rw-r--r--
2020-03-24 16:33
ntp.py
1.38
KB
-rw-r--r--
2020-03-24 16:33
numa.py
1.41
KB
-rw-r--r--
2020-03-24 16:33
nvidia.py
1.1
KB
-rw-r--r--
2020-03-24 16:33
nvme.py
1.53
KB
-rw-r--r--
2020-03-24 16:33
oddjob.py
859
B
-rw-r--r--
2020-03-24 16:33
omnipath_client.py
1.77
KB
-rw-r--r--
2020-03-24 16:33
omnipath_manager.py
2.42
KB
-rw-r--r--
2020-03-24 16:33
omsa.py
1.76
KB
-rw-r--r--
2020-03-24 16:33
opencl.py
726
B
-rw-r--r--
2020-03-24 16:33
opendaylight.py
1.37
KB
-rw-r--r--
2020-03-24 16:33
opengl.py
728
B
-rw-r--r--
2020-03-24 16:33
openhpi.py
869
B
-rw-r--r--
2020-03-24 16:33
openshift.py
6.5
KB
-rw-r--r--
2020-03-24 16:33
openssl.py
1.54
KB
-rw-r--r--
2020-03-24 16:33
openstack_ansible.py
1.36
KB
-rw-r--r--
2020-03-24 16:33
openstack_aodh.py
2.84
KB
-rw-r--r--
2020-03-24 16:33
openstack_ceilometer.py
3.04
KB
-rw-r--r--
2020-03-24 16:33
openstack_cinder.py
4.8
KB
-rw-r--r--
2020-03-24 16:33
openstack_glance.py
4.16
KB
-rw-r--r--
2020-03-24 16:33
openstack_heat.py
4.8
KB
-rw-r--r--
2020-03-24 16:33
openstack_horizon.py
3.52
KB
-rw-r--r--
2020-03-24 16:33
openstack_instack.py
5.7
KB
-rw-r--r--
2020-03-24 16:33
openstack_ironic.py
6.23
KB
-rw-r--r--
2020-03-24 16:33
openstack_keystone.py
4.42
KB
-rw-r--r--
2020-03-24 16:33
openstack_manila.py
3.25
KB
-rw-r--r--
2020-03-24 16:33
openstack_neutron.py
4.56
KB
-rw-r--r--
2020-03-24 16:33
openstack_nova.py
8.57
KB
-rw-r--r--
2020-03-24 16:33
openstack_novajoin.py
1.19
KB
-rw-r--r--
2020-03-24 16:33
openstack_octavia.py
3.5
KB
-rw-r--r--
2020-03-24 16:33
openstack_placement.py
3.75
KB
-rw-r--r--
2020-03-24 16:33
openstack_sahara.py
2.7
KB
-rw-r--r--
2020-03-24 16:33
openstack_swift.py
2.73
KB
-rw-r--r--
2020-03-24 16:33
openstack_tripleo.py
1.73
KB
-rw-r--r--
2020-03-24 16:33
openstack_trove.py
2.29
KB
-rw-r--r--
2020-03-24 16:33
openvswitch.py
6.78
KB
-rw-r--r--
2020-03-24 16:33
origin.py
9.24
KB
-rw-r--r--
2020-03-24 16:33
os_net_config.py
771
B
-rw-r--r--
2020-03-24 16:33
ovirt.py
7.98
KB
-rw-r--r--
2020-03-24 16:33
ovirt_engine_backup.py
1.72
KB
-rw-r--r--
2020-03-24 16:33
ovirt_hosted_engine.py
2.09
KB
-rw-r--r--
2020-03-24 16:33
ovirt_imageio.py
1.33
KB
-rw-r--r--
2020-03-24 16:33
ovirt_node.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
ovirt_provider_ovn.py
1.14
KB
-rw-r--r--
2020-03-24 16:33
ovn_central.py
5.2
KB
-rw-r--r--
2020-03-24 16:33
ovn_host.py
1.58
KB
-rw-r--r--
2020-03-24 16:33
pacemaker.py
5
KB
-rw-r--r--
2020-03-24 16:33
pam.py
1.18
KB
-rw-r--r--
2020-03-24 16:33
pci.py
916
B
-rw-r--r--
2020-03-24 16:33
pcp.py
6.12
KB
-rw-r--r--
2020-03-24 16:33
peripety.py
1.18
KB
-rw-r--r--
2020-03-24 16:33
perl.py
691
B
-rw-r--r--
2020-03-24 16:33
podman.py
4.28
KB
-rw-r--r--
2020-03-24 16:33
postfix.py
1.22
KB
-rw-r--r--
2020-03-24 16:33
postgresql.py
5.17
KB
-rw-r--r--
2020-03-24 16:33
powerpath.py
1.81
KB
-rw-r--r--
2020-03-24 16:33
powerpc.py
2.85
KB
-rw-r--r--
2020-03-24 16:33
ppp.py
882
B
-rw-r--r--
2020-03-24 16:33
procenv.py
698
B
-rw-r--r--
2020-03-24 16:33
process.py
1.86
KB
-rw-r--r--
2020-03-24 16:33
processor.py
1.2
KB
-rw-r--r--
2020-03-24 16:33
psacct.py
1.29
KB
-rw-r--r--
2020-03-24 16:33
ptp.py
851
B
-rw-r--r--
2020-03-24 16:33
pulp.py
6.38
KB
-rw-r--r--
2020-03-24 16:33
puppet.py
1.83
KB
-rw-r--r--
2020-03-24 16:33
pxe.py
1.34
KB
-rw-r--r--
2020-03-24 16:33
python.py
3.06
KB
-rw-r--r--
2020-03-24 16:33
qpid.py
3.41
KB
-rw-r--r--
2020-03-24 16:33
qpid_dispatch.py
2.03
KB
-rw-r--r--
2020-03-24 16:33
qt.py
792
B
-rw-r--r--
2020-03-24 16:33
quagga.py
743
B
-rw-r--r--
2020-03-24 16:33
rabbitmq.py
2.05
KB
-rw-r--r--
2020-03-24 16:33
radius.py
1.37
KB
-rw-r--r--
2020-03-24 16:33
rasdaemon.py
1022
B
-rw-r--r--
2020-03-24 16:33
rear.py
1.15
KB
-rw-r--r--
2020-03-24 16:33
redis.py
2.01
KB
-rw-r--r--
2020-03-24 16:33
release.py
1.04
KB
-rw-r--r--
2020-03-24 16:33
rhcos.py
921
B
-rw-r--r--
2020-03-24 16:33
rhui.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
rhv_analyzer.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
rpm.py
2.37
KB
-rw-r--r--
2020-03-24 16:33
rpmostree.py
1.08
KB
-rw-r--r--
2020-03-24 16:33
ruby.py
842
B
-rw-r--r--
2020-03-24 16:33
runc.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
s390.py
2.25
KB
-rw-r--r--
2020-03-24 16:33
salt.py
892
B
-rw-r--r--
2020-03-24 16:33
saltmaster.py
732
B
-rw-r--r--
2020-03-24 16:33
samba.py
1.6
KB
-rw-r--r--
2020-03-24 16:33
sanlock.py
1020
B
-rw-r--r--
2020-03-24 16:33
saphana.py
2.82
KB
-rw-r--r--
2020-03-24 16:33
sapnw.py
5.33
KB
-rw-r--r--
2020-03-24 16:33
sar.py
2.2
KB
-rw-r--r--
2020-03-24 16:33
sas3ircu.py
1.25
KB
-rw-r--r--
2020-03-24 16:33
scsi.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
selinux.py
1.74
KB
-rw-r--r--
2020-03-24 16:33
sendmail.py
1.2
KB
-rw-r--r--
2020-03-24 16:33
services.py
1.36
KB
-rw-r--r--
2020-03-24 16:33
skydive.py
2.12
KB
-rw-r--r--
2020-03-24 16:33
smartcard.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
snappy.py
1014
B
-rw-r--r--
2020-03-24 16:33
snmp.py
1014
B
-rw-r--r--
2020-03-24 16:33
sos_extras.py
3.72
KB
-rw-r--r--
2020-03-24 16:33
soundcard.py
1.11
KB
-rw-r--r--
2020-03-24 16:33
squid.py
1.26
KB
-rw-r--r--
2020-03-24 16:33
ssh.py
830
B
-rw-r--r--
2020-03-24 16:33
ssmtp.py
968
B
-rw-r--r--
2020-03-24 16:33
sssd.py
2.01
KB
-rw-r--r--
2020-03-24 16:33
storageconsole.py
1.64
KB
-rw-r--r--
2020-03-24 16:33
stratis.py
975
B
-rw-r--r--
2020-03-24 16:33
subscription_manager.py
1.82
KB
-rw-r--r--
2020-03-24 16:33
sudo.py
906
B
-rw-r--r--
2020-03-24 16:33
sunrpc.py
852
B
-rw-r--r--
2020-03-24 16:33
symcli.py
3.45
KB
-rw-r--r--
2020-03-24 16:33
system.py
1.13
KB
-rw-r--r--
2020-03-24 16:33
systemd.py
2.48
KB
-rw-r--r--
2020-03-24 16:33
systemtap.py
912
B
-rw-r--r--
2020-03-24 16:33
sysvipc.py
920
B
-rw-r--r--
2020-03-24 16:33
targetcli.py
1.02
KB
-rw-r--r--
2020-03-24 16:33
teamd.py
1.55
KB
-rw-r--r--
2020-03-24 16:33
tftpserver.py
863
B
-rw-r--r--
2020-03-24 16:33
tomcat.py
1.82
KB
-rw-r--r--
2020-03-24 16:33
tuned.py
1.07
KB
-rw-r--r--
2020-03-24 16:33
ubuntu.py
721
B
-rw-r--r--
2020-03-24 16:33
udev.py
792
B
-rw-r--r--
2020-03-24 16:33
unity.py
691
B
-rw-r--r--
2020-03-24 16:33
unpackaged.py
2.75
KB
-rw-r--r--
2020-03-24 16:33
upstart.py
1.35
KB
-rw-r--r--
2020-03-24 16:33
usb.py
765
B
-rw-r--r--
2020-03-24 16:33
validation_framework.py
1.5
KB
-rw-r--r--
2020-03-24 16:33
vdo.py
964
B
-rw-r--r--
2020-03-24 16:33
vdsm.py
4.74
KB
-rw-r--r--
2020-03-24 16:33
veritas.py
1.28
KB
-rw-r--r--
2020-03-24 16:33
vhostmd.py
1.68
KB
-rw-r--r--
2020-03-24 16:33
virsh.py
2.25
KB
-rw-r--r--
2020-03-24 16:33
virtwho.py
975
B
-rw-r--r--
2020-03-24 16:33
vmware.py
805
B
-rw-r--r--
2020-03-24 16:33
vsftpd.py
712
B
-rw-r--r--
2020-03-24 16:33
vulkan.py
734
B
-rw-r--r--
2020-03-24 16:33
watchdog.py
2.71
KB
-rw-r--r--
2020-03-24 16:33
wireless.py
969
B
-rw-r--r--
2020-03-24 16:33
x11.py
1.41
KB
-rw-r--r--
2020-03-24 16:33
xen.py
3.48
KB
-rw-r--r--
2020-03-24 16:33
xfs.py
1.05
KB
-rw-r--r--
2020-03-24 16:33
xinetd.py
871
B
-rw-r--r--
2020-03-24 16:33
yum.py
3.91
KB
-rw-r--r--
2020-03-24 16:33
zfs.py
1.09
KB
-rw-r--r--
2020-03-24 16:33
Save
Rename
# Copyright (C) 2014 Red Hat, Inc., Sandro Bonazzola <sbonazzo@redhat.com> # Copyright (C) 2014 Red Hat, Inc., Bryn M. Reeves <bmr@redhat.com> # Copyright (C) 2010 Red Hat, Inc. # This file is part of the sos project: https://github.com/sosreport/sos # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # version 2 of the GNU General Public License. # # See the LICENSE file in the source distribution for further information. import os import re import signal from sos.plugins import Plugin, RedHatPlugin from sos.utilities import is_executable # Class name must be the same as file name and method names must not change class Ovirt(Plugin, RedHatPlugin): """oVirt Engine""" plugin_name = "ovirt" profiles = ('virt',) packages = ( 'ovirt-engine', 'ovirt-engine-dwh', 'ovirt-engine-reports', 'ovirt-scheduler-proxy', 'rhevm', 'rhevm-dwh', 'rhevm-reports' ) DB_PASS_FILES = re.compile( flags=re.VERBOSE, pattern=r"""^/etc/ (rhevm|ovirt-engine|ovirt-engine-dwh)/ (engine.conf|ovirt-engine-dwhd.conf) (\.d/.+.conf.*?)?$""" ) DEFAULT_SENSITIVE_KEYS = ( 'ENGINE_DB_PASSWORD:ENGINE_PKI_TRUST_STORE_PASSWORD:' 'ENGINE_PKI_ENGINE_STORE_PASSWORD:DWH_DB_PASSWORD' ) option_list = [ ('jbosstrace', 'Enable oVirt Engine JBoss stack trace collection', '', True), ('sensitive_keys', 'Sensitive keys to be masked', '', DEFAULT_SENSITIVE_KEYS), ('heapdump', 'Collect heap dumps from /var/log/ovirt-engine/dump/', '', False) ] def setup(self): if self.get_option('jbosstrace') and self.is_installed('ovirt-engine'): engine_pattern = r"^ovirt-engine\ -server.*jboss-modules.jar" pgrep = "pgrep -f '%s'" % engine_pattern r = self.exec_cmd(pgrep) engine_pids = [int(x) for x in r['output'].splitlines()] if not engine_pids: self.soslog.error('Unable to get ovirt-engine pid') self.add_alert('Unable to get ovirt-engine pid') for pid in engine_pids: try: # backtrace written to '/var/log/ovirt-engine/console.log os.kill(pid, signal.SIGQUIT) except OSError as e: self.soslog.error('Unable to send signal to %d' % pid, e) self.add_forbidden_path([ '/etc/ovirt-engine/.pgpass', '/etc/rhevm/.pgpass' ]) if not self.get_option('heapdump'): self.add_forbidden_path('/var/log/ovirt-engine/dump') self.add_cmd_output('ls -l /var/log/ovirt-engine/dump/') self.add_cmd_output([ # Copy all engine tunables and domain information "engine-config --all", # clearer diff from factory defaults (only on ovirt>=4.2.8) "engine-config -d" ]) # 3.x line uses engine-manage-domains, 4.x uses ovirt-aaa-jdbc-tool manage_domains = 'engine-manage-domains' extensions_tool = 'ovirt-engine-extensions-tool' jdbc_tool = 'ovirt-aaa-jdbc-tool' if is_executable(manage_domains): self.add_cmd_output('%s list' % manage_domains) if is_executable(extensions_tool): self.add_cmd_output('%s info list-extensions' % extensions_tool) if is_executable('ovirt-aaa-jdbc-tool'): subcmds = [ 'query --what=user', 'query --what=group', 'settings show' ] self.add_cmd_output(['%s %s' % (jdbc_tool, sc) for sc in subcmds]) # Copy engine config files. self.add_copy_spec([ "/etc/ovirt-engine", "/etc/rhevm/", "/etc/ovirt-engine-dwh", "/etc/ovirt-engine-reports", "/var/log/ovirt-engine", "/var/log/ovirt-engine-dwh", "/var/log/ovirt-engine-reports", "/var/log/ovirt-scheduler-proxy", "/var/log/rhevm", "/etc/sysconfig/ovirt-engine", "/usr/share/ovirt-engine/conf", "/var/log/ovirt-guest-agent", "/var/lib/ovirt-engine/setup-history.txt", "/var/lib/ovirt-engine/setup/answers", "/var/lib/ovirt-engine/external_truststore", "/var/tmp/ovirt-engine/config", "/var/lib/ovirt-engine/jboss_runtime/config", "/var/lib/ovirt-engine-reports/jboss_runtime/config" ]) # Copying host certs. self.add_forbidden_path([ "/etc/pki/ovirt-engine/keys", "/etc/pki/ovirt-engine/private", "/etc/pki/ovirt-engine/.truststore" ]) self.add_copy_spec("/etc/pki/ovirt-engine/") def postproc(self): """ Obfuscate sensitive keys. """ self.do_file_sub( "/etc/ovirt-engine/engine-config/engine-config.properties", r"Password.type=(.*)", r"Password.type=********" ) self.do_file_sub( "/etc/rhevm/rhevm-config/rhevm-config.properties", r"Password.type=(.*)", r"Password.type=********" ) engine_files = ( 'ovirt-engine.xml', 'ovirt-engine_history/current/ovirt-engine.v1.xml', 'ovirt-engine_history/ovirt-engine.boot.xml', 'ovirt-engine_history/ovirt-engine.initial.xml', 'ovirt-engine_history/ovirt-engine.last.xml', ) for filename in engine_files: self.do_file_sub( "/var/tmp/ovirt-engine/config/%s" % filename, r"<password>(.*)</password>", r"<password>********</password>" ) self.do_file_sub( "/etc/ovirt-engine/redhatsupportplugin.conf", r"proxyPassword=(.*)", r"proxyPassword=********" ) passwd_files = [ "logcollector.conf", "imageuploader.conf", "isouploader.conf" ] for conf_file in passwd_files: conf_path = os.path.join("/etc/ovirt-engine", conf_file) self.do_file_sub( conf_path, r"passwd=(.*)", r"passwd=********" ) self.do_file_sub( conf_path, r"pg-pass=(.*)", r"pg-pass=********" ) sensitive_keys = self.DEFAULT_SENSITIVE_KEYS # Handle --alloptions case which set this to True. keys_opt = self.get_option('sensitive_keys') if keys_opt and keys_opt is not True: sensitive_keys = keys_opt key_list = [x for x in sensitive_keys.split(':') if x] for key in key_list: self.do_path_regex_sub( self.DB_PASS_FILES, r'{key}=(.*)'.format(key=key), r'{key}=********'.format(key=key) ) # Answer files contain passwords for key in ( 'OVESETUP_CONFIG/adminPassword', 'OVESETUP_CONFIG/remoteEngineHostRootPassword', 'OVESETUP_DWH_DB/password', 'OVESETUP_DB/password', 'OVESETUP_REPORTS_CONFIG/adminPassword', 'OVESETUP_REPORTS_DB/password', ): self.do_path_regex_sub( r'/var/lib/ovirt-engine/setup/answers/.*', r'{key}=(.*)'.format(key=key), r'{key}=********'.format(key=key) ) # aaa profiles contain passwords protect_keys = [ "vars.password", "pool.default.auth.simple.password", "pool.default.ssl.truststore.password", "config.datasource.dbpassword" ] regexp = r"((?m)^\s*#*(%s)\s*=\s*)(.*)" % "|".join(protect_keys) self.do_path_regex_sub(r"/etc/ovirt-engine/aaa/.*\.properties", regexp, r"\1*********") # vim: expandtab tabstop=4 shiftwidth=4