04-07-2015 08:50 AM
On current versions of LVRT for Linux, the rtexe is not an exectuable, it's just a resource loaded by the LVRT executable /usr/local/natinst/labview/lvrt. That's the executable on which you need to run setcap. This is now documented in a KB, see http://ae.natinst.com/public.nsf/webPreview/3C1FBAB957A6370286257E1B0066B98E?OpenDocument
04-07-2015 09:26 AM
A very important note:
When using setcap, be sure to provide all of the capabilities needed! If there are already capabilities on the binary (as there are), you will be overwriting the existing capabilities.
admin@calamyne:~# getcap /usr/local/natinst/labview/lvrt
/usr/local/natinst/labview/lvrt = cap_net_bind_service,cap_ipc_lock,cap_sys_rawio,cap_sys_boot,cap_sys_nice,cap_sys_time+ep
admin@calamyne:~# setcap cap_net_admin=ep /usr/local/natinst/labview/lvrt // BAD! Don't do this
admin@calamyne:~# getcap /usr/local/natinst/labview/lvrt
/usr/local/natinst/labview/lvrt = cap_net_admin+ep // We lost capabilities! LVRT won't work correctly anymore!
admin@calamyne:~# setcap cap_net_bind_service,cap_ipc_lock,cap_sys_rawio,cap_sys_boot,cap_sys_nice,cap_sys_time,cap_net_admin=ep /usr/local/natinst/labview/lvrt
admin@calamyne:~# getcap /usr/local/natinst/labview/lvrt
/usr/local/natinst/labview/lvrt = cap_net_bind_service,cap_net_admin,cap_ipc_lock,cap_sys_rawio,cap_sys_boot,cap_sys_nice,cap_sys_time+ep //Fixed.
07-22-2020 04:10 PM
Hmm, that document link is gone...
07-24-2020 04:05 PM
It probably was never there to begin with. ae.natinst.com is a non-public internal support site.
I don't actually know what's supposed to be documented here... lemme pull some strings.