[Moto G 2015 Android Development] spectkiller:
Ok here is a small guide related selinux for Android ,,,,,,,,,, for newbie or those who have little or no knowledge about selinux.

so lets start ...........

ok first of all , what is selinux?

1. selinux is nothing but short form of SECURITY ENHANCE linux...... ok its more than that.

so basically selinux is Security Enhancements for Android (SE for Android) prevents apps or processes from accessing data and resources that they are not allowed to.... ( for ex root access) and also protect it from security threats... or simply it is security module or policy which use to loaded in linux kernel.. to make the system securrrrrrrrrrrre........ and it is introduced in android 4.3 and from android 5.0 selinux enforced was introduced in devices natively

Q2. selinux enforcing vs permissive ????.............

selinux enforcing --- in se enforcing , the security policy or module is loaded and your device is enforcing it in your system that mean you are actively protected feom security threats and malicious apps which are trying to access system files or gaining root access... or data leaking or etccc

if you have selinux enforced , that mean you device is highly secure.. but that's nothing if you have root your device or unlock its bootloader or change system files or etc, then selinux enforcing can't do much for securing your device....

selinux permissive ---- in se permissive , the security policy is loaded but your device is not enforcing it ,,,,,, it is generally use for testing purposes by developer of rom , apps , kernel or more than that... , so simply in selinux permissive , your device is safe from security threats but not from malicious or pirated apps............... and it is more easier to have root access in selinux permissive than enforcing...................and if you have installed pirated apps or malicious apps in se linux permissive then you can't guess how much harm it can do to you ,,,, :(

some list of harm can be done by these apps -:

1. gain root access without your permission

2. change system files

3. data leak

4. install their other malicious apps without your information

and much much moreeeeeeee.......

so its better to not installed any pirated or malicious apps in se linux permissive , and install apps only from play store or any trusted sites like xda or apkmirrror ....... and through this you can get selinux enforcing LIKE security in your permissive se linux device . but again , the play store itself have lots of malicious application :D which is run by such a large company google and lots of pro developer so i can't tell about other sites....

.. hahaha so the only option is installl apps wisely , and also security is nothing for you if you have root or unlock your bootloader and blah blah blah ...........

..

hence , if you have root or unlock device , you should really not have so much care for selinux of your device......... but selinux enforcing is more secure than permissive one ..( fact is fact .... deal with it :D)

I Hope its help you !! :)

(, and if you found anything wrong then please correct me , i would like to increase my information....)

and there's lots of information is left in this post but its a small guide so i only share basic information about these things.....:)

:good: