search for: libtsk

Displaying 20 results from an estimated 78 matches for "libtsk".

2016 Apr 05
0
[PATCH v3 2/5] configure: Added libtsk compile-time check
Ensure libtsk is available at compile time. If not, daemon routines depending on it won't be available. Signed-off-by: Matteo Cafasso <noxdafox@gmail.com> --- m4/guestfs_daemon.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/m4/guestfs_daemon.m4 b/m4/guestfs_daemon.m4 index 88936b2..09...
2020 Oct 05
2
Debugging libguestfs
Here is my output I am getting on my kali machine. I believe that the error is: guestfsd: error while loading shared libraries: libtsk.so.19: cannot open shared object file: No such file or directory I tried to change the LD_LIBRARY_PATH to numerous locations and libtsk.so.19 is inside /usr/lib/x86_64-linux-gnu
2020 Oct 05
2
Re: Debugging libguestfs
...ctober 5, 2020, 02:42:08 PM EDT, Richard W.M. Jones <rjones@redhat.com> wrote: On Mon, Oct 05, 2020 at 06:28:06PM +0000, Alexander Prada wrote: > Here is my output I am getting on my kali machine. I believe that the error is: > > guestfsd: error while loading shared libraries: libtsk.so.19: cannot open > shared object file: No such file or directory > > I tried to change the LD_LIBRARY_PATH to numerous locations and libtsk.so.19 is > inside /usr/lib/x86_64-linux-gnu As a workaround what you can do is drop in a file into the appliance:   echo /usr/lib/x86_64-linux...
2016 Jun 13
0
[PATCH v8 1/3] New API: internal_filesystem_walk
...ered via TSK APIs. The struct contains the following fields: * tsk_inode: inode of a file * tsk_type: type of file such as for dirwalk command * tsk_size: file size in bytes * tsk_name: path relative to its disk partition * tsk_flags: bitfield containing extra information - configure: Added libtsk compile-time check Ensure libtsk is available at compile time. If not, daemon routines depending on it won't be available. - API: internal_filesystem_walk The internal_filesystem_walk command walks through the FS structures of a disk partition and returns all the files or directories which...
2016 Mar 29
0
[PATCH 1/2] added filesystem_walk0 API
...LIBS) + $(PCRE_LIBS) \ + $(TSK_LIBS) guestfsd_CPPFLAGS = \ -I$(top_srcdir)/gnulib/lib \ diff --git a/daemon/tsk.c b/daemon/tsk.c index b84dfae..d72868e 100644 --- a/daemon/tsk.c +++ b/daemon/tsk.c @@ -29,6 +29,26 @@ #include "actions.h" #include "optgroups.h" +#ifdef HAVE_LIBTSK + +#include <tsk/libtsk.h> +#include <rpc/xdr.h> +#include <rpc/types.h> + +static int +open_filesystem(const char *device, TSK_IMG_INFO **img, TSK_FS_INFO **fs); +static TSK_WALK_RET_ENUM +fswalk_callback(TSK_FS_FILE *fsfile, const char *path, void *data); +static char *join_path...
2020 Oct 05
0
Re: Debugging libguestfs
On Mon, Oct 05, 2020 at 06:28:06PM +0000, Alexander Prada wrote: > Here is my output I am getting on my kali machine. I believe that the error is: > > guestfsd: error while loading shared libraries: libtsk.so.19: cannot open > shared object file: No such file or directory > > I tried to change the LD_LIBRARY_PATH to numerous locations and libtsk.so.19 is > inside /usr/lib/x86_64-linux-gnu As a workaround what you can do is drop in a file into the appliance: echo /usr/lib/x86_64-linux...
2020 Oct 05
1
Re: Debugging libguestfs
Here is the updated libguestfs-test-tool output after the command below: echo /usr/lib/x86_64-linux-gnu/libtsk.so.19 > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/zz-libtsk On Monday, October 5, 2020, 03:56:34 PM EDT, Richard W.M. Jones <rjones@redhat.com> wrote: On Mon, Oct 05, 2020 at 07:51:56PM +0000, Alexander Prada wrote: > Rich, > > Thank you for the very quick response....
2016 Jun 12
6
[PATCH v7 0/5] New API: filesystem_walk
...terate over the file itself. This should reduce the API memory consumption. Patch ready for review. Code available at: https://github.com/noxdafox/libguestfs/tree/filesystem_walk Matteo Cafasso (5): generator: Added tsk_dirent struct New API: internal_filesystem_walk configure: Added libtsk compile-time check New API: filesystem_walk lib: Added filesystem_walk command tests daemon/Makefile.am | 4 +- daemon/tsk.c | 249 ++++++++++++++++++++++++++++++++++++++ docs/guestfs-building.pod | 4 + generator/actions.ml | 117 +...
2016 Apr 11
5
[PATCH v5 0/5] New API: filesystem_walk
v5: - fixed compile-time warning - removed unused flag enumeration - new version 1.33.19 Patch ready for review. Matteo Cafasso (5): generator: Added tsk_dirent struct configure: Added libtsk compile-time check New API: internal_filesystem_walk New API: filesystem_walk lib: Added filesystem_walk command tests daemon/Makefile.am | 4 +- daemon/tsk.c | 226 ++++++++++++++++++++++++++++++++++++++ docs/guestfs-building.pod | 4 + gener...
2016 Apr 06
5
[PATCH v4 0/5] New API: filesystem_walk
...tional dependency in documentation. - Use asprintf and perror instead of asprintf_nowarn and fprintf. - Ensure CLEANUP_FREE vars are initialised. - Reworked the function documentation. - Improved tests robustness. Matteo Cafasso (5): generator: Added tsk_dirent struct configure: Added libtsk compile-time check New API: internal_filesystem_walk New API: filesystem_walk lib: Added filesystem_walk command tests daemon/Makefile.am | 4 +- daemon/tsk.c | 229 ++++++++++++++++++++++++++++++++++++++ docs/guestfs-building.pod | 4 + gener...
2016 May 02
5
[PATCH v6 0/5] New API: filesystem_walk
...I have not found any example within the code so I preferred to stick to the suggestion to simply document the values. Patch ready for review. Code available at: https://github.com/noxdafox/libguestfs/tree/filesystem_walk Matteo Cafasso (5): generator: Added tsk_dirent struct configure: Added libtsk compile-time check New API: internal_filesystem_walk New API: filesystem_walk lib: Added filesystem_walk command tests daemon/Makefile.am | 4 +- daemon/tsk.c | 249 ++++++++++++++++++++++++++++++++++++++ docs/guestfs-building.pod | 4 + gener...
2016 Jun 13
7
[PATCH v8 0/3] New API: filesystem_walk
v8: - rebase on master - bump version to 1.33.37 - squash commits 1, 2, 3 Kept original commits messages when squashing them. Matteo Cafasso (3): New API: internal_filesystem_walk New API: filesystem_walk lib: Added filesystem_walk command tests daemon/Makefile.am | 4 +- daemon/tsk.c | 249 ++++++++++++++++++++++++++++++++++++++
2016 Apr 05
10
[PATCH v3 0/5] Added filesystem_walk command
v3: - File size will be reported as - 1 if it cannot be retrieved. - Code improvements based on comments. Matteo Cafasso (5): generator: Added tsk_dirent struct configure: Added libtsk compile-time check daemon: Added internal_filesystem_walk command appliance: Added filesystem_walk command appliance: Added filesystem_walk command tests daemon/Makefile.am | 4 +- daemon/tsk.c | 233 ++++++++++++++++++++++++++++++++++++++ generator/act...
2016 Jun 15
4
[PATCH v9 0/3] New API: filesystem_walk
v9: - add missing files: java/Makefile.inc, java/com/redhat/et/libguestfs/.gitignore, gobject/Makefile.inc - reserve space in tsk_dirent struct for future usage - use int instead of bool_t type - improve API documentation Matteo Cafasso (3): New API: internal_filesystem_walk New API: filesystem_walk lib: Added filesystem_walk command tests daemon/Makefile.am
2016 Apr 03
7
[PATCH v2 0/5] Added filesystem_walk command
...based on comments. - Adhere to project's coding style. - Better command documentation. - More robust tests. Patch ready for review, code available at: https://github.com/noxdafox/libguestfs/tree/filesystem_walk Matteo Cafasso (5): generator: Added tsk_dirent struct configure: Added libtsk compile-time check daemon: Added internal_filesystem_walk command appliance: Added filesystem_walk command appliance: Added filesystem_walk command tests daemon/Makefile.am | 4 +- daemon/tsk.c | 225 ++++++++++++++++++++++++++++++++++++++ generator/act...
2016 Mar 29
5
[PATCH 0/2] added filesystem_walk0 low level API
The filesystem_walk0 API parses the FS internals of a partition and returns a list of all the files and directories contained within. It list deleted files and directories as well. For each node, it reports its relative path, its inode and its allocation status. The output is serialised in XDR format and written to the given file. The command is similar to The Sleuth Kit "fls -rp
2016 Apr 04
2
Re: [PATCH v2 3/5] daemon: Added internal_filesystem_walk command
...ing.h> > +#include <unistd.h> > +#include <rpc/xdr.h> > +#include <rpc/types.h> > + > +#include "guestfs_protocol.h" > +#include "daemon.h" > +#include "actions.h" > +#include "optgroups.h" > + > +#ifdef HAVE_LIBTSK > + > +#include <tsk/libtsk.h> > + > +/* File types map similar to dirent. */ > +#define TSK_FILE_TYPE_NUM 10 > +char TSK_FILE_TYPE[TSK_FILE_TYPE_NUM] = { > + 'u', 'f', 'c', 'd', 'b', 'r', 'l', 's', 'h...
2018 Nov 21
2
Integration with muCommander
...ut mounting the disk partition(s). Unfortunately, I didn't manage to try that function due to the following error I get when trying to use it (tried on Fedora 28 & 29): Exception in thread "main" com.redhat.et.libguestfs.LibGuestFSException: internal_filesystem_walk: feature 'libtsk' is not available in this build of libguestfs. Read 'AVAILABILITY' in the guestfs(3) man page for how to check for the availability of features. at com.redhat.et.libguestfs.GuestFS._filesystem_walk(Native Method) at com.redhat.et.libguestfs.GuestFS.filesystem_walk(GuestFS.java:...
2016 Apr 04
0
Re: [PATCH v2 3/5] daemon: Added internal_filesystem_walk command
...; > +#include <rpc/xdr.h> > > +#include <rpc/types.h> > > + > > +#include "guestfs_protocol.h" > > +#include "daemon.h" > > +#include "actions.h" > > +#include "optgroups.h" > > + > > +#ifdef HAVE_LIBTSK > > + > > +#include <tsk/libtsk.h> > > + > > +/* File types map similar to dirent. */ > > +#define TSK_FILE_TYPE_NUM 10 > > +char TSK_FILE_TYPE[TSK_FILE_TYPE_NUM] = { > > + 'u', 'f', 'c', 'd', 'b', 'r',...
2016 Nov 02
0
[PATCH 1/6] appliance: add libyara dependency
...\ + $(YARA_LIBS) guestfsd_CPPFLAGS = \ -I$(top_srcdir)/gnulib/lib \ diff --git a/m4/guestfs_daemon.m4 b/m4/guestfs_daemon.m4 index 12123df..9dc7c6c 100644 --- a/m4/guestfs_daemon.m4 +++ b/m4/guestfs_daemon.m4 @@ -126,3 +126,11 @@ AC_CHECK_LIB([tsk],[tsk_version_print],[ AC_DEFINE([HAVE_LIBTSK], [1], [Define to 1 if The Sleuth Kit library (libtsk) is available.]) ], []) ],[AC_MSG_WARN([The Sleuth Kit library (libtsk) not found])]) + +dnl yara library (optional) +AC_CHECK_LIB([yara],[yr_initialize],[ + AC_CHECK_HEADER([yara.h],[ + AC_SUBST([YARA_LIBS], [-lyara]) + A...