mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] sudo: targetinstall /etc/sudoers.d with 4 digit permission
@ 2020-08-18 10:35 Alexander Dahl
  2020-08-19 10:47 ` Roland Hieber
  2020-08-21  6:54 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 2 replies; 16+ messages in thread
From: Alexander Dahl @ 2020-08-18 10:35 UTC (permalink / raw)
  To: ptxdist

When installing additional files into /etc/sudoers.d from another
package, we got this error (redacted):

  Incompatible ownership or permissions for '/etc/sudoers.d':
  sudo: 0.0 755
  *****: 0.0 0755 (implicit)

  One of these packages must be fixed!

Build is successful again, if fixed in the sudo package.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---

Notes:
    Besides: how would one fix this in the other package? I have that case
    for another set of packages where one creates a folder with 2775 and
    others should copy files in it, which fails because 0755 are the
    implicit rights. Recreate that folder in each package?

 rules/sudo.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/sudo.make b/rules/sudo.make
index 985ab8768..dd8c1bb67 100644
--- a/rules/sudo.make
+++ b/rules/sudo.make
@@ -133,7 +133,7 @@ $(STATEDIR)/sudo.targetinstall:
 
 ifdef PTXCONF_SUDO_INSTALL_ETC_SUDOERS
 	@$(call install_alternative, sudo, 0, 0, 0440, /etc/sudoers, n)
-	@$(call install_copy, sudo, 0, 0, 755, /etc/sudoers.d)
+	@$(call install_copy, sudo, 0, 0, 0755, /etc/sudoers.d)
 endif
 
 ifdef PTXCONF_SUDO_INSTALL_VISUDO
-- 
2.27.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2020-09-04 17:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-18 10:35 [ptxdist] [PATCH] sudo: targetinstall /etc/sudoers.d with 4 digit permission Alexander Dahl
2020-08-19 10:47 ` Roland Hieber
2020-08-19 10:51   ` [ptxdist] [PATCH 1/2] doc: ref_make_macros: make clear that permission should be four digits Roland Hieber
2020-08-19 10:51     ` [ptxdist] [PATCH 2/2] rules: explicitly specify sticky/setuid/setgid bits for install_* macros Roland Hieber
2020-08-19 10:55       ` Roland Hieber
2020-08-19 10:59     ` [ptxdist] [PATCH v2 1/2] doc: ref_make_macros: make clear that permission should be four digits Roland Hieber
2020-08-19 10:59       ` [ptxdist] [PATCH v2 2/2] rules: explicitly specify sticky/setuid/setgid bits for install_* macros Roland Hieber
2020-09-04 17:01         ` [ptxdist] [APPLIED] " Michael Olbrich
2020-08-19 11:04       ` [ptxdist] [PATCH v2 1/2] doc: ref_make_macros: make clear that permission should be four digits Alexander Dahl
2020-08-21  7:52         ` Michael Olbrich
2020-08-21 12:06           ` Alexander Dahl
2020-08-23 19:17             ` Roland Hieber
2020-09-04 17:01       ` [ptxdist] [APPLIED] " Michael Olbrich
2020-08-19 11:11   ` [ptxdist] [PATCH] sudo: targetinstall /etc/sudoers.d with 4 digit permission Alexander Dahl
2020-08-19 11:29     ` Roland Hieber
2020-08-21  6:54 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox