Benchmarking sob o SELinux Sandbox com o Phoronix Test Suite

2

Eu gostaria de executar o Phoronix Test Suite 6.2.2 sob o sandbox do SELinux no Fedora 23, mas não posso executá-lo usando $ sandbox ./phoronix-test-suite . Eu provavelmente não tenho o tipo correto de SELinux. Gostaria de executar os seguintes conjuntos de testes no sandbox.

  • Disk Test Suite
  • Gráficos da área de trabalho
  • Conjunto de testes de memória
  • Conjunto de testes de rede
  • Kernel
  • Codificação de vídeo
  • Sistema Linux
  • Criptografia
  • CPU / Processor Suite

Aqui está o que eu tentei até agora.

[slazer@localhost phoronix-test-suite]$ seinfo -t | egrep '^   sandbox'
   sandbox_x_client_t
   sandbox_net_client_t
   sandbox_xserver_tmpfs_t
   sandbox_web_client_tmpfs_t
   sandbox_devpts_t
   sandbox_xserver_t
   sandbox_exec_t
   sandbox_file_t
   sandbox_xserver_input_xevent_t
   sandbox_x_t
   sandbox_web_client_t
   sandbox_min_t
   sandbox_net_t
   sandbox_web_t
   sandbox_min_client_t
   sandbox_net_client_tmpfs_t
   sandbox_x_client_tmpfs_t
   sandbox_xserver_xproperty_t
   sandbox_t
   sandbox_min_client_tmpfs_t

[slazer@localhost phoronix-test-suite]$ pwd
/home/slazer/Downloads/phoronix-test-suite

[slazer@localhost phoronix-test-suite]$ ls
AUTHORS  ChangeLog  COPYING  deploy  documentation  install-sh  phoronix-test-suite  phoronix-test-suite.bat  pts-core  README.md  sehome  tmp

[slazer@localhost phoronix-test-suite]$ sandbox ./phoronix-test-suite
/bin/sh: ./phoronix-test-suite: Permission denied

[slazer@localhost phoronix-test-suite]$ sandbox -M -H sehome/ -T tmp/ -t sandbox_exec_t -X ./phoronix-test-suite
/usr/bin/sandbox:437: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
Could not set exec context to unconfined_u:unconfined_r:sandbox_exec_t:s0:c460,c525. Invalid argument

[slazer@localhost phoronix-test-suite]$ sandbox -M -H sehome/ -T tmp/ -t sandbox_exec_t ./phoronix-test-suite
Could not set exec context to unconfined_u:unconfined_r:sandbox_exec_t:s0:c106,c534. Invalid argument

[slazer@localhost phoronix-test-suite]$ sandbox -M -H sehome/ -T tmp/ -t sandbox_x_t -X ./phoronix-test-suite
/usr/bin/sandbox:437: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
Couldn't exec /home/slazer/Downloads/phoronix-test-suite/phoronix-test-suite: Permission denied
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 1700 requests (1700 known processed) with 0 events remaining.

[slazer@localhost phoronix-test-suite]$ sandbox -M -H sehome/ -T tmp/ -t sandbox_t ./phoronix-test-suite
Failed to execute command /home/slazer/Downloads/phoronix-test-suite/phoronix-test-suite: Permission denied

[slazer@localhost phoronix-test-suite]$ sandbox -M -H sehome/ -T tmp/ -t sandbox_file_t ./phoronix-test-suite
Failed to execute command /home/slazer/Downloads/phoronix-test-suite/phoronix-test-suite: Operation not permitted

[slazer@localhost phoronix-test-suite]$ sandbox -M -H sehome/ -T tmp/ -t sandbox_net_t ./phoronix-test-suite
Failed to execute command /home/slazer/Downloads/phoronix-test-suite/phoronix-test-suite: Permission denied
    
por Slazer 01.05.2016 / 02:53

0 respostas