Extend init and ueventd for SE Android.
Add SE Android support for init and ueventd.
init:
- Load policy at boot.
- Set the security context for service daemons and their sockets.
- New built-in commands: setcon, setenforce, restorecon, setsebool.
- New option for services: seclabel.
ueventd:
- Set the security context for device directories and nodes.
Change-Id: I98ed752cde503c94d99dfa5b5a47e3c33db16aac
diff --git a/init/init.h b/init/init.h
index a91d9d4..58bbbfe 100644
--- a/init/init.h
+++ b/init/init.h
@@ -95,6 +95,10 @@
gid_t supp_gids[NR_SVC_SUPP_GIDS];
size_t nr_supp_gids;
+#ifdef HAVE_SELINUX
+ char *seclabel;
+#endif
+
struct socketinfo *sockets;
struct svcenvinfo *envvars;
@@ -132,4 +136,8 @@
int load_565rle_image( char *file_name );
+#ifdef HAVE_SELINUX
+extern struct selabel_handle *sehandle;
+#endif
+
#endif /* _INIT_INIT_H */