Thank you very much for your comment. As I already mentioned above, I initially developed the module just out of curiosity to see how one could write such a module (especially solving the problem that only root can actually make various changes or execute commands). When I wrote my first post in this thread, I had hoped that there would be developers in the FreePBX community who know C++ and see value in such a module and would be interested in further developing it. But that doesn’t seem to be the case.
Unfortunately, a version based purely on PHP is not possible for the reasons I already mentioned above (the user under which Apache runs is not allowed to perform system changes). What I think comes closest would be PHP scripts that use sudo
in an exec
command — but as I’ve already said, I don’t consider that a good solution and there are several problems with it. One would first have to see whether it’s possible to securely execute commands with arguments from user input using sudo
— that is, to allow passing arguments in /etc/sudoers
, while still ensuring that an attacker can’t do anything unintended.
While developing the bonding support, I already noticed that my most important factor — the fun of solving problems — was no longer there for me with this module. I neither have the time nor the capacity to bring the C++ part to a production-ready level on my own. Therefore, I will pause the development of the module for now. There might be a new version in the future if I feel like continuing development again.