#include <xpc/xpc.h>
#include <TargetConditionals.h>
#include <configuration_profile.h>
+#include <os/variant_private.h>
#include <asl.h>
#include <asl_core.h>
#include <asl_msg.h>
#if !TARGET_OS_SIMULATOR
uid_t fuid = 0;
gid_t fgid = 80;
-#if !TARGET_OS_EMBEDDED
+#if !TARGET_OS_IPHONE
int status;
acl_t acl;
uuid_t uuid;
fchown(fd, fuid, fgid);
-#if TARGET_OS_EMBEDDED
+#if TARGET_OS_IPHONE
return fd;
#else
+ if (os_variant_is_basesystem("com.apple.syslog")) {
+ return fd;
+ }
acl = acl_init(1);
for (i = 0; i < dst->ngid; i++)
acl_free(acl);
return fd;
-#endif /* !TARGET_OS_EMBEDDED */
+#endif /* !TARGET_OS_IPHONE */
#endif /* !TARGET_OS_SIMULATOR */
}
p = NULL;
}
-#if TARGET_OS_EMBEDDED
+#if (TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
/* check for crashreporter files */
if ((KEYMATCH(dst->path, _PATH_CRASHREPORTER)) || (KEYMATCH(dst->path, _PATH_CRASHREPORTER_MOBILE_1)) || (KEYMATCH(dst->path, _PATH_CRASHREPORTER_MOBILE_2)))
{