From e46f9d510db9351682cf17c49115110870147335 Mon Sep 17 00:00:00 2001 From: Stephen Smalley Date: Fri, 13 Jan 2012 08:48:47 -0500 Subject: 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 --- init/init.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'init/init.h') diff --git a/init/init.h b/init/init.h index a91d9d4b..58bbbfe9 100644 --- a/init/init.h +++ b/init/init.h @@ -95,6 +95,10 @@ struct service { 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 @@ void property_changed(const char *name, const char *value); int load_565rle_image( char *file_name ); +#ifdef HAVE_SELINUX +extern struct selabel_handle *sehandle; +#endif + #endif /* _INIT_INIT_H */ -- cgit v1.2.3