GNOME Bugzilla – Bug 742289
deploy: Actually copy xattrs of modified config files
Last modified: 2015-01-06 16:17:17 UTC
Regression from 7b01bd2e4333d4346dd08e0b5caf672f56b1ccfd where we stopped using g_file_copy() - we lost copying xattrs. This specifically breaks /etc/shadow SELinux labeling, with the obvious bad consequences.
Created attachment 293685 [details] [review] deploy: Actually copy xattrs of modified config files
Review of attachment 293685 [details] [review]: Changes look okay. Slightly worried this could be forgotten again in the future. Perhaps some fd-based equivalent to g_file_copy() (and all of its conveniences) might be helpful in libotutil or libgsystem.
Definitely agree wrt the g_file_copy() equiv. For one thing, we're missing out on the BTRFS reflink that gio supports ( https://bugzilla.gnome.org/show_bug.cgi?id=626497 ) One initial goal I had with libgsystem is to be a "proving ground" for low level things that could migrate into gio. However, `*at()` in GIO is not easy. I need to write up my thoughts somewhere...
Attachment 293685 [details] pushed as 01f6d68 - deploy: Actually copy xattrs of modified config files