Sfoglia il codice sorgente

Added non-privileged x86info invocation to bug-report tool

A privileged x86info invocation may fail when executed as root, due
to GRKERNSEC_KMEM /dev/mem protection.
Maxim Kammerer 13 anni fa
parent
commit
1a595d4492
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/usr/local/sbin/bug-report

+ 1 - 0
src/usr/local/sbin/bug-report

@@ -33,6 +33,7 @@ modprobe msr
 # Build the report
 echo Architecture ...
 x86info -a                           > 01-x86
+sudo -n -u nobody x86info -a         > 01-x86-npriv
 lsmsr -a -V 4                        > 01-msr
 cp /proc/cpuinfo                       02-cpu
 cpufreq-info                         > 02-cpu-freq