From c9c9de699bf07489de63f94efe6f15ab756d06c3 Mon Sep 17 00:00:00 2001 From: Jan Houben Date: Sat, 2 Nov 2019 20:56:17 -0400 Subject: [PATCH] Fix sudoers.d/zfs file permission --- src/kernels/_utils.sh | 2 +- src/zfs-utils/PKGBUILD.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kernels/_utils.sh b/src/kernels/_utils.sh index cdf7516..014ea66 100644 --- a/src/kernels/_utils.sh +++ b/src/kernels/_utils.sh @@ -3,7 +3,7 @@ mode_name="utils" mode_desc="Select and use the utils packages" # version -pkgrel="1" +pkgrel="2" # Version for GIT packages pkgrel_git="1" diff --git a/src/zfs-utils/PKGBUILD.sh b/src/zfs-utils/PKGBUILD.sh index acc206f..04172f4 100755 --- a/src/zfs-utils/PKGBUILD.sh +++ b/src/zfs-utils/PKGBUILD.sh @@ -25,7 +25,7 @@ provides=("zfs-utils" "spl-utils") install=zfs-utils.install conflicts=("zfs-utils" "spl-utils") ${zfs_utils_replaces} -backup=('etc/zfs/zed.d/zed.rc' 'etc/default/zfs' 'etc/modules-load.d/zfs.conf') +backup=('etc/zfs/zed.d/zed.rc' 'etc/default/zfs' 'etc/modules-load.d/zfs.conf' 'etc/sudoers.d/zfs') build() { cd "${zfs_workdir}" @@ -56,6 +56,7 @@ package() { # fix permissions chmod 750 \${pkgdir}/etc/sudoers.d + chmod 440 \${pkgdir}/etc/sudoers.d/zfs # Install the support files install -D -m644 "\${srcdir}"/zfs-utils.initcpio.hook "\${pkgdir}"/usr/lib/initcpio/hooks/zfs