Keeping your port secure

From Omni
Revision as of 14:27, 20 November 2013 by Entropy512 (Talk | contribs) (Add discussion of using "git am")

Jump to: navigation, search

One of Omni's goal is to bring the best security to your devices. Besides the changes we can do at framework-level, there is a bunch of changes needed in device trees/kernels that we cannot do automatically.

Please make sure that your device trees and kernels follows the indications here.

Device trees

Check your init permissions

Make sure your init.*.rc files don't set unnecessary permissions. Compare them against a stock ROM. Nothing should EVER have '777'.


Security patches

Please make sure your kernels have the following security patches from mainline kernel:

To cherry-pick those patches into your kernel:

git remote add linux
git fetch linux
git cherry-pick <commit>

where commit can be 'c95eb3184ea1a3a2551df57190c81da695e2144b' for example for the first patch. If you get merge errors, it is likely the patch has already been applied. However you should make sure it really is, by checking the merge markers.

Another method that can be used (and in general allows reasonably easy cherry-picking from github):

git am c95eb3184ea1a3a2551df57190c81da695e2144b.patch
git am 6e601a53566d84e1ffd25e7b6fe0b6894ffd79c0.patch

In addition, please also ensure you apply the following patches from CAF: (more information available at