Displaying 20 results from an estimated 110 matches similar to: "[PATCH] daemon: fix directory outside current root when executing commands"
2012 Dec 13
2
[PATCH 1/2] daemon: NFC Use symbolic names in commandrvf
Improve readability of commandrvf() by replacing bare int values for
file descriptors with their symbolic names STD{IN,OUT,ERR}_FILENO.
Also add PIPE_READ and PIPE_WRITE for referencing relevant ends of a pipe.
---
daemon/guestfsd.c | 79 +++++++++++++++++++++++++++++--------------------------
1 file changed, 42 insertions(+), 37 deletions(-)
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c
2015 Dec 02
0
Re: [PATCH] daemon: improve internal commandrvf
On Wed, Dec 02, 2015 at 02:00:57PM +0100, Pino Toscano wrote:
> - add a flag to request chroot for the process, which is done only as
> very last (before chdir) operation before exec'ing the process in the
> child: this avoids using CHROOT_IN & CHROOT_OUT around command*
> invocations, and reduces the code spent in chroot mode
> - add failure checks for dup2 and open
2015 Dec 02
3
[PATCH] daemon: improve internal commandrvf
- add a flag to request chroot for the process, which is done only as
very last (before chdir) operation before exec'ing the process in the
child: this avoids using CHROOT_IN & CHROOT_OUT around command*
invocations, and reduces the code spent in chroot mode
- add failure checks for dup2 and open done in child, not proceeding to
executing the process if they fail
- open /dev/null
2016 Jan 21
0
[PATCH v3 2/6] daemon: Split out command() functions and CLEANUP_* macros into separate files.
Allows more sharing between the daemon and the inspection program.
---
daemon/Makefile.am | 2 +
daemon/cleanups.c | 80 ++++++++++
daemon/cleanups.h | 47 ++++++
daemon/command.c | 436 +++++++++++++++++++++++++++++++++++++++++++++++++++++
daemon/command.h | 41 +++++
daemon/daemon.h | 47 +-----
daemon/guestfsd.c | 392 -----------------------------------------------
po/POTFILES
2016 Jan 26
1
[PATCH] daemon: improve debugging for "stdout on stderr" flag
When the COMMAND_FLAG_FOLD_STDOUT_ON_STDERR flag is passed to
command*(), indicate that as stdout=e in debugging message.
---
daemon/command.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/daemon/command.c b/daemon/command.c
index 73fce56..2423a4e 100644
--- a/daemon/command.c
+++ b/daemon/command.c
@@ -185,6 +185,7 @@ commandrvf (char **stdoutput, char **stderror,
2014 Oct 05
0
[PATCH v5 2/7] tests/c-api: Convert the C API tests to use the test harness.
This involves some significant changes to this test framework.
In particular:
- Instead of just specifying $srcdir at the start of a FileIn
path, you can now specify arbitrary environment variables.
This is necessary to allow the tests to run from a tmpdir.
- Use COPYING instead of COPYING.LIB, and copy that file into
the test suite directory.
- Require the static binaries
2015 Aug 06
0
[PATCH v4 02/17] tests/c-api: Convert the C API tests to use the test harness.
This involves some significant changes to this test framework.
In particular:
- Instead of just specifying $srcdir at the start of a FileIn
path, you can now specify arbitrary environment variables.
This is necessary to allow the tests to run from a tmpdir.
- Use COPYING instead of COPYING.LIB, and copy that file into
the test suite directory.
- Require the static binaries
2013 Aug 18
3
missing chdir before chroot in guestfsd
daemon.c does just a chroot, without chdir. The result is that pwd does not
work correctly (it causes fs/dcache.c:prepend_unreachable() to add the
unreachable string). A workaround is to add "cd /" before each sh command.
><fs> mount /dev/sda2 /
><fs> sh "cd / ; chroot / ; /bin/pwd"
/
><fs> sh "/bin/pwd"
(unreachable)/
><fs> sh
2013 Aug 19
0
Re: missing chdir before chroot in guestfsd
On Sun, Aug 18, 2013 at 02:29:15PM +0200, Olaf Hering wrote:
>
> daemon.c does just a chroot, without chdir. The result is that pwd does not
> work correctly (it causes fs/dcache.c:prepend_unreachable() to add the
> unreachable string). A workaround is to add "cd /" before each sh command.
>
> ><fs> mount /dev/sda2 /
> ><fs> sh "cd / ; chroot
2006 May 12
0
kernel crash
Hi all,
I'm having a bit of a problem with a CentOS box. It ocasionally
crashes/freezes. I configured to send all kernel logging to a
remote box so I've been able to catch one kernel crash:
May 12 15:34:18 ioana.slack.i kernel: ------------[ cut here ]------------
May 12 15:34:18 ioana.slack.i kernel: kernel BUG at arch/i386/kernel/ldt.c:46!
May 12 15:34:18 ioana.slack.i kernel:
2013 May 23
2
Problem with btrfs send/receive
Hi everyone,
I was trying the new send/receive feature today but can''t make it work.
These are the commands I was using:
btrfs subvol snap -r /mnt/data1/@downloads/ /mnt/data1/snapshots/testsnap
btrfs send /mnt/data1/snapshots/testsnap | btrfs receive
/mnt/data1/snapshots/testreceive/
This command never finishes. A ''ls /mnt/data1/snapshots/testreceive/ ''
never
2016 Jan 21
8
[PATCH v3 0/6] [FOR COMMENTS ONLY] Rework inspection.
For background on this change, see:
https://rwmj.wordpress.com/2015/12/06/inspection-now-with-added-prolog/
v2 was previously posted here:
https://www.redhat.com/archives/libguestfs/2015-December/msg00038.html
To test this patch series on a real guest, you can do:
$ ./run guestfish -v -x -a /var/tmp/centos-6.img
><fs> run
><fs> debug sh "guestfs-inspection
2014 Oct 23
17
[PATCH 00/16] Small bits of non-Linux porting
Hi,
from time to time, there have been requests (or attempts, like the
mingw port posted on the list some months ago) to make libguestfs work
on OSes different than Linux. Of course this would imply using a fixed
appliance, since it is currently heavily dependent on Linux.
The attached series provides some easy changes in this direction,
resolving some of the easy issues found in porting to
2015 Dec 05
6
[PATCH 0/6 v2] [FOR COMMENTS ONLY] Rework inspection.
This is a more working version. Inspection (partially) succeeds on a
real guest this time :-)
You can test it out on a real guest (in this case, a CentOS disk image
located at /tmp/centos-6.img) by doing:
$ ./run guestfish -v -x -a /tmp/centos-6.img
><fs> run
><fs> debug sh "guestfs-inspection --verbose"
which will print lots of debugging, and at the end the
2011 Sep 18
1
Synce with iPhone
Dear Wine users,
is there any chance I can get my iPhone 4 working with Wine?
Thanks in advance!
2008 Oct 27
11
Fring: Open VPN client to be installed on the mobile, which mobile?
Hi All;
I do not know if anyone faced such case in dealing with open vpn (as we need it for fring to be used from the mobile:
Which mobile can be used to install the open vpn client on it, so we can use it to do a vpn channel with the server that has open vpn server?
Regards
Bilal
2009 Jul 01
1
UK Vodafone femtocells now available
For those of you who have been waiting for AT&T to announce the public availability of their femtocell appliance in order to fix the shitty AT&T network coverage this will interest you.
Vodafone Access Gateway (femtocell) launched in UK <http://www.abiresearch.com/Blog/Wireless_Blog/635>
Its July 1st and Vodafone have officially launched their access gateway product in
2009 Dec 01
2
Proprietary by open source
Proprietary by open source (sounds like a oxymoron)
I am looking at doing a project that well use theora/vorbis/Dirac
I am expecting to get why cant it play on my ipod/PMP?
I am expecting to get you must be using some proprietary format?
tom_a_sparks
__________________________________________________________________________________
Win 1 of 4 Sony home entertainment packs thanks to
2010 Jul 01
4
video-email
I am wondering about doing video emails using Theora and speex
my files size limit is 4Mbytes
I can get 13 minutes of speech by using speex into 1.5MBytes
I am looking at the current camera phones
what is the....
frame size?
frame per second (FPS)?
video bitrate (Kbit/s)?
audio bitrate (Kbit/s)?
How do I create a Theora and speex file?
Can the java Cortado play speex audio files?
tom_a_sparks
2009 Apr 03
5
OT: Smar Phone/PDA Reco
I need a new pda/smart phone that allows me to do some remote admin.
Anyone know of anything that I can run a vpn and cli/ssh with?
Thanks!
jlc