NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to self-reboot when the device has no IP?

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

0 Kudos
Message 11 of 14
(1,220 Views)

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.

Message 12 of 14
(1,220 Views)

Hmm, that document link is gone...

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 13 of 14
(716 Views)

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.

0 Kudos
Message 14 of 14
(697 Views)