From 29adaddcb8dee31af57d698fe20dfb84ff6ba7c6 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 14 Dec 2017 10:36:14 -0500 Subject: [PATCH] Drop legacy %post chmod /etc/sudoers The RPM permissions have been set at `0440` for a long, long time. This `%post` invocation dates beyond the import from CVS in 2004. Further, this change will actually *undo* local admin changes to use e.g. `0600` or something if they want to harden it further. This is similar to: https://src.fedoraproject.org/rpms/nfs-utils/pull-request/1 I'm just making this change as it shows up as error spew when doing `rpm-ostree compose tree`. --- sudo.spec | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sudo.spec b/sudo.spec index 9e7bdf6..304096f 100644 --- a/sudo.spec +++ b/sudo.spec @@ -192,11 +192,6 @@ rm -rf $RPM_BUILD_ROOT %license doc/LICENSE %exclude %{_pkgdocdir}/ChangeLog - -# Make sure permissions are ok even if we're updating -%post -/bin/chmod 0440 /etc/sudoers || : - %files devel %defattr(-,root,root,-) %doc plugins/sample/sample_plugin.c