CVS commit: src/sbin/veriexecctl
Module Name:src Committed By: thorpej Date: Sat Jun 6 22:36:39 UTC 2020 Modified Files: src/sbin/veriexecctl: veriexecctl.h Log Message: Update for proplib(3) API changes. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sbin/veriexecctl/veriexecctl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/veriexecctl/veriexecctl.h diff -u src/sbin/veriexecctl/veriexecctl.h:1.11 src/sbin/veriexecctl/veriexecctl.h:1.12 --- src/sbin/veriexecctl/veriexecctl.h:1.11 Sun Aug 31 23:37:45 2008 +++ src/sbin/veriexecctl/veriexecctl.h Sat Jun 6 22:36:39 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: veriexecctl.h,v 1.11 2008/08/31 23:37:45 dholland Exp $ */ +/* $NetBSD: veriexecctl.h,v 1.12 2020/06/06 22:36:39 thorpej Exp $ */ /*- * Copyright 2005 Elad Efrat @@ -34,15 +34,15 @@ #define _VERIEXECCTL_H_ #define dict_sets(d, k, v) \ - prop_dictionary_set(d, k, prop_string_create_cstring(v)) + prop_dictionary_set_string(d, k, v) #define dict_gets(d, k) \ - prop_string_cstring_nocopy(prop_dictionary_get(d, k)) + prop_string_value(prop_dictionary_get(d, k)) #define dict_setd(d, k, v, n) \ - prop_dictionary_set(d, k, prop_data_create_data(v, n)) + prop_dictionary_set_data(d, k, v, n) #define dict_getd(d, k) \ - prop_data_data_nocopy(prop_dictionary_get(d, k)) + prop_data_value(prop_dictionary_get(d, k)) #endif /* _VERIEXECCTL_H_ */
CVS commit: src/sbin/veriexecctl
Module Name:src Committed By: christos Date: Tue Jan 10 20:48:12 UTC 2017 Modified Files: src/sbin/veriexecctl: veriexecctl.c Log Message: need ... for stat() To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sbin/veriexecctl/veriexecctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/veriexecctl/veriexecctl.c diff -u src/sbin/veriexecctl/veriexecctl.c:1.39 src/sbin/veriexecctl/veriexecctl.c:1.40 --- src/sbin/veriexecctl/veriexecctl.c:1.39 Tue Jun 16 19:18:55 2015 +++ src/sbin/veriexecctl/veriexecctl.c Tue Jan 10 15:48:12 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: veriexecctl.c,v 1.39 2015/06/16 23:18:55 christos Exp $ */ +/* $NetBSD: veriexecctl.c,v 1.40 2017/01/10 20:48:12 christos Exp $ */ /*- * Copyright 2005 Elad Efrat@@ -43,6 +43,7 @@ #include #include #include +#include #include
CVS commit: src/sbin/veriexecctl
Module Name:src Committed By: maxv Date: Sun Apr 26 09:20:10 UTC 2015 Modified Files: src/sbin/veriexecctl: veriexecctl.c Log Message: Be a bit more verbose if the kernel rejects a file To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sbin/veriexecctl/veriexecctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/veriexecctl/veriexecctl.c diff -u src/sbin/veriexecctl/veriexecctl.c:1.37 src/sbin/veriexecctl/veriexecctl.c:1.38 --- src/sbin/veriexecctl/veriexecctl.c:1.37 Sun Jul 27 04:23:44 2014 +++ src/sbin/veriexecctl/veriexecctl.c Sun Apr 26 09:20:09 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: veriexecctl.c,v 1.37 2014/07/27 04:23:44 dholland Exp $ */ +/* $NetBSD: veriexecctl.c,v 1.38 2015/04/26 09:20:09 maxv Exp $ */ /*- * Copyright 2005 Elad Efrat e...@netbsd.org @@ -248,10 +248,11 @@ main(int argc, char **argv) err(1, Cannot open `%s', file); yyin = fdopen(lfd, r); - yyparse(); + fclose(yyin); - (void)fclose(yyin); + if (error != EXIT_SUCCESS) + errx(1, Cannot load '%s', file); } else if (argc == 2 strcasecmp(argv[0], delete) == 0) { prop_dictionary_t dp; struct stat sb;
CVS commit: src/sbin/veriexecctl
Module Name:src Committed By: dholland Date: Sun Jul 27 04:23:44 UTC 2014 Modified Files: src/sbin/veriexecctl: veriexecctl.c Log Message: Fix snprintf usage and, while here, don't trundle off the end of an array. Part of PR 47976 from Henning Petersen. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sbin/veriexecctl/veriexecctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/veriexecctl/veriexecctl.c diff -u src/sbin/veriexecctl/veriexecctl.c:1.36 src/sbin/veriexecctl/veriexecctl.c:1.37 --- src/sbin/veriexecctl/veriexecctl.c:1.36 Sun Feb 9 13:40:59 2014 +++ src/sbin/veriexecctl/veriexecctl.c Sun Jul 27 04:23:44 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: veriexecctl.c,v 1.36 2014/02/09 13:40:59 maxv Exp $ */ +/* $NetBSD: veriexecctl.c,v 1.37 2014/07/27 04:23:44 dholland Exp $ */ /*- * Copyright 2005 Elad Efrat e...@netbsd.org @@ -181,11 +181,11 @@ print_entry(prop_dictionary_t entry) /* Get fingerprint in ASCII. */ len = prop_data_size(prop_dictionary_get(entry, fp)); - len *= 2; - fp = calloc(1, len + 1); + fp = calloc(1, len*2 + 1); v = dict_getd(entry, fp); - for (i = 0; i len; i++) - snprintf(fp, len + 1, %s%02x, fp, v[i] 0xff); + for (i = 0; i len; i++) { + snprintf(fp[i*2], 3, %02x, v[i] 0xff); + } /* Get flags. */ memset(flags, 0, sizeof(flags));
CVS commit: src/sbin/veriexecctl
Module Name:src Committed By: maxv Date: Sun Feb 9 13:41:00 UTC 2014 Modified Files: src/sbin/veriexecctl: veriexecctl.c Log Message: Fix error message; argv[1] could be NULL To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sbin/veriexecctl/veriexecctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/veriexecctl/veriexecctl.c diff -u src/sbin/veriexecctl/veriexecctl.c:1.35 src/sbin/veriexecctl/veriexecctl.c:1.36 --- src/sbin/veriexecctl/veriexecctl.c:1.35 Mon Aug 29 14:35:04 2011 +++ src/sbin/veriexecctl/veriexecctl.c Sun Feb 9 13:40:59 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: veriexecctl.c,v 1.35 2011/08/29 14:35:04 joerg Exp $ */ +/* $NetBSD: veriexecctl.c,v 1.36 2014/02/09 13:40:59 maxv Exp $ */ /*- * Copyright 2005 Elad Efrat e...@netbsd.org @@ -245,7 +245,7 @@ main(int argc, char **argv) lfd = open(file, O_RDONLY|O_EXLOCK, 0); if (lfd == -1) - err(1, Cannot open `%s', argv[1]); + err(1, Cannot open `%s', file); yyin = fdopen(lfd, r);
CVS commit: src/sbin/veriexecctl
Module Name:src Committed By: joerg Date: Tue May 24 12:06:25 UTC 2011 Modified Files: src/sbin/veriexecctl: veriexecctl_conf.l Log Message: input is unused. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sbin/veriexecctl/veriexecctl_conf.l Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/veriexecctl/veriexecctl_conf.l diff -u src/sbin/veriexecctl/veriexecctl_conf.l:1.14 src/sbin/veriexecctl/veriexecctl_conf.l:1.15 --- src/sbin/veriexecctl/veriexecctl_conf.l:1.14 Thu Oct 29 14:49:03 2009 +++ src/sbin/veriexecctl/veriexecctl_conf.l Tue May 24 12:06:25 2011 @@ -1,5 +1,5 @@ %{ -/* $NetBSD: veriexecctl_conf.l,v 1.14 2009/10/29 14:49:03 christos Exp $ */ +/* $NetBSD: veriexecctl_conf.l,v 1.15 2011/05/24 12:06:25 joerg Exp $ */ /*- * Copyright 2005 Elad Efrat e...@netbsd.org @@ -82,6 +82,7 @@ PCHAR (\\.|[^ \t]) %option nounput +%option noinput %%
CVS commit: src/sbin/veriexecctl
Module Name:src Committed By: wiz Date: Thu Apr 28 11:23:57 UTC 2011 Modified Files: src/sbin/veriexecctl: veriexecctl.8 Log Message: security(7), not (8). To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sbin/veriexecctl/veriexecctl.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/veriexecctl/veriexecctl.8 diff -u src/sbin/veriexecctl/veriexecctl.8:1.35 src/sbin/veriexecctl/veriexecctl.8:1.36 --- src/sbin/veriexecctl/veriexecctl.8:1.35 Sun Aug 31 23:40:19 2008 +++ src/sbin/veriexecctl/veriexecctl.8 Thu Apr 28 11:23:57 2011 @@ -1,4 +1,4 @@ -.\ $NetBSD: veriexecctl.8,v 1.35 2008/08/31 23:40:19 dholland Exp $ +.\ $NetBSD: veriexecctl.8,v 1.36 2011/04/28 11:23:57 wiz Exp $ .\ .\ Copyright (c) 1999 .\ Brett Lymn - bl...@baea.com.au, brett_l...@yahoo.com.au @@ -29,7 +29,7 @@ .\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\ SUCH DAMAGE. .\ -.\ $Id: veriexecctl.8,v 1.35 2008/08/31 23:40:19 dholland Exp $ +.\ $Id: veriexecctl.8,v 1.36 2011/04/28 11:23:57 wiz Exp $ .\ .Dd August 31, 2008 .Dt VERIEXECCTL 8 @@ -117,7 +117,7 @@ .Sh SEE ALSO .Xr veriexec 4 , .Xr veriexec 5 , -.Xr security 8 , +.Xr security 7 , .Xr veriexec 8 , .Xr veriexecgen 8 .Sh HISTORY
CVS commit: src/sbin/veriexecctl
Module Name:src Committed By: wiz Date: Thu Apr 28 12:01:58 UTC 2011 Modified Files: src/sbin/veriexecctl: veriexecctl.8 Log Message: Mark up file as argument. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sbin/veriexecctl/veriexecctl.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/veriexecctl/veriexecctl.8 diff -u src/sbin/veriexecctl/veriexecctl.8:1.36 src/sbin/veriexecctl/veriexecctl.8:1.37 --- src/sbin/veriexecctl/veriexecctl.8:1.36 Thu Apr 28 11:23:57 2011 +++ src/sbin/veriexecctl/veriexecctl.8 Thu Apr 28 12:01:58 2011 @@ -1,4 +1,4 @@ -.\ $NetBSD: veriexecctl.8,v 1.36 2011/04/28 11:23:57 wiz Exp $ +.\ $NetBSD: veriexecctl.8,v 1.37 2011/04/28 12:01:58 wiz Exp $ .\ .\ Copyright (c) 1999 .\ Brett Lymn - bl...@baea.com.au, brett_l...@yahoo.com.au @@ -29,7 +29,7 @@ .\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\ SUCH DAMAGE. .\ -.\ $Id: veriexecctl.8,v 1.36 2011/04/28 11:23:57 wiz Exp $ +.\ $Id: veriexecctl.8,v 1.37 2011/04/28 12:01:58 wiz Exp $ .\ .Dd August 31, 2008 .Dt VERIEXECCTL 8 @@ -42,7 +42,7 @@ .Sh SYNOPSIS .Nm .Op Fl ekv -.Cm load Op file +.Cm load Op Ar file .Nm .Cm delete Ar file | mount_point .Nm @@ -61,7 +61,7 @@ file integrity subsystem. .Ss Commands .Bl -tag -width -.It Cm load Op file +.It Cm load Op Ar file Load the fingerprint entries contained in .Ar file , if specified, or the default signatures file otherwise.
CVS commit: src/sbin/veriexecctl
Module Name:src Committed By: christos Date: Wed Oct 28 17:25:44 UTC 2009 Modified Files: src/sbin/veriexecctl: veriexecctl_conf.l Log Message: we don't need unput To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sbin/veriexecctl/veriexecctl_conf.l Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/veriexecctl/veriexecctl_conf.l diff -u src/sbin/veriexecctl/veriexecctl_conf.l:1.12 src/sbin/veriexecctl/veriexecctl_conf.l:1.13 --- src/sbin/veriexecctl/veriexecctl_conf.l:1.12 Sun Aug 31 19:37:45 2008 +++ src/sbin/veriexecctl/veriexecctl_conf.l Wed Oct 28 13:25:44 2009 @@ -1,5 +1,5 @@ %{ -/* $NetBSD: veriexecctl_conf.l,v 1.12 2008/08/31 23:37:45 dholland Exp $ */ +/* $NetBSD: veriexecctl_conf.l,v 1.13 2009/10/28 17:25:44 christos Exp $ */ /*- * Copyright 2005 Elad Efrat e...@netbsd.org @@ -40,6 +40,7 @@ #include veriexecctl_parse.h +#define YY_NO_UNPUT int yylex(void); extern size_t line;