Displaying 3 results from an estimated 3 matches for "d3689cd".
2015 Mar 25
1
[PATCH] New API: ls_i
...@cn.fujitsu.com>
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
---
daemon/ls.c | 24 ++++++++++++++++++++++++
generator/actions.ml | 7 +++++++
src/MAX_PROC_NR | 2 +-
3 files changed, 32 insertions(+), 1 deletion(-)
diff --git a/daemon/ls.c b/daemon/ls.c
index d3689cd..fdacdaf 100644
--- a/daemon/ls.c
+++ b/daemon/ls.c
@@ -148,3 +148,27 @@ do_llz (const char *path)
return out; /* caller frees */
}
+
+char *
+do_ls_i (const char *dir)
+{
+ int r;
+ char *out;
+ CLEANUP_FREE char *err = NULL;
+ CLEANUP_FREE char *sdir = NULL;
+
+ sdir = sysroot_path (...
2016 Jan 15
1
[PATCH] daemon: resolve paths for ll and llz
...e note about the possibility to escape the sysroot using
ll and llz, since realpath won't return paths outside sysroot.
Fixes part of RHBZ#1293276.
---
daemon/ls.c | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/daemon/ls.c b/daemon/ls.c
index d3689cd..0e2f110 100644
--- a/daemon/ls.c
+++ b/daemon/ls.c
@@ -95,21 +95,24 @@ do_ls0 (const char *path)
return 0;
}
-/* Because we can't chroot and run the ls command (since 'ls' won't
- * necessarily exist in the chroot), this command can be used to escape
- * from the sysroot (eg....
2013 Aug 24
67
[PATCH 00/67] Proposed patches for libguestfs 1.22.6.
In the kernel and qemu communities it is routine for patches that will
be backported to stable branches to be posted for review. I'm
proposing we do the same for libguestfs stable branches.
All of the attached have been tested with 'make check-release'.
Rich.