Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise RuntimeError if a libvmi feature has been disabled #12

Open
Wenzel opened this issue May 8, 2018 · 1 comment
Open

Raise RuntimeError if a libvmi feature has been disabled #12

Wenzel opened this issue May 8, 2018 · 1 comment
Labels
Priority: Low Low priority

Comments

@Wenzel
Copy link
Member

Wenzel commented May 8, 2018

At the moment, we assume that libvmi has been compiled with default options.

However, if someone disables the V2P cache for example, we have to detect it at runtime and raise an error when the user attempts to call the specified API.

@Wenzel
Copy link
Member Author

Wenzel commented May 8, 2018

$  python3 -c 'from libvmi import Libvmi'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/tarrma/fsecure/python-libvmi/libvmi/__init__.py", line 3, in <module>
    from .libvmi import INIT_DOMAINNAME, INIT_DOMAINID, INIT_EVENTS, INIT_SHM, CR3
  File "/home/tarrma/fsecure/python-libvmi/libvmi/libvmi.py", line 4, in <module>
    from _libvmi import ffi, lib
ImportError: /home/tarrma/fsecure/python-libvmi/venv/lib/python3.5/site-packages/libvmi-3.0-py3.5-linux-x86_64.egg/_libvmi.abi3.so: undefined symbol: vmi_pidcache_flush

This is not as easy as i first though, since the error is raised when _libvmi.abi3.so is imported, not when the API is called.

@Wenzel Wenzel added enhancement New feature or request help wanted Extra attention is needed Priority: Low Low priority and removed enhancement New feature or request help wanted Extra attention is needed labels May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low Low priority
Projects
None yet
Development

No branches or pull requests

1 participant