diff options
| author | Nick Kralevich <nnk@google.com> | 2013-12-10 17:56:01 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2013-12-10 17:56:01 +0000 |
| commit | 81fcdd250e7c7ada6d1f5ef62f84e54d289f6fe8 (patch) | |
| tree | 1e598c7041b931c10ac6b389d74a1f15119bf38e /init | |
| parent | 11905774ecdf396dd654f985df383f0d404d5fb0 (diff) | |
| parent | b470d404e58bbe89c5c2822120b220e45ff72b42 (diff) | |
| download | system_core-81fcdd250e7c7ada6d1f5ef62f84e54d289f6fe8.zip system_core-81fcdd250e7c7ada6d1f5ef62f84e54d289f6fe8.tar.gz system_core-81fcdd250e7c7ada6d1f5ef62f84e54d289f6fe8.tar.bz2 | |
am b470d404: am b988e95c: am 6fec3a23: Merge "Log a warning on services that lack SELinux domains."
* commit 'b470d404e58bbe89c5c2822120b220e45ff72b42':
Log a warning on services that lack SELinux domains.
Diffstat (limited to 'init')
| -rw-r--r-- | init/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c index 864fc6c..365726c 100644 --- a/init/init.c +++ b/init/init.c @@ -221,6 +221,9 @@ void service_start(struct service *svc, const char *dynamic_args) } rc = security_compute_create(mycon, fcon, string_to_security_class("process"), &scon); + if (rc == 0 && !strcmp(scon, mycon)) { + ERROR("Warning! Service %s needs a SELinux domain defined; please fix!\n", svc->name); + } freecon(mycon); freecon(fcon); if (rc < 0) { |
