Fix: pacemakerd: Correctly detect ping requests from sbd#4066
Fix: pacemakerd: Correctly detect ping requests from sbd#4066gao-yan wants to merge 1 commit intoClusterLabs:mainfrom
Conversation
This fixes a regression introduced by 6f7dd0b, which has not made it into any release. Even though the ipc_name is set to "sbd:pcmk" by sbd, do_pacemakerd_api_call() generates the sender_system in the format "<pid>_sbd:pcmk".
|
Was there a reason to go for stricter checking with the commit mentioned? |
Just wanted to standardize and be a little bit clearer. We're making decisions on the server based on a magic string that's set by the client. I thought we could at least restrict it to the beginning of the string. |
The magic 'sbd' is coming directly from the client but as pacemaker is providing the library the client is using we could use the knowledge about mangling. |
|
Do we really want an exact suffix match, or just the way it is? :-) |
Just wanted to make sure if there was an issue that led to more stringent (wrongly in this case ;-) ) checking. |
This fixes a regression introduced by 6f7dd0b, which has not made it into any release. Even though the ipc_name is set to
sbd:pcmkby sbd, do_pacemakerd_api_call() generates the sender_system in the format<pid>_sbd:pcmk.