src/lib/paramters: Add a new interface library for protected build user side

Implement an interface for protected build to access parameters.

The implementation only does IOCTL calls to the kernel, where the parameters
live.

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2021-11-09 08:54:10 +02:00
committed by Beat Küng
parent 41a7ae3db2
commit 0d31aadcc3
9 changed files with 613 additions and 9 deletions
@@ -47,8 +47,9 @@
#define _ORBIOCDEVBASE IOCTL_IDX_TO_BASE(0)
#define _HRTIOCBASE IOCTL_IDX_TO_BASE(1)
#define _CRYPTOIOCBASE IOCTL_IDX_TO_BASE(2)
#define _BUILTINIOCBASE IOCTL_IDX_TO_BASE(3)
#define MAX_IOCTL_PTRS 4
#define _PARAMIOCBASE IOCTL_IDX_TO_BASE(3)
#define _BUILTINIOCBASE IOCTL_IDX_TO_BASE(4)
#define MAX_IOCTL_PTRS 5
/* The BUILTINIOCLAUNCH IOCTL is used to launch kernel side modules
* from the user side code