[Users] Re: Cant get information from a kernel connector in a container

Surbhi Chitre csurbhi at gmail.com
Thu Sep 3 09:17:14 EDT 2009


Hello Kir,

I have tried the code in this link for checking:
http://www.suse.de/~krahmer/exec-notify.c

I know why you cannot see the information related
to the processes running in the container when you run this
program outside the container(or on the host machine). But I have
not yet figured out why you cannot get the process related
events when you run the program(mentioned in the link)
inside the container.

Thanks a lot !!

Warm Regards,
Surbhi.



On Thu, Sep 3, 2009 at 3:07 PM, Kir Kolyshkin <kir at openvz.org> wrote:

> It will probably help if you'll show us your code.
>
> Surbhi Chitre wrote:
>
>> Hi again,
>>
>> I forgot to mention that I am using the following linux version:
>> 2.6.27.21 downloaded from the OpenVZ website with the last
>> commit : acfd6c89981b9de80b96741380780ffe6c87a15d
>> as per the git log.
>>
>> When I run the user space version of the kernel connector
>> from outside the container, then the information of the processes
>> running in the container cannot be seen (but the other processes
>> related information can be seen !) When I run the same program
>> inside a container I cannot send the message to the kernel
>> connector because of "Connection refused" error (As mentioned earlier) !!
>>
>> Do let me know if I am missing any patch ? Any tip or
>> help will be very helpful to me and shall be hugely appreciated :)
>> Thanks a lot !
>>
>>
>> Warm Regards,
>> Surbhi.
>>
>>
>>
>>
>>
>>
>> On Tue, Aug 25, 2009 at 7:50 PM, Surbhi Chitre <csurbhi at gmail.com<mailto:
>> csurbhi at gmail.com>> wrote:
>>
>>    Hie,
>>
>>    I want to find out all the processes belonging to a particular
>>    process group. To find this out I am using the kernel connector
>>    provided by the Linux kernel. I have written a socket based user
>>    space program that leverages the information provided by the
>>    kernel connector.
>>
>>    This program works successfully when it executes outside any
>>    container. However when I run it inside a container,
>>    send() fails because of the following error:
>>    "Connection refused".
>>
>>    Running this connector code outside
>>    the container will not fetch the information of the processes
>>    executing inside a container.
>>
>>    Has anyone else tried using the process related events given
>>    by the kernel connector from a container ? Does this work ?
>>    Is their any other way of finding out the processes of a group ?
>>    (or all the children/grandchildren.. of a process running in a
>>    container ?)
>>
>>    Thanks a lot!
>>
>>    Warm Regards,
>>    Surbhi.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at openvz.org
>> https://openvz.org/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openvz.org/pipermail/users/attachments/20090903/8b9d41be/attachment.html


More information about the Users mailing list