[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] Executing a plugin outside of jail as jailed user

From: Jack Torres (AdmiralApricot)
Subject: Re: [Jailkit-users] Executing a plugin outside of jail as jailed user
Date: Mon, 28 Aug 2017 10:03:36 -1000

Hey Olivier,

That worked! Thanks! I ran the strace command on the command like this:

'strace -xvtto /tmp/strace.out /usr/lib64/nagios/plugins/check_disk -w 1 -c 2

After that, I analyzed the strace.out file and was able to easily decipher which files I needed to copy into my jail directory.

Thanks again.

On Aug 2, 2017, 4:57 AM -1000, Olivier Sessink <address@hidden>, wrote:
On 01-08-17 20:56, Jack Torres (AdmiralApricot) wrote:

I’m trying to allow a jailed user to execute a plugin located outside of the jail and receive the output in jail. Since the jailed user can’t see out of jail, I copied the plugin (jk_cp) into the jail. However, when I execute this copied plugin in jail, it seems to be unable to generate any metrics (it’s the check_disk plugin from Nagios). Here’s what I see:

I guess that the check_disk plugin reads it's data from /proc and perhaps something from /etc/fstab, so it needs to access those data. You can use 'strace' to find out what the plugin needs.


Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
Jailkit-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]