@@ -90,14 +90,14 @@ namespace android {
9090 int fd = jniGetFDFromFileDescriptor (env, fileDescriptor);
9191
9292 if (env->ExceptionOccurred () != NULL ) {
93- LOGE (" There was an issue with retrieving the file descriptor" );
93+ ALOGE (" There was an issue with retrieving the file descriptor" );
9494 goto bail;
9595 }
9696
9797 if (getpeercon (fd, &context) == -1 )
9898 goto bail;
9999
100- LOGV (" getPeerCon: Successfully retrived context of peer socket '%s'" , context);
100+ ALOGV (" getPeerCon: Successfully retrived context of peer socket '%s'" , context);
101101
102102 securityString = env->NewStringUTF (context);
103103
@@ -139,7 +139,7 @@ namespace android {
139139 if ((ret = setfscreatecon (securityContext)) == -1 )
140140 goto bail;
141141
142- LOGV (" setFSCreateCon: set new security context to '%s' " , context == NULL ? " default" , context);
142+ ALOGV (" setFSCreateCon: set new security context to '%s' " , context == NULL ? " default" , context);
143143
144144 bail:
145145 if (constant_securityContext != NULL )
@@ -185,7 +185,7 @@ namespace android {
185185 if ((ret = setfilecon (objectPath, newCon)) == -1 )
186186 goto bail;
187187
188- LOGV (" setFileCon: Succesfully set security context '%s' for '%s'" , newCon, objectPath);
188+ ALOGV (" setFileCon: Succesfully set security context '%s' for '%s'" , newCon, objectPath);
189189
190190 bail:
191191 env->ReleaseStringUTFChars (path, objectPath);
@@ -224,7 +224,7 @@ namespace android {
224224 if (getfilecon (objectPath, &context) == -1 )
225225 goto bail;
226226
227- LOGV (" getFileCon: Successfully retrived context '%s' for file '%s'" , context, objectPath);
227+ ALOGV (" getFileCon: Successfully retrived context '%s' for file '%s'" , context, objectPath);
228228
229229 securityString = env->NewStringUTF (context);
230230
@@ -259,7 +259,7 @@ namespace android {
259259 if (getcon (&context) == -1 )
260260 goto bail;
261261
262- LOGV (" getCon: Successfully retrieved context '%s'" , context);
262+ ALOGV (" getCon: Successfully retrieved context '%s'" , context);
263263
264264 securityString = env->NewStringUTF (context);
265265
@@ -295,7 +295,7 @@ namespace android {
295295 if (getpidcon (checkPid, &context) == -1 )
296296 goto bail;
297297
298- LOGV (" getPidCon: Successfully retrived context '%s' for pid '%d'" , context, checkPid);
298+ ALOGV (" getPidCon: Successfully retrived context '%s' for pid '%d'" , context, checkPid);
299299
300300 securityString = env->NewStringUTF (context);
301301
@@ -442,7 +442,7 @@ namespace android {
442442
443443 accessGranted = selinux_check_access (myscon, mytcon, mytclass, myperm, NULL );
444444
445- LOGV (" selinux_check_access returned %d" , accessGranted);
445+ ALOGV (" selinux_check_access returned %d" , accessGranted);
446446
447447 env->ReleaseStringUTFChars (scon, const_scon);
448448 env->ReleaseStringUTFChars (tcon, const_tcon);
0 commit comments