Do not try to restorecon if selinux is disabled
debuggerd tries to restorecon on the tombstones directory which fails
when SELinux is not enabled in the kernel. That would return an error
condition to debuggerd which would then abort its attempt to dump the
stacks of the failing program.
Fix it here in case there are other places that might call this in the
future. Currently the only other caller is android_os_SELinux.cpp JNI
code.
Change-Id: Id73796a70174333b61fd04ee6b1d99fccbea8116
1 file changed