[meta-virtualization] [m-c-s][PATCH 3/4] python-nova: sudoers.d match dir ownership/perms

Mark Asselstine mark.asselstine at windriver.com
Mon Nov 6 09:02:19 PST 2017


The sudoers.d directory is for all intents and purposes created and
owned by the sudo package. We must therefor ensure we match the
ownership and perms which sudo used to install this
directory. Currently we don't so this results in an error when
assembling the filesystem:

  file /etc/sudoers.d conflicts between attempted installs of \
   nova-common-12.0.0+git0+6df6ad3ff3-r0.core2_64 and \
   sudo-1.8.20p2-r0.core2_64

Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
---
 meta-openstack/recipes-devtools/python/python-nova_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-openstack/recipes-devtools/python/python-nova_git.bb b/meta-openstack/recipes-devtools/python/python-nova_git.bb
index c1f4de1..f3a6b86 100644
--- a/meta-openstack/recipes-devtools/python/python-nova_git.bb
+++ b/meta-openstack/recipes-devtools/python/python-nova_git.bb
@@ -88,7 +88,7 @@ do_install_append() {
     chown root:root $NOVA_CONF_DIR/rootwrap.conf
 
     # Set up the rootwrap sudoers for nova
-    install -d ${D}${sysconfdir}/sudoers.d
+    install -d -m 750 ${D}${sysconfdir}/sudoers.d
     touch ${D}${sysconfdir}/sudoers.d/nova-rootwrap
     chmod 0440 ${D}${sysconfdir}/sudoers.d/nova-rootwrap
     chown root:root ${D}${sysconfdir}/sudoers.d/nova-rootwrap
-- 
2.7.4



More information about the meta-virtualization mailing list