You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build fails due to setting xattrs that affect SELinux, "permission denied" #8601
buildIssues caused by or requiring changes to the build system (scripts or Docker image)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
I assume that removing the security.selinux xattr from a file is not allowed unless the user has acquired superuser privileges first, so syncthing should probably leave attributes that are related to SELinux alone (as far as I can see, that's only the security.selinux attribute).
syncthing version: v1.22.0
operating system: tested on Fedora Linux 36 ,37, and Rawhide (development branch)
architecture: x86_64
Yes, lots of attributes will require elevated permissions, as noted in the docs. What isn't noted in the docs yet is that you can filter out attributes you don't want to sync;
So .. is the test failure harmless because this will not occur in real-world usage, or does the failure indicate that the feature is not ready for systems where SELinux is enabled?
The test failure is because the test doesn't expect there to be attributes on the newly created test file that it can't touch, because I didn't expect that when I wrote the test. In real world usage this will pop up when the user checks sync xattrs and isn't running as a privileged user and isn't filtering xattrs. I think that's expected. However it would be nice if it were possible to build on an selinux-enabled system as well...
changed the title [-]v1.22: setting xattrs that affect SELinux fails with "permission denied"[/-][+]Build fails due to setting xattrs that affect SELinux, "permission denied"[/+]on Oct 30, 2022
buildIssues caused by or requiring changes to the build system (scripts or Docker image)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Oct 12, 2022
Yes, lots of attributes will require elevated permissions, as noted in the docs. What isn't noted in the docs yet is that you can filter out attributes you don't want to sync;
(the xattrfilter being a somewhat complicated config value means it's not currently supported in the config editor...)
decathorpe commentedon Oct 12, 2022
So .. is the test failure harmless because this will not occur in real-world usage, or does the failure indicate that the feature is not ready for systems where SELinux is enabled?
calmh commentedon Oct 12, 2022
The test failure is because the test doesn't expect there to be attributes on the newly created test file that it can't touch, because I didn't expect that when I wrote the test. In real world usage this will pop up when the user checks
sync xattrsand isn't running as a privileged user and isn't filtering xattrs. I think that's expected. However it would be nice if it were possible to build on an selinux-enabled system as well...[-]v1.22: setting xattrs that affect SELinux fails with "permission denied"[/-][+]Build fails due to setting xattrs that affect SELinux, "permission denied"[/+]Merge branch 'main' into fix-8556
lib/fs: Let xattr test avoid non-test attributes (fixes syncthing#8601)…