Fix a invalid parsing in object field 23/175423/2
authoryeji01.kim <yeji01.kim@samsung.com>
Tue, 10 Apr 2018 06:53:19 +0000 (15:53 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Fri, 13 Apr 2018 07:30:56 +0000 (07:30 +0000)
Change-Id: I7ce7a37645d7d6c3b6356a5fd27926f1b62457e6
Signed-off-by: yeji01.kim <yeji01.kim@samsung.com>
common/audit/audit-system-log.cpp
tools/cli/audit-trail-admin-cli.cpp

index 2c78278869c824c09eb5e1fae4b01122d511a81b..ed52fb9a4efb3c12f4bc43401f0c414c60ff54ff 100644 (file)
@@ -181,7 +181,7 @@ void AuditLogBuilder<AuditSystemLog>::addMessage(int type, const std::string &lo
                                } else if (name == "obj") {
                                        instance.object.label = value;
                                } else if (name == "opid") {
-                                       instance.object.inode = std::stoul(value);
+                                       instance.object.pid = std::stoul(value);
                                } else if (name == "ouid") {
                                        instance.object.uid = std::stoul(value);
                                }
index ea89ec2943902d4e88f613dea64457a54509ccf9..86b25105b0f3c6a5e3b724b917a606d031ae0077 100644 (file)
@@ -185,7 +185,7 @@ std::string printSystemLog(audit_system_log_h log)
                        break;
                case OBJECT_TYPE_PROCESS:
                        str << "type=process" << ",name=" << obj_name << ",label=" << obj_label
-                               << ",inode=" << obj_inode << ",uid=" << obj_uid;
+                               << ",pid=" << obj_pid << ",uid=" << obj_uid;
                        break;
                case OBJECT_TYPE_FILE:
                        str << "type=file" << ",name=" << obj_name << ",label=" << obj_label