Project

General

Profile

Actions

Bug #8225

open

passing invalid global pattern to coreadm wedges it nicely

Added by Andrew Stormont over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Category:
-
Start date:
2017-05-13
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

Passing an invalid global pattern to coreadm causes the service to enter maintenance mode. Trying to set the value to something valid is now impossible as the service needs to be online to make configuration changes. Congratulations, you're screwed.

There are a couple of things wrong here.

1. The manpage makes it clear what an invalid path is, yet we don't check for it in the code.
2. The service exits with SMF_EXIT_ERR_FATAL instead of SMF_EXIT_ERR_CONFIG.
3. The coreadm command should not require the service to be online to make changes!

Joyent also do a good job of explaining the problem here:
https://smartos.org/bugview/OS-3042

Actions #2

Updated by Andrew Stormont over 6 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF