UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Newbie jafont
Newbie
5,329 Views
Registered: ‎11-12-2015

Setting process capabilities in Petalinux

 Hello,

 

I have written an application in C++, compiled with SDK tools, in which I use function mlockall() in order to prevent all the memory used by the process from being paged to disk. To lock any amount of memory, the process must be privileged or have the capability CAP_IPC_LOCK set.

 

I want to start the process from a non-root user's shell. Thus, I have to set the CAP_IPC_LOCK capability. In other Linux, e.g. Ubuntu, capabilities can be set from the shell with command "setcap", but I have not found this command in Petalinux.

 

Do you have any idea of how to set capability CAP_IPC_LOCK in Petalinux?

 

Best regards,

Juan Ángel

0 Kudos