AnsweredAssumed Answered

Error with setcap CAP_SYS_TIME+ep /user/mybinaryprogram

Question asked by Sandra Trujillo García on Nov 9, 2018
Latest reply on Nov 12, 2018 by Sandra Trujillo García

My system: Linux t2080rdb 4.1.35-rt41 ppc64 GNU/Linux
I have obtained the linux image with Yocto Project SDK 2.0 I'm trying to use the capabilities (CAP_SYS_TIME) but when I run this command on my system, I get the following error:

setcap CAP_SYS_TIME+ep /user/mybinaryprogram

Failed to set capabilities on file '/bin/date' (Invalid argument) usage: 
setcap [-q] [-v] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
Note <filename> must be a regular (non-symlink) file.

My system: Linux t2080rdb 4.1.35-rt41 ppc64 GNU/Linux
I have obtained the linux image with Yocto Project SDK 2.0

To create my image I added IMAGE_INSTALL_append = " libcap" to my configuration file.

According to the tests that I have been doing I always get the same error when trying to do a setcap.

Any suggestions?

Outcomes