[Devel] [PATCH RH8] proc connector: fix exit event to actually take pidns from VE
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Wed Oct 6 17:59:50 MSK 2021
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 <ptikhomirov at 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
More information about the Devel
mailing list