Fields parent_pid and parent_tgid for "exit" appeared after vz8 rebase
and they also should be handled relative to ve pidns same as for other
events.

https://jira.sw.ru/browse/PSBM-133993
Fixes: 6233cc739a7a ("proc connector: take namespaces from VE")
Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com>
---
 drivers/connector/cn_proc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/connector/cn_proc.c b/drivers/connector/cn_proc.c
index ce7b33345db5..efb470b518d2 100644
--- a/drivers/connector/cn_proc.c
+++ b/drivers/connector/cn_proc.c
@@ -306,9 +306,9 @@ static bool fill_exit_event(struct proc_event *ev, struct 
ve_struct *ve,
        ev->event_data.exit.exit_code = task->exit_code;
        ev->event_data.exit.exit_signal = task->exit_signal;
        ev->event_data.exit.parent_pid = task_pid_nr_ns(task->real_parent,
-                                                       &init_pid_ns);
+                                                       pid_ns);
        ev->event_data.exit.parent_tgid = task_tgid_nr_ns(task->real_parent,
-                                                         &init_pid_ns);
+                                                         pid_ns);
        return true;
 }
 
-- 
2.31.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to