浏览代码

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 年之前
父节点
当前提交
1a595d4492
共有 1 个文件被更改,包括 1 次插入0 次删除
  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