From 8bed71a792a5d27570af5e2eb5d4b10bcfa6ba1c Mon Sep 17 00:00:00 2001 From: Carlos Camacho Date: Wed, 18 Jul 2018 11:16:46 +0000 Subject: [PATCH] Add --xattrs to sudoers. Depending on the environment permissions the backup creation can fail. This submission allows using sudo with xattrs when creating the backup tarball. (cherry picked from commit 3b3bd2c6dff4dea8d6bfddc745cc532701a2c593) Change-Id: I1f52b7fbaf6b20a064ab773c6c984db5846e33ec resolves: rhbz#1594279 Closes-bug:1782341 --- sudoers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sudoers b/sudoers index e8b8e658f..0443ae63b 100644 --- a/sudoers +++ b/sudoers @@ -7,6 +7,6 @@ mistral ALL = NOPASSWD: /usr/bin/chown -h validations\: /tmp/validations_identit mistral ALL = NOPASSWD: /usr/bin/rm -f /tmp/validations_identity_[A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_][A-Za-z0-9_], \ !/usr/bin/rm /tmp/validations_identity_* *, !/usr/bin/rm /tmp/validations_identity_*..* mistral ALL = NOPASSWD: /bin/nova-manage cell_v2 discover_hosts * -mistral ALL = NOPASSWD: /usr/bin/tar --ignore-failed-read -C / -cf /var/tmp/undercloud-backup-*.tar * +mistral ALL = NOPASSWD: /usr/bin/tar --xattrs --ignore-failed-read -C / -cf /var/tmp/undercloud-backup-*.tar * mistral ALL = NOPASSWD: /usr/bin/chown mistral. /var/tmp/undercloud-backup-*/filesystem-*.tar validations ALL = NOPASSWD: ALL