search for: do_dmesg

Displaying 7 results from an estimated 7 matches for "do_dmesg".

Did you mean: _dmesg
2006 Nov 08
2
freebsd-security Digest, Vol 184, Issue 2
...from the previous one. Rather than overwriting the previous one, move it to a backup, create the new one, and log something if they differ. I hacked this up in a couple of minutes: --- /etc/rc.d/dmesg Sat May 6 21:00:26 2006 +++ dmesg Tue Nov 7 20:17:47 2006 @@ -19,8 +19,10 @@ do_dmesg() { - rm -f ${dmesg_file} + mv -f ${dmesg_file} ${dmesg_file}.prev ( umask 022 ; /sbin/dmesg $rc_flags > ${dmesg_file} ) + cmp -s ${dmesg_file} ${dmesg_file}.prev || \ + logger -p security.warn 'dmesg.boot changed from previous boot' } load_rc_c...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...ply_with_error ("%s: %s", path, err); diff --git a/daemon/dmesg.c b/daemon/dmesg.c index 5e16861f2..8f2f33ee0 100644 --- a/daemon/dmesg.c +++ b/daemon/dmesg.c @@ -27,8 +27,6 @@ #include "daemon.h" #include "actions.h" -GUESTFSD_EXT_CMD(str_dmesg, dmesg); - char * do_dmesg (void) { @@ -36,7 +34,7 @@ do_dmesg (void) CLEANUP_FREE char *err = NULL; int r; - r = command (&out, &err, str_dmesg, NULL); + r = command (&out, &err, "dmesg", NULL); if (r == -1) { reply_with_error ("%s", err); free (out); diff --git a/...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...diff --git a/daemon/dmesg.c b/daemon/dmesg.c index 5e16861f2..3e24c5101 100644 --- a/daemon/dmesg.c +++ b/daemon/dmesg.c @@ -27,7 +27,7 @@ #include "daemon.h" #include "actions.h" -GUESTFSD_EXT_CMD(str_dmesg, dmesg); +DECLARE_EXTERNAL_COMMANDS ("dmesg") char * do_dmesg (void) @@ -36,7 +36,7 @@ do_dmesg (void) CLEANUP_FREE char *err = NULL; int r; - r = command (&out, &err, str_dmesg, NULL); + r = command (&out, &err, "dmesg", NULL); if (r == -1) { reply_with_error ("%s", err); free (out); diff --git a/dae...
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...s never supposed to fail. I/O errors perhaps? */ diff --git a/daemon/dmesg.c b/daemon/dmesg.c index 5e98a18..69d4f37 100644 --- a/daemon/dmesg.c +++ b/daemon/dmesg.c @@ -27,13 +27,15 @@ #include "daemon.h" #include "actions.h" +GUESTFSD_EXT_CMD(str_dmesg, dmesg); + char * do_dmesg (void) { char *out, *err; int r; - r = command (&out, &err, "dmesg", NULL); + r = command (&out, &err, str_dmesg, NULL); if (r == -1) { reply_with_error ("%s", err); free (out); diff --git a/daemon/du.c b/daemon/du.c index 62f1142..4392bef...
2012 Aug 30
1
[PATCH] collect list of called external commands
...is never supposed to fail. I/O errors perhaps? */ diff --git a/daemon/dmesg.c b/daemon/dmesg.c index 5e98a18..0402f08 100644 --- a/daemon/dmesg.c +++ b/daemon/dmesg.c @@ -27,13 +27,15 @@ #include "daemon.h" #include "actions.h" +GUESTFS_EXT_CMD(str_dmesg, dmesg); + char * do_dmesg (void) { char *out, *err; int r; - r = command (&out, &err, "dmesg", NULL); + r = command (&out, &err, str_dmesg, NULL); if (r == -1) { reply_with_error ("%s", err); free (out); diff --git a/daemon/du.c b/daemon/du.c index 62f1142..1aa3b52...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option ‘./guestfsd --print-external-commands’