summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc815.lee <jc815.lee@samsung.com>2013-06-07 12:02:04 +0900
committerjc815.lee <jc815.lee@samsung.com>2013-06-07 16:53:49 +0900
commit1e8718779a8dd8916d8604e78e077e474e22c648 (patch)
treed05ffdac858b2c626476d923f04db3238b90e2ee
parent69f1c669ab14d9760cfee21ab23c5f918c49979f (diff)
downloadsecure-storage-1e8718779a8dd8916d8604e78e077e474e22c648.tar.gz
secure-storage-1e8718779a8dd8916d8604e78e077e474e22c648.tar.bz2
secure-storage-1e8718779a8dd8916d8604e78e077e474e22c648.zip
apply secure log
[model] GT-I8800 [binary_type] platform [customer] OPEN [issue#] N/A [problem] N/A [cause] N/A [solution] N/A [team] Framework [request] N/A [horizontal_expansion] N/A Change-Id: Ia337607cad2def33481dc99fa2a3aeb554ac3615 Signed-off-by: jc815.lee <jc815.lee@samsung.com>
-rwxr-xr-xclient/src/ss_client_intf.c4
-rwxr-xr-xserver/src/ss_server_main.c18
2 files changed, 11 insertions, 11 deletions
diff --git a/client/src/ss_client_intf.c b/client/src/ss_client_intf.c
index 7eb6314..5a979c8 100755
--- a/client/src/ss_client_intf.c
+++ b/client/src/ss_client_intf.c
@@ -268,7 +268,7 @@ Last :
goto Free_and_Error;
}
- SLOGE("Decrypted file name : %s\n", recv_data.data_filepath);
+ SECURE_SLOGE("Decrypted file name : %s\n", recv_data.data_filepath);
Free_and_Error:
free(send_data);
Error:
@@ -412,7 +412,7 @@ int SsClientDeleteFile(const char *pFilePath, ssm_flag flag, const char* group_i
Free_and_Error:
free(send_data);
- SLOGE("Deleted file name: %s\n", recv_data.data_filepath);
+ SECURE_SLOGE("Deleted file name: %s\n", recv_data.data_filepath);
Error:
return recv_data.rsp_type;
diff --git a/server/src/ss_server_main.c b/server/src/ss_server_main.c
index 5d66f16..70b1541 100755
--- a/server/src/ss_server_main.c
+++ b/server/src/ss_server_main.c
@@ -249,7 +249,7 @@ int check_privilege_by_sockfd(int sockfd, const char* object, const char* access
}
}
- SLOGD("object : %s, access_rights : %s", group_id, access_rights);
+ SECURE_SLOGD("object : %s, access_rights : %s", group_id, access_rights);
ret = security_server_check_privilege_by_sockfd(sockfd, group_id, access_rights);
if(default_smack_label)
@@ -549,7 +549,7 @@ int SsServerDataStoreFromFile(int sender_pid, const char* data_filepath, ssm_fla
#ifdef SMACK_GROUP_ID
if(check_privilege_by_sockfd(sockfd, group_id, "w") != 0)
{
- SLOGE("[%s] permission denied\n", group_id);
+ SECURE_SLOGE("[%s] permission denied\n", group_id);
return SS_PERMISSION_DENIED;
}
#endif
@@ -560,13 +560,13 @@ int SsServerDataStoreFromFile(int sender_pid, const char* data_filepath, ssm_fla
// 2. file open
if(!(fd_in = fopen(in_filepath, "rb")))
{
- SLOGE("File open error:(in_filepath) %s\n", in_filepath);
+ SECURE_SLOGE("File open error:(in_filepath) %s\n", in_filepath);
return SS_FILE_OPEN_ERROR; // file related error
}
if(!(fd_out = fopen(out_filepath, "wb")))
{
- SLOGE("File open error:(out_filepath) %s\n", out_filepath);
+ SECURE_SLOGE("File open error:(out_filepath) %s\n", out_filepath);
fclose(fd_in);
return SS_FILE_OPEN_ERROR; // file related error
}
@@ -682,7 +682,7 @@ int SsServerDataStoreFromBuffer(int sender_pid, char* writebuffer, size_t bufLen
// open a file with write mode
if(!(fd_out = fopen(out_filepath, "wb")))
{
- SLOGE("File open error:(out_filepath) %s\n", out_filepath);
+ SECURE_SLOGE("File open error:(out_filepath) %s\n", out_filepath);
free(buffer);
return SS_FILE_OPEN_ERROR; // file related error
}
@@ -781,7 +781,7 @@ int SsServerDataRead(int sender_pid, const char* data_filepath, char* pRetBuf, u
// 2. open file
if(!(fd_in = fopen(in_filepath, "rb")))
{
- SLOGE("File open error:(in_filepath) %s\n", in_filepath);
+ SECURE_SLOGE("File open error:(in_filepath) %s\n", in_filepath);
return SS_FILE_OPEN_ERROR; // file related error
}
@@ -789,7 +789,7 @@ int SsServerDataRead(int sender_pid, const char* data_filepath, char* pRetBuf, u
if(fseek(fd_in, (long)offset + sizeof(ssm_file_info_t), SEEK_SET) < 0)
{
int err_tmp = errno;
- SLOGE("Fseek error: %s in %s\n", strerror(err_tmp), in_filepath);
+ SECURE_SLOGE("Fseek error: %s in %s\n", strerror(err_tmp), in_filepath);
fclose(fd_in);
return SS_FILE_OPEN_ERROR; // file related error
}
@@ -875,7 +875,7 @@ int SsServerGetInfo(int sender_pid, const char* data_filepath, char* file_info,
#ifdef SMACK_GROUP_ID
if(check_privilege_by_sockfd(sockfd, group_id, "r") != 0)
{
- SLOGE("permission denied, [%s]\n", group_id);
+ SECURE_SLOGE("permission denied, [%s]\n", group_id);
return SS_PERMISSION_DENIED;
}
#endif
@@ -889,7 +889,7 @@ int SsServerGetInfo(int sender_pid, const char* data_filepath, char* file_info,
// 1. open file
if(!(fd_in = fopen( in_filepath, "rb")))
{
- SLOGE("File open error:(in_filepath) [%s], [%s]\n", data_filepath, in_filepath );
+ SECURE_SLOGE("File open error:(in_filepath) [%s], [%s]\n", data_filepath, in_filepath );
return SS_FILE_OPEN_ERROR; // file related error
}