X7ROOT File Manager
Current Path:
/usr/libexec
usr
/
libexec
/
📁
..
📄
abrt-action-generate-machine-id
(5.69 KB)
📄
abrt-action-install-debuginfo-to-abrt-cache
(14.98 KB)
📄
abrt-action-ureport
(5.7 KB)
📄
abrt-gdb-exploitable
(27.43 KB)
📄
abrt-handle-event
(15.01 KB)
📄
abrt-hook-ccpp
(31.14 KB)
📄
accounts-daemon
(171.16 KB)
📁
anaconda
📄
anydesk
(11.62 MB)
📄
at-spi-bus-launcher
(23.97 KB)
📄
at-spi2-registryd
(89.33 KB)
📁
awk
📁
bluetooth
📄
boltd
(263.39 KB)
📄
camel-gpg-photo-saver
(11.43 KB)
📄
camel-index-control-1.2
(11.29 KB)
📄
camel-lock-helper-1.2
(15.41 KB)
📄
cc-remote-login-helper
(11.11 KB)
📄
chrony-helper
(6.37 KB)
📁
clufter-0.77.1
📄
colord
(329.13 KB)
📄
colord-session
(57.31 KB)
📄
copy_jdk_configs.lua
(9.37 KB)
📄
copy_jdk_configs_fixFiles.sh
(7.17 KB)
📁
coreutils
📄
cups-pk-helper-mechanism
(123.97 KB)
📁
dbus-1
📄
dconf-service
(83.03 KB)
📄
dleyna-server-service
(11.13 KB)
📁
dovecot
📄
ebtables
(1.66 KB)
📄
empathy-auth-client
(28.01 KB)
📄
empathy-call
(187 KB)
📄
empathy-chat
(104.3 KB)
📄
evinced
(40.96 KB)
📄
evolution-addressbook-factory
(11.41 KB)
📄
evolution-addressbook-factory-subprocess
(15.68 KB)
📄
evolution-calendar-factory
(11.41 KB)
📄
evolution-calendar-factory-subprocess
(15.68 KB)
📁
evolution-data-server
📄
evolution-scan-gconf-tree-xml
(52.88 KB)
📄
evolution-source-registry
(114.1 KB)
📄
evolution-user-prompter
(15.56 KB)
📁
fcoe
📄
fence_kdump_send
(15.2 KB)
📁
file-roller
📄
flatpak-bwrap
(52.53 KB)
📄
flatpak-dbus-proxy
(44.97 KB)
📄
flatpak-portal
(91.18 KB)
📄
flatpak-session-helper
(663.18 KB)
📄
flatpak-system-helper
(675.24 KB)
📄
fprintd
(45.24 KB)
📁
fwupd
📁
fwupdate
📄
gam_server
(90.73 KB)
📁
gcc
📄
gcm-helper-exiv
(19.73 KB)
📄
gconf-defaults-mechanism
(32.64 KB)
📄
gconfd-2
(48.7 KB)
📄
gcr-prompter
(11.4 KB)
📄
gcr-ssh-askpass
(44.38 KB)
📄
gdm-disable-wayland
(11.08 KB)
📄
gdm-host-chooser
(43.77 KB)
📄
gdm-session-worker
(274.13 KB)
📄
gdm-simple-chooser
(47.88 KB)
📄
gdm-wayland-session
(64.63 KB)
📄
gdm-x-session
(80.96 KB)
📁
gedit
📄
generate-rndc-key.sh
(546 B)
📄
geoclue
(269.93 KB)
📁
getconf
📁
git-core
📄
glib-pacrunner
(15.73 KB)
📄
gnome-boxes-search-provider
(128.76 KB)
📄
gnome-calculator-search-provider
(28.14 KB)
📄
gnome-contacts-search-provider
(181.12 KB)
📄
gnome-control-center-search-provider
(49.56 KB)
📄
gnome-initial-setup
(936.95 KB)
📄
gnome-initial-setup-copy-worker
(11.2 KB)
📄
gnome-rr-debug
(11.38 KB)
📄
gnome-session-binary
(291.61 KB)
📄
gnome-session-check-accelerated
(11.33 KB)
📄
gnome-session-check-accelerated-gl-helper
(15.44 KB)
📄
gnome-session-check-accelerated-gles-helper
(11.31 KB)
📄
gnome-session-failed
(19.8 KB)
📄
gnome-shell-calendar-server
(36.76 KB)
📄
gnome-shell-hotplug-sniffer
(28.16 KB)
📄
gnome-shell-perf-helper
(15.76 KB)
📄
gnome-shell-portal-helper
(2.06 MB)
📄
gnome-software-cmd
(261.79 KB)
📄
gnome-software-restarter
(11.18 KB)
📁
gnome-system-monitor
📄
gnome-terminal-migration
(40.66 KB)
📄
gnome-terminal-server
(345.11 KB)
📄
gnome-tweak-tool-lid-inhibitor
(1.51 KB)
📄
gnome-welcome-tour
(440 B)
📄
gnupg-pcsc-wrapper
(19.3 KB)
📄
goa-daemon
(45.23 KB)
📄
goa-identity-service
(141.66 KB)
📄
gom-gdata-miner
(28.18 KB)
📄
gom-owncloud-miner
(19.96 KB)
📄
gom-zpj-miner
(15.66 KB)
📄
gpg-check-pattern
(102.95 KB)
📄
gpg-preset-passphrase
(86.39 KB)
📄
gpg-protect-tool
(185.57 KB)
📄
gpg2keys_curl
(44.81 KB)
📄
gpg2keys_finger
(61.34 KB)
📄
gpg2keys_hkp
(53 KB)
📄
gpg2keys_ldap
(61.02 KB)
📄
grepconf.sh
(253 B)
📁
grubby
📄
gsd-a11y-settings
(15.85 KB)
📄
gsd-account
(99.5 KB)
📄
gsd-backlight-helper
(11.3 KB)
📄
gsd-clipboard
(28.41 KB)
📄
gsd-color
(79.23 KB)
📄
gsd-datetime
(62.84 KB)
📄
gsd-disk-utility-notify
(15.72 KB)
📄
gsd-dummy
(15.87 KB)
📄
gsd-housekeeping
(45.71 KB)
📄
gsd-keyboard
(28.59 KB)
📄
gsd-locate-pointer
(32.41 KB)
📄
gsd-media-keys
(211.83 KB)
📄
gsd-mouse
(20.13 KB)
📄
gsd-power
(91.17 KB)
📄
gsd-print-notifications
(40.91 KB)
📄
gsd-printer
(27.86 KB)
📄
gsd-rfkill
(41.13 KB)
📄
gsd-screensaver-proxy
(24.08 KB)
📄
gsd-sharing
(28.5 KB)
📄
gsd-smartcard
(95.89 KB)
📄
gsd-sound
(20.2 KB)
📄
gsd-wacom
(62.37 KB)
📄
gsd-wacom-led-helper
(11.27 KB)
📄
gsd-wacom-oled-helper
(15.33 KB)
📄
gsd-xsettings
(59.34 KB)
📄
gst-install-plugins-helper
(19.68 KB)
📁
gstreamer-0.10
📁
gstreamer-1.0
📄
gvfs-afc-volume-monitor
(90.86 KB)
📄
gvfs-goa-volume-monitor
(95.33 KB)
📄
gvfs-gphoto2-volume-monitor
(95.09 KB)
📄
gvfs-mtp-volume-monitor
(90.95 KB)
📄
gvfs-udisks2-volume-monitor
(171.29 KB)
📄
gvfsd
(32.57 KB)
📄
gvfsd-admin
(36.86 KB)
📄
gvfsd-afc
(61.3 KB)
📄
gvfsd-afp
(127.95 KB)
📄
gvfsd-afp-browse
(107.2 KB)
📄
gvfsd-archive
(32.65 KB)
📄
gvfsd-burn
(32.46 KB)
📄
gvfsd-cdda
(32.48 KB)
📄
gvfsd-computer
(41.01 KB)
📄
gvfsd-dav
(99.82 KB)
📄
gvfsd-dnssd
(32.58 KB)
📄
gvfsd-ftp
(94.51 KB)
📄
gvfsd-fuse
(41.08 KB)
📄
gvfsd-google
(65.78 KB)
📄
gvfsd-gphoto2
(65.6 KB)
📄
gvfsd-http
(40.98 KB)
📄
gvfsd-localtest
(44.63 KB)
📄
gvfsd-metadata
(78.63 KB)
📄
gvfsd-mtp
(69.56 KB)
📄
gvfsd-network
(32.63 KB)
📄
gvfsd-recent
(32.56 KB)
📄
gvfsd-sftp
(99.01 KB)
📄
gvfsd-smb
(48.93 KB)
📄
gvfsd-smb-browse
(65.65 KB)
📄
gvfsd-trash
(49.48 KB)
📁
heartbeat
📄
httpd-ssl-pass-dialog
(81 B)
📁
hypervkvpd
📄
ibus-dconf
(19.75 KB)
📄
ibus-engine-chewing
(97.91 KB)
📄
ibus-engine-hangul
(32.59 KB)
📄
ibus-engine-kkc
(62.29 KB)
📄
ibus-engine-libpinyin
(204.85 KB)
📄
ibus-engine-m17n
(36.52 KB)
📄
ibus-engine-rawcode
(19.75 KB)
📄
ibus-engine-sayura
(16.55 KB)
📄
ibus-engine-simple
(11.47 KB)
📄
ibus-engine-table
(1.4 KB)
📄
ibus-portal
(78.53 KB)
📄
ibus-setup-hangul
(902 B)
📄
ibus-setup-kkc
(82.04 KB)
📄
ibus-setup-libpinyin
(1.04 KB)
📄
ibus-setup-m17n
(28.23 KB)
📄
ibus-ui-emojier
(103.55 KB)
📄
ibus-ui-gtk3
(278.48 KB)
📄
ibus-x11
(93.1 KB)
📄
imsettings-check
(15.3 KB)
📄
imsettings-daemon
(57.24 KB)
📄
imsettings-functions
(6.71 KB)
📄
imsettings-target-checker.sh
(2.82 KB)
📁
initial-setup
📁
initscripts
📁
ipsec
📄
iscsi-mark-root-nodes
(852 B)
📁
kde4
📄
ksmctl
(7.11 KB)
📁
libinput
📄
libvirt-guests.sh
(15.85 KB)
📄
libvirt_iohelper
(410.68 KB)
📄
libvirt_leaseshelper
(414.67 KB)
📄
libvirt_parthelper
(414.67 KB)
📁
linux-boot-probes
📁
lm_sensors
📁
lsm.d
📁
man-db
📄
mariadb-prepare-db-dir
(6.02 KB)
📄
mariadb-wait-ready
(1.71 KB)
📄
mbim-proxy
(15.21 KB)
📁
microcode_ctl
📄
mission-control-5
(374.55 KB)
📄
mlx4-setup.sh
(2.48 KB)
📄
mutter-restart-helper
(11.08 KB)
📄
mysqld
(13.64 MB)
📄
netcf-transaction.sh
(7.21 KB)
📄
newns
(7.03 KB)
📄
nm-dhcp-helper
(15.12 KB)
📄
nm-dispatcher
(47.7 KB)
📄
nm-iface-helper
(839.36 KB)
📄
nm-ifdown
(155 B)
📄
nm-ifup
(153 B)
📄
nm-libreswan-auth-dialog
(19.7 KB)
📄
nm-libreswan-service
(70.81 KB)
📄
nm-libreswan-service-helper
(36.78 KB)
📄
ntpdate-wrapper
(806 B)
📁
oddjob
📄
openipmi-helper
(12.54 KB)
📁
openldap
📁
openssh
📁
os-probes
📁
p11-kit
📁
p7zip
📁
pacemaker
📄
packagekit-direct
(99.72 KB)
📄
packagekitd
(293.48 KB)
📄
pk-command-not-found
(40.55 KB)
📄
pk-gstreamer-install
(19.68 KB)
📄
pk-offline-update
(32.16 KB)
📄
platform-python
(6.98 KB)
📁
plymouth
📁
postfix
📁
proftpd
📁
psacct
📁
pulse
📄
qemu-bridge-helper
(15 KB)
📄
qemu-kvm
(5.02 MB)
📄
qmi-proxy
(11.24 KB)
📄
rdma-init-kernel
(5.59 KB)
📄
rdma-set-sriov-vf
(3.05 KB)
📄
rtkit-daemon
(59.64 KB)
📁
selinux
📄
setup-named-chroot.sh
(2.63 KB)
📁
smartmontools
📁
spice-gtk-x86_64
📁
sudo
📄
sushi-start
(15.5 KB)
📁
systemtap
📄
telepathy-gabble
(1 MB)
📄
telepathy-haze
(199.66 KB)
📄
telepathy-logger
(11.27 KB)
📄
telepathy-salut
(583.88 KB)
📄
totem-gallery-thumbnailer
(32.24 KB)
📄
tracker-extract
(91.48 KB)
📄
tracker-miner-apps
(32.4 KB)
📄
tracker-miner-fs
(127.7 KB)
📄
tracker-miner-user-guides
(28.46 KB)
📄
tracker-store
(139.55 KB)
📄
tracker-writeback
(41.11 KB)
📄
truescale-serdes.cmds
(8.5 KB)
📁
tuned
📁
udisks2
📄
upowerd
(247.37 KB)
📄
urlgrabber-ext-down
(2.54 KB)
📁
usermin
📁
utempter
📄
vino-server
(281.09 KB)
📄
virt-what-cpuid-helper
(7.02 KB)
📁
virtuoso
📁
webkit2gtk-4.0
📁
webkitgtk3
📁
webmin
📄
xdg-desktop-portal
(557.36 KB)
📄
xdg-desktop-portal-gtk
(567.41 KB)
📄
xdg-document-portal
(174.6 KB)
📄
xdg-permission-store
(95.98 KB)
📄
xf86-video-intel-backlight-helper
(7.13 KB)
📄
xinputinfo.sh
(3.74 KB)
Editing: abrt-action-generate-machine-id
#!/usr/bin/python ## Copyright (C) 2014 ABRT team <abrt-devel-list@redhat.com> ## Copyright (C) 2014 Red Hat, Inc. ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA """This module provides algorithms for generating Machine IDs. """ import os import sys from argparse import ArgumentParser from subprocess import check_output, CalledProcessError import logging import hashlib def generate_machine_id_dmidecode(): """Generate a machine_id based off dmidecode fields The function generates the same result as sosreport-uploader Returns a machine ID as string or throws RuntimeException """ if not os.path.isfile("/usr/sbin/dmidecode"): raise RuntimeError("Could not find dmidecode. It might not be available for this " \ "architecture.") # What to look for keys = ['system-manufacturer', 'system-product-name', 'system-serial-number', 'system-uuid'] # Create a sha256 of ^ for machine_id machine_id = hashlib.sha256() # Run dmidecode command for k in keys: try: data = check_output(["dmidecode", "-s", k]).strip() except (OSError, CalledProcessError) as ex: raise RuntimeError("Execution of dmidecode failed: {0}".format(str(ex))) # Update the hash as we find the fields we are looking for machine_id.update(data) # Create sha256 digest return machine_id.hexdigest() def generate_machine_id_systemd(): """Generate a machine_id equals to a one generated by systemd This function returns contents of /etc/machine-id Returns a machine ID as string or throws RuntimeException. """ try: with open('/etc/machine-id', 'r') as midf: return "".join((l.strip() for l in midf)) except IOError as ex: raise RuntimeError("Could not use systemd's machine-id: {0}" .format(str(ex))) GENERATORS = { 'sosreport_uploader-dmidecode' : generate_machine_id_dmidecode, 'systemd' : generate_machine_id_systemd } def generate_machine_id(generators): """Generates all requested machine id with all required generators Keyword arguments: generators -- a list of generator names Returns a dictionary where keys are generators and associated values are products of those generators. """ ids = {} workers = GENERATORS for sd in generators: try: ids[sd] = workers[sd]() except RuntimeError as ex: logging.error("Machine-ID generator '{0}' failed: {1}" .format(sd, ex.message)) return ids def print_result(ids, outfile, prefixed): """Writes a dictionary of machine ids to a file Each dictionary entry is written on a single line. The function does not print trailing new-line if the dictionary contains only one item as it is common format of one-liners placed in a dump directory. Keyword arguments: ids -- a dictionary [generator name: machine ids] outfile -- output file prefixed -- use 'generator name=' prefix or not """ fmt = '{0}={1}' if prefixed else '{1}' if len(ids) > 1: fmt += '\n' for sd, mid in ids.iteritems(): outfile.write(fmt.format(sd,mid)) def print_generators(outfile=None): """Prints requested generators Keyword arguments: outfile -- output file (default: sys.stdout) """ if outfile is None: outfile = sys.stdout for sd in GENERATORS.iterkeys(): outfile.write("{0}\n".format(sd)) if __name__ == '__main__': CMDARGS = ArgumentParser(description = "Generate a machine_id") CMDARGS.add_argument('-o', '--output', type=str, help="Output file") CMDARGS.add_argument('-g', '--generators', nargs='+', type=str, help="Use given generators only") CMDARGS.add_argument('-l', '--list-generators', action='store_true', default=False, help="Print out a list of usable generators") CMDARGS.add_argument('-n', '--noprefix', action='store_true', default=False, help="Do not use generator name as prefix for IDs") OPTIONS = CMDARGS.parse_args() ARGS = vars(OPTIONS) logging.basicConfig(format='%(message)s') if ARGS['list_generators']: print_generators() sys.exit(0) requested_generators = None if ARGS['generators']: requested_generators = ARGS['generators'] else: requested_generators = GENERATORS.keys() machineids = generate_machine_id(requested_generators) if ARGS['output']: try: with open(ARGS['output'], 'w') as fout: print_result(machineids, fout, not ARGS['noprefix']) except IOError as ex: logging.error("Could not open output file: {0}".format(str(ex))) sys.exit(1) else: print_result(machineids, sys.stdout, not ARGS['noprefix']) # print_results() omits new-line for one-liners if len(machineids) == 1: sys.stdout.write('\n') sys.exit(len(requested_generators) - len(machineids.keys()))
Upload File
Create Folder