insufficient validation in svccfg for service name
The attached manifest validates but makes svccfg import keep over with
svccfg_libscf.c:7961: fmri_to_entity() failed with unexpected error 1007. Aborting. Abort (core dumped)
Core attached aswell
Updated by John Levon about 2 years ago
- Subject changed from svccfg has keeled over when encountering the attached manifest has to insufficient validation in svccfg for service name
The problem is that the service name in the manifest is incorrectly prefixed with "svc:/" but we don't validate that. Our only check is that the name is a valid FMRI, which of course a svc:/-prefixed name is. But then we try to process "svc:/svc:/...".
We should do some checking during svccfg validate. I confirmed that all of:
now correctly failed validation.
Updated by Electric Monk about 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 2f602de35d44213d39581c59632aa8365348850b Author: John Levon <firstname.lastname@example.org> Date: 2020-04-29T14:33:40.000Z 12585 insufficient validation in svccfg for service name Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Patrick Mooney <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>