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

Kernel abstraction #8

Closed
woodruffw opened this issue Jun 6, 2019 · 1 comment
Closed

Kernel abstraction #8

woodruffw opened this issue Jun 6, 2019 · 1 comment
Labels
kernel-independence Making KRF work on non-Linux kernels

Comments

@woodruffw
Copy link
Member

woodruffw commented Jun 6, 2019

This issue will serve as a tracker for individual issues.

To make porting KRF to other kernels easier, we'll need to provide abstractions for (at least) the following operations:

  • Setting various configuration variables (krf_rng_state, krf_probability, others in config.c). We currently use procfs for these on Linux.
  • Replacing a syscall at a given slot and reverting that slot back to its original call.
  • Twiddling cr0 (on systems where necessary).

Some potential challenges:

@woodruffw woodruffw added the kernel-independence Making KRF work on non-Linux kernels label Jun 6, 2019
@woodruffw
Copy link
Member Author

We should also take a peek at https://github.com/roachspray/fkrf and see if we can learn from their experience porting to FreeBSD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel-independence Making KRF work on non-Linux kernels
Projects
None yet
Development

No branches or pull requests

1 participant