This can help you http://seandroid-list.tycho.nsa.narkive.com/rSP3VScv/policy-version-30-support
Check POLICYDB_VERSION_MAX is pointing to the right version in kernel. Also check POLICYVERS (external/sepolicy/Android.mk or system/sepolicy/Android.mk) to point to the max value of POLICYDB_VERSION_MAX Thanks. From: Seandroid-list [mailto:seandroid-list-boun...@tycho.nsa.gov] On Behalf Of Sameer Joshi Sent: Monday, August 01, 2016 4:44 PM To: seandroid-list@tycho.nsa.gov Cc: Milan Subject: Regarding enabling selinux on Android Hi All, We are trying to enable SELinux in kernel and have defined following options in the config file. CONFIG_SECURITY_SELINUX=y CONFIG_SECURITY_SELINUX_BOOTPARAM=y Command line options for kernel have "selinux=1 security=selinux" set. However during boot time, we get following error: [ 5.549941] SELinux: policydb version 30 does not match my version range 15-28 [ 5.557486] init: SELinux: Could not load policy: Invalid argument [ 5.563990] init: failed to load policy: Invalid argument [ 5.569413] init: Security failure; rebooting into recovery mode... Can someone help us what this error means? Any help in fixing this would be appreciated. Regards, Sameer Joshi ----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -----------------------------------------------------------------------------------
_______________________________________________ Seandroid-list mailing list Seandroid-list@tycho.nsa.gov To unsubscribe, send email to seandroid-list-le...@tycho.nsa.gov. To get help, send an email containing "help" to seandroid-list-requ...@tycho.nsa.gov.