Skip to content

Fix rsync trying to copy SELinux xattrs and spamming the log#84

Open
gcoremans wants to merge 1 commit into
mu-semtech:masterfrom
gcoremans:feature/fix-selinux-errors
Open

Fix rsync trying to copy SELinux xattrs and spamming the log#84
gcoremans wants to merge 1 commit into
mu-semtech:masterfrom
gcoremans:feature/fix-selinux-errors

Conversation

@gcoremans

Copy link
Copy Markdown

SELinux contexts are stored as xattrs, but users are not allowed to set SELinux contexts. Thus, when rsync tries to do this, it produces one log message per file being copied, which ends up being one log message per file under node_modules; which completely spams your log which is very annoying. This fixes that by just telling rsync to ignore those xattrs.

Fix as per https://unix.stackexchange.com/a/648651

This shouldn't break anything, since it is failing to copy those xattrs anyway, we're just suppressing the error message by not trying. Even in a SELinux-enabled context (which this will never run in) you don't want those xattrs to be copied.

SELinux contexts are stored as xattrs, but users are not allowed to set
SELinux contexts. Thus, when rsync tries to do this, it produces one log
message per file being copied, which ends up being one log message per
file under node_modules; which completely spams your log which is very
annoying. This fixes that by just telling rsync to ignore those xattrs.

Fix as per https://unix.stackexchange.com/a/648651
@gcoremans

Copy link
Copy Markdown
Author

Tested and works on my end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant