Just checked the source code of setcap and found that it does not support large files. Consider the following code in cap_file.c/cap_set_file: ... struct stat buf;
if (lstat(filename, &buf) != 0) { _cap_debug("unable to stat file [%s]", filename); return -1; } ... If it is built on 32-bit linux, this code will not work for files large than 2Gb, because lstat() uses stat structure which represents size of file as off_t type. As a workaround I suppose _LARGEFILE64_SOURCE and _FILE_OFFSET_BITS=64 can be defined during compilation. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/794202 Title: It is not possible to set capabilities on large file (>2Gb ?) -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs