-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Container runner updates to fix issue #226, related to functions exec…
…ution in SGX
- Loading branch information
1 parent
9b12156
commit 4a7dd6c
Showing
5 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-FileCopyrightText: © 2024 Technical University of Crete | ||
// SPDX-License-Identifier: MIT | ||
|
||
use rs_docker::container::DeviceStruct; | ||
|
||
pub fn get_sgx_out_of_tree_driver() -> DeviceStruct { | ||
DeviceStruct { | ||
CgroupPermissions: "rwm".to_string(), | ||
PathOnHost: "/dev/isgx".to_string(), | ||
PathInContainer: "/dev/isgx".to_string(), | ||
} | ||
} | ||
|
||
pub fn get_sgx_in_tree_driver() -> DeviceStruct { | ||
DeviceStruct { | ||
CgroupPermissions: "rwm".to_string(), | ||
PathOnHost: "/dev/sgx_enclave".to_string(), | ||
PathInContainer: "/dev/sgx_enclave".to_string(), | ||
} | ||
} | ||
|
||
pub fn get_sgx_nuc_driver() -> DeviceStruct { | ||
get_sgx_out_of_tree_driver() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters