diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2012-01-13 08:48:47 -0500 |
---|---|---|
committer | Stephen Smalley <sds@tycho.nsa.gov> | 2012-02-01 07:49:08 -0500 |
commit | e46f9d510db9351682cf17c49115110870147335 (patch) | |
tree | b7c4d2cc1cda52ab1aeb041cd8c78e49ea6c8d6a /init/init.h | |
parent | 0458d373261d89979529853fa63cdd998b12e04a (diff) | |
download | system_core-e46f9d510db9351682cf17c49115110870147335.zip system_core-e46f9d510db9351682cf17c49115110870147335.tar.gz system_core-e46f9d510db9351682cf17c49115110870147335.tar.bz2 |
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
Diffstat (limited to 'init/init.h')
-rw-r--r-- | init/init.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ 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 */ |