Set the correct group for confd
authorMichele Tartara <mtartara@google.com>
Thu, 11 Jul 2013 12:59:50 +0000 (12:59 +0000)
committerMichele Tartara <mtartara@google.com>
Thu, 11 Jul 2013 15:08:26 +0000 (17:08 +0200)
Starting confd as a member of the daemons group allows the RAPI daemon to access
the LUXI socket.

Fixes Issue 477.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>

daemons/daemon-util.in

index 35d5ed6..2b3d24d 100644 (file)
@@ -80,7 +80,7 @@ _daemon_usergroup() {
       echo "@GNTMASTERUSER@:@GNTMASTERDGROUP@"
       ;;
     confd)
-      echo "@GNTCONFDUSER@:@GNTCONFDGROUP@"
+      echo "@GNTCONFDUSER@:@GNTDAEMONSGROUP@"
       ;;
     rapi)
       echo "@GNTRAPIUSER@:@GNTRAPIGROUP@"
@@ -253,11 +253,6 @@ start() {
       $daemonexec $args "$@"
   fi
 
-  # FIXME: This is a workaround for issue 477. Remove this once confd does not
-  # mess up the permissions anymore.
-  if [[ "$name" == ganeti-confd ]]; then
-    @PKGLIBDIR@/ensure-dirs;
-  fi
 }
 
 # Stops a daemon