meta-nilrt: worldwritable permissions#965
meta-nilrt: worldwritable permissions#965Nasrulla-NI wants to merge 1 commit intoni:nilrt/master/nextfrom
Conversation
b979e99 to
4b7192e
Compare
Signed-off-by: Nasrulla Shariff <nasrulla.shariff@emerson.com> revert changes in target_common.ini changes updated w.r.t Hardware Config
cb7e86b to
502b0af
Compare
amstewart
left a comment
There was a problem hiding this comment.
We should try to avoid just changing the permissions and should instead have some way to toggle the world-writable permissions back on if needed.
Why? Because of VISA? VISA has to run as a user that isn't root or a member of the dialout group?
Thanks for the comment. Indeed, the change was aimed at supporting VISA, since it often runs as a non‑root user without dialout membership and needs access to these device nodes. So, added a config/feature flag so the relaxed permissions are enabled only when needed. This will be controlled from front end Hwconfig. |
Summary of Changes
Currently NILRT will automatically mount block and TTY devices as world-writable and should be updated to no longer do this.
We should try to avoid just changing the permissions and should instead have some way to toggle the world-writable permissions back on if needed. Hence to do this - /etc/natinst/share/ni-rt.ini - worldwritable.enabled="true" or worldwritable.enabled="false" is appended as per information provided from hardware config team/
Justification
Please refer below feature
https://dev.azure.com/ni/DevCentral/_workitems/edit/3470239
Testing
VFAT and TTY:

- worldwritable.enabled="false"
worldwritable.enabled="true"

bitbake packagefeed-ni-core)Procedure