by hmhansolo » Sun Feb 04, 2007 4:51 am
Just an update:
I have successfully patched openvz-028test010 and grsec grsecurity-2.1.9-2.6.18-200610021833.patch on linux kernel 2.6.18.
It was actually quite difficult. After manually patching the code that would not automatically patch, I tried compiling. Failures in compiling showed a lot of other bugs. Most of them were due to function declarations changed by OpenVZ. There were actually a couple of code snippets that were mispatched, and I manually repatched it.
So, in the end, the code compiled. Yay!. No idea if it would actually boot or not. But, it did!!
Notice, I have no idea of any possible deadlocks or bugs arising from the merging of the two patches. All I do know for sure, is that it can patch, it can compile, it can boot, and grsec can turn on with the default policy.
I still have to test if openvz can run virtual environments... and I need to test whether grsec can run while an openvz virtual environment is running.. To that end, I am about to run a openvz virtual environment while grsec is in learning mode. Then I will try to apply the new policy and then run some openvz virtual environments.
After the above, one can be sufficiently certain that at least it can work. However, to be certain that it works properlly without bugs, deadlocks, kernel oops, or worse security loopholes, will just need a lot of time and testing.
The security loopholes I mentioned is the biggest problem. Even if everything works without bugs, deadlocks, and kernel oops, which can be tested to some degree (60-80 %) of certainty, just by using it over time, the only way to be certain that security loopholes don't exist is to actually read the code and do a design overview and review of openvz and grsec. These security loopholes, in my opinion, can arise even if both grsec and openvz are secure individually. This is because the way openvz does something may conflict with the way grsec does something, actually opening up a security hole that did not exist either in grsec and openvz.
Last edited by
hmhansolo on Sun Feb 04, 2007 5:06 am, edited 1 time in total.