Replies: 3 comments 5 replies
-
|
Hi @crslzz, what is it that you are trying to configure in |
Beta Was this translation helpful? Give feedback.
-
|
Hello @orecham, On Linux, I want to make the directory for the named shared memory objects configurable. The use case is as follows: in a system with a combination of security and safety requirements, workloads with different integrity levels execute in separate, isolated containers. We do not want containers of different integrity levels to share the entire /dev/shm directory, along with other, non-IceOryx2 workloads. We rather want to create named shared memory objects in dedicated directories, such as /dev/shm/some-level. These directories would only be shared among containers of the same or lower integrity level. (this also applies to /tmp/iceoryx2 but this directory is already configurable via the global config file). This is not doable using glibc’s shm_open(). However, this function is just a wrapper around open(), meaning it can be easily re-implemented in iceoryx2-pal directly. The change would touch shm_open(), shm_unlink(), and shm_list() in posix/src/linux/mman.rs. The simplest approach would be to use an environment variable to specify an alternative shared memory directory. If this environment variable is not set, the regular posix functions would be used. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for these replies. I'll process them, and then get back to you. Does it imply that you do not oppose such a change in principle, and will not reject a PR outright? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am looking for the proper way to pass a configuration parameter to iceoryx2-pal.
Directly adding a new entry to the global config in iceoryx2 doesn’t work due to the circular dependency it would create if used within iceoryx2-pal.
One alternative is reading the parameter from an environment variable, but this does not appear to be common practice, with the only existing example being IOX2_LOG_LEVEL in iceoryx2-bb.
Are there better options? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions