D17816: Support for xattrs on kio copy/move

Kamil Dudka noreply at phabricator.kde.org
Tue Mar 2 15:53:40 GMT 2021


kdudka added a comment.


  @bruns I find your attitude unnecessarily hostile.  If you think that the code is perfect as it is, feel free to patch it case by case until it eventually works for everybody.  That is your choice.
  
  Anyway, strace of `cp --preserve=xattr` on the same device looks like this:
  
    execve("/bin/cp", ["cp", "--preserve=xattr", "/mnt/mmc/file", "."], 0x7ffdf8529c88 /* 81 vars */) = 0
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    openat(AT_FDCWD, "/lib64/libacl.so.1", O_RDONLY|O_CLOEXEC) = 3
    openat(AT_FDCWD, "/lib64/libattr.so.1", O_RDONLY|O_CLOEXEC) = 3
    openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    stat(".", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=1522, ...}) = 0
    newfstatat(AT_FDCWD, "/mnt/mmc/file", {st_mode=S_IFREG|0755, st_size=0, ...}, 0) = 0
    newfstatat(AT_FDCWD, "./file", 0x7ffea3f59f50, 0) = -1 ENOENT (No such file or directory)
    openat(AT_FDCWD, "/mnt/mmc/file", O_RDONLY) = 3
    openat(AT_FDCWD, "./file", O_WRONLY|O_CREAT|O_EXCL, 0755) = 4
    flistxattr(3, NULL, 0)                  = 17
    flistxattr(3, "security.selinux\0", 17) = 17
    openat(AT_FDCWD, "/etc/xattr.conf", O_RDONLY) = 5
    fgetxattr(3, "security.selinux", NULL, 0) = -1 EOPNOTSUPP (Operation not supported)
    cp: getting attribute 'security.selinux' of 'security.selinux': Operation not supported
    +++ exited with 1 +++

REVISION DETAIL
  https://phabricator.kde.org/D17816

To: arrowd, dfaure, chinmoyr, bruns, #frameworks, tmarshall, usta, cochise
Cc: kdudka, usta, scheirle, tmarshall, arrowd, cfeck, bruns, phidrho, dhaumann, funkybomber, abika, pino, davidedmundson, ngraham, atha.kane, spoorun, nicolasfella, kde-frameworks-devel, LeGast00n, cblack, michaelh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20210302/ae659b17/attachment-0001.htm>


More information about the Kde-frameworks-devel mailing list