Phoronix 테스트 스위트를 사용하여 SELinux 샌드박스에서 벤치마킹

Phoronix 테스트 스위트를 사용하여 SELinux 샌드박스에서 벤치마킹

Fedora 23의 SELinux 샌드박스에서 Phoronix Test Suite 6.2.2를 실행하고 싶지만 $ sandbox ./phoronix-test-suite올바른 SELinux 유형이 없을 수 있습니다. 샌드박스에서 다음 테스트 스위트를 실행하고 싶습니다.

  • 디스크 테스트 스위트
  • 데스크탑 그래픽
  • 메모리 테스트 스위트
  • 네트워크 테스트 스위트
  • 핵심
  • 비디오 인코딩
  • 리눅스 시스템
  • 암호화
  • CPU/프로세서 키트

지금까지 내가 시도한 것은 다음과 같습니다.

[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

관련 정보