[swarm docker] Remove \n in permission string

For some reason, adding permissions must be done one at a time.

Change-Id: I9f305b6d6df0168001a844a091b42192ab8de383
diff --git a/cmd/swarm_docker/swarm_docker.go b/cmd/swarm_docker/swarm_docker.go
index 593c7ee..149182e 100644
--- a/cmd/swarm_docker/swarm_docker.go
+++ b/cmd/swarm_docker/swarm_docker.go
@@ -122,7 +122,16 @@
 func (d *dockerPermissionWriter) writePermissions(ctx context.Context, id string) error {
 	path := fmt.Sprintf("%s/%s/devices.allow", d.dockerPermissionsFolder, id)
 	log.Printf("Attempting to write serial permissions to %s", path)
-	return ioutil.WriteFile(path, []byte("c 188:* rwm\nc 180:* rwm\nc 189:* rwm"), 0666)
+	if err := ioutil.WriteFile(path, []byte("c 180:* rwm"), 0666); err != nil {
+		return err
+	}
+	if err := ioutil.WriteFile(path, []byte("c 188:* rwm"), 0666); err != nil {
+		return err
+	}
+	if err := ioutil.WriteFile(path, []byte("c 189:* rwm"), 0666); err != nil {
+		return err
+	}
+	return nil
 }
 
 // Pool is used to manage a static pool of container instances.