Closed hramrach closed 3 years ago
@bitstreamout review, please
I do not understand the change of enqry ... AFAICR the was no change of the API used by e.g. plymouthd or blogd to communicate with systemd...
- enqry = "\x15";
+ enqry = -EPERM;
I do not understand how this relates to plymouthd or blogd. It was just a magic constant which was replaced with a slightly less magic one.
After examining plymouth and systemd I still see no relationship whatsoever.
What me bothers is using integers at sending and receiving via socket whereas I'm using throughout byte. Meanwhile I've done a small modification of your commitment extended by a further command allowing to close the socket as well as a better error handling in new_root() to check if the new root includes the binary as well before executing it
Compare with https://github.com/bitstreamout/haveged/commit/7615ca621d1ffaf1c3ad134e3744e2ab1cd1add1 (corrected)
Thanks for the PR, merging.
It conflicts with https://github.com/jirka-h/haveged/pull/52
I don't have any strong preference. Could you please discuss together and let me know the decision?
I see these options
Thanks Jirka
Signed-off-by: Michal Suchanek msuchanek@suse.de