----------------------------------------------------------------------
Ran 51 tests in 49.813s
FAILED (failures=1)
flag@panda:~/qrt-test-kernel-security$ uname -a
Linux panda 3.4.0-204-omap4 #9 SMP PREEMPT Fri Jul 6 15:45:33 UTC 2012 armv7l armv7l armv7l GNU/Linux
flag@panda:~/qrt-test-kernel-security$
and in particular:
test_072_config_compat_vdso (__main__.KernelSecurityTest)
CONFIG_COMPAT_VDSO disabled ... ok
test_072_config_debug_rodata (__main__.KernelSecurityTest)
CONFIG_DEBUG_RODATA enabled ... (skipped: only x86) FAIL
test_072_config_debug_set_module_ronx (__main__.KernelSecurityTest)
CONFIG_DEBUG_SET_MODULE_RONX enabled ... (skipped: only x86) ok
test_072_config_security_apparmor (__main__.KernelSecurityTest)
CONFIG_SECURITY_APPARMOR enabled ... ok
test_072_config_strict_devmem (__main__.KernelSecurityTest)
CONFIG_STRICT_DEVMEM enabled ... ok
test_072_strict_devmem (__main__.KernelSecurityTest)
/dev/mem unreadable for kernel memory ... (using 0xa74e28c0L) [ 476.587219] Program readmem tried to access /dev/mem between 80008000->80008004.
(exit code 0) ok
and here is a snippet of the test:
def test_072_strict_devmem(self):
'''/dev/mem unreadable for kernel memory'''
os.chdir('mem')
target = None
if self.kernel_is_ubuntu:
# There isn't a sane way to install the headers via the QRT fields,
# since there is no meta package for just "linux-headers". self.assertShellExitEquals(0, ["apt-get","-y","install", "linux-headers-%s" % (self.kernel_version)])
i wonder, do you have the correct headers installed?
You need these:
ii linux-headers-3.4.0-204 3.4.0-204.9 Header files related to Linux kernel version 3.4.0
ii linux-headers-3.4.0-204-omap4 3.4.0-204.9 Linux kernel headers for version 3.4.0 on TI OMAP4-based systems
ok, after installing the tests and running it manually i saw no failures here (except for the RODATA fail above that is bogus):
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= config_ debug_rodata (__main_ _.KernelSecurit yTest) ------- ------- ------- ------- ------- ------- ------- ------- ------- kernel- security. py", line 664, in test_072_ config_ debug_rodata assertEqual( self._test_ config( 'DEBUG_ RODATA' ), expected)
FAIL: test_072_
CONFIG_DEBUG_RODATA enabled
-------
Traceback (most recent call last):
File "./test-
self.
AssertionError: True != False
------- ------- ------- ------- ------- ------- ------- ------- ------- -------
Ran 51 tests in 49.813s
FAILED (failures=1)
flag@panda: ~/qrt-test- kernel- security$ uname -a ~/qrt-test- kernel- security$
Linux panda 3.4.0-204-omap4 #9 SMP PREEMPT Fri Jul 6 15:45:33 UTC 2012 armv7l armv7l armv7l GNU/Linux
flag@panda:
and in particular:
test_072_ config_ compat_ vdso (__main_ _.KernelSecurit yTest) config_ debug_rodata (__main_ _.KernelSecurit yTest) config_ debug_set_ module_ ronx (__main_ _.KernelSecurit yTest) DEBUG_SET_ MODULE_ RONX enabled ... (skipped: only x86) ok config_ security_ apparmor (__main_ _.KernelSecurit yTest) SECURITY_ APPARMOR enabled ... ok config_ strict_ devmem (__main_ _.KernelSecurit yTest) STRICT_ DEVMEM enabled ... ok strict_ devmem (__main_ _.KernelSecurit yTest)
CONFIG_COMPAT_VDSO disabled ... ok
test_072_
CONFIG_DEBUG_RODATA enabled ... (skipped: only x86) FAIL
test_072_
CONFIG_
test_072_
CONFIG_
test_072_
CONFIG_
test_072_
/dev/mem unreadable for kernel memory ... (using 0xa74e28c0L) [ 476.587219] Program readmem tried to access /dev/mem between 80008000->80008004.
(exit code 0) ok
and here is a snippet of the test:
def test_072_ strict_ devmem( self):
'''/dev/mem unreadable for kernel memory'''
target = None
if self.kernel_
# There isn't a sane way to install the headers via the QRT fields,
# since there is no meta package for just "linux-headers".
i wonder, do you have the correct headers installed?
You need these:
ii linux-headers- 3.4.0-204 3.4.0-204.9 Header files related to Linux kernel version 3.4.0 3.4.0-204- omap4 3.4.0-204.9 Linux kernel headers for version 3.4.0 on TI OMAP4-based systems
ii linux-headers-
try it manually.