You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pacemaker.c is full of popen/system calls. This are not very safe (escape of arguments, need to run shell, ...) and it would be better to use exec and proper redirection (so stderr are split and could be logged). Another possibility might be to use some library instead of calling crm_ticket (if such library exists).
The text was updated successfully, but these errors were encountered:
We have a long-standing project in pacemaker to move functionality from command line tools into libraries. Then the tools just wrap the library calls. I could start working on converting crm_ticket next if it would help here.
The function itself is very simple. The rest of the work is in
save_attributes, where it needs to understand both the libpacemaker XML
result as well as the result of calling crm_ticket directly. It's still
pretty simple, though - just digging around in the XML to set a node
pointer correctly.
FixesClusterLabs#136
clumens
added a commit
to clumens/booth
that referenced
this issue
Oct 1, 2024
The function itself is very simple. The rest of the work is in
save_attributes, where it needs to understand both the libpacemaker XML
result as well as the result of calling crm_ticket directly. It's still
pretty simple, though - just digging around in the XML to set a node
pointer correctly.
FixesClusterLabs#136
pacemaker.c is full of
popen
/system
calls. This are not very safe (escape of arguments, need to run shell, ...) and it would be better to useexec
and proper redirection (so stderr are split and could be logged). Another possibility might be to use some library instead of callingcrm_ticket
(if such library exists).The text was updated successfully, but these errors were encountered: