I'm trying to use the capabilities (CAP_SYS_TIME) but when I run this command:
setcap CAP_SYS_TIME+ep /user/mybinaryprogram
on my system, I get the following error:
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 Effectively when doing 'ls -la' in the bin directory, date appears as a symlink
According to the tests I have been doing I always get the same error when trying to do a setcap.
I solved the problem, the command did not work because the kernel did not have the 'Security Labels' enabled