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

/dev/sgx-step would be uninstalled after os reboot #49

Closed
xiaonan-INTC opened this issue Jun 23, 2022 · 2 comments
Closed

/dev/sgx-step would be uninstalled after os reboot #49

xiaonan-INTC opened this issue Jun 23, 2022 · 2 comments

Comments

@xiaonan-INTC
Copy link

HW: NUC7JYJ
SW: Ubuntu Desktop 20.04

Reproducible steps:

  1. install sgx-step following the wiki Building and Running - 0, 1, check by $ls /dev/sgx-step, OK
  2. reboot os
  3. check by $ls /dev/sgx-step again, NO

Is this normal?

@jovanbulck
Copy link
Owner

Yes, this is normal expected behavior. The make load target only loads the driver but does not "install" it to be auto-loaded on next reboot. This was a somewhat deliberate choice since /dev/sgx-step should only be used for experiment and not be used on a production machine as it exposes physical memory directly to user space and, hence, compromises system security altogether..

If you'd like, you can always install /dev/sgx-step across reboots, similar to how this is done in install_sgx_driver.sh. I'd also be happy to merge a PR for a similar make install target or so :)

@xiaonan-INTC
Copy link
Author

Yes, this is normal expected behavior. The make load target only loads the driver but does not "install" it to be auto-loaded on next reboot. This was a somewhat deliberate choice since /dev/sgx-step should only be used for experiment and not be used on a production machine as it exposes physical memory directly to user space and, hence, compromises system security altogether..

If you'd like, you can always install /dev/sgx-step across reboots, similar to how this is done in install_sgx_driver.sh. I'd also be happy to merge a PR for a similar make install target or so :)

Thanks a lot jovanbulck, that's clear for me! From my point current realization is completely OK. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants