svn commit: r282248 - in head/sys: kern sys

2015-04-29 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Apr 29 21:50:04 2015 New Revision: 282248 URL: https://svnweb.freebsd.org/changeset/base/282248 Log: Style fixes. Approved by: pjd (mentor) Modified: head/sys/kern/subr_nvlist.c head/sys/sys/nv_impl.h Modified: head/sys/kern/subr_nvlist.c

svn commit: r282249 - head/sys/kern

2015-04-29 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Apr 29 21:54:34 2015 New Revision: 282249 URL: https://svnweb.freebsd.org/changeset/base/282249 Log: Always use the nv_malloc macro instead of malloc(3). Approved by: pjd (mentor) Modified: head/sys/kern/subr_nvlist.c Modified: head/sys/kern/subr_nvlist.c

svn commit: r282098 - in head: share/misc usr.bin/calendar/calendars

2015-04-27 Thread Mariusz Zaborski
Mariusz Zaborski osho...@freebsd.org born in Skierniewice, Poland, 1990 12/05 Ivan Voras ivo...@freebsd.org born in Slavonski Brod, Croatia, 1981 12/06 Stefan Farfeleder stef...@freebsd.org born in Wien, Austria, 1980 12/11 Ganael Laplanche marty...@freebsd.org born in Reims, France, 1980

svn commit: r282282 - in head/sys: kern sys

2015-04-30 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 30 20:47:33 2015 New Revision: 282282 URL: https://svnweb.freebsd.org/changeset/base/282282 Log: Rename macros to use prefix ERRNO. Add macro ERRNO_SET. Now ERRNO_{RESTORE/SAVE} must by used together, additional variable is not needed. Always use

Re: svn commit: r282257 - in head: lib/libnv sys/kern sys/sys

2015-04-30 Thread Mariusz Zaborski
among the same shlib version. Bumping the SHLIB_MAJOR or moving to PRIVATELIB will require adding the libnv.so.0 to the ObsoleteFiles.inc OLD_FILES list. Oh, I didn't notice that. Bumping the SHLIB_MAJOR also refers to library which are only in HEAD? Cheers, Mariusz Zaborski

svn commit: r282283 - in head/sys: kern sys

2015-04-30 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 30 20:50:42 2015 New Revision: 282283 URL: https://svnweb.freebsd.org/changeset/base/282283 Log: Mark local function as static as a result of removing recursion. Approved by: pjd (mentor) Modified: head/sys/kern/subr_nvlist.c head/sys/sys/nvlist_impl.h

Re: svn commit: r282298 - head/lib/libcapsicum

2015-05-01 Thread Mariusz Zaborski
On 1 May 2015 at 13:56, Bjoern A. Zeeb b...@freebsd.org wrote: Author: bz Date: Fri May 1 11:56:21 2015 New Revision: 282298 URL: https://svnweb.freebsd.org/changeset/base/282298 Log: Unreak DNS usage through libcapsicum, which broke, e.g., ping in r282252 with what looks like a copy

svn commit: r282346 - in head: lib/libcapsicum lib/libcasper lib/libnv lib/libnv/tests sbin/casperd sys/dev/pci sys/kern sys/sys usr.sbin/iovctl

2015-05-02 Thread Mariusz Zaborski
Author: oshogbo Date: Sat May 2 17:45:52 2015 New Revision: 282346 URL: https://svnweb.freebsd.org/changeset/base/282346 Log: Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno. Change the nvlist_recv() function to take additional argument that specifies flags expected on the

svn commit: r282347 - in head: lib/libnv sys/kern sys/sys

2015-05-02 Thread Mariusz Zaborski
Author: oshogbo Date: Sat May 2 18:03:47 2015 New Revision: 282347 URL: https://svnweb.freebsd.org/changeset/base/282347 Log: Introduce the NV_FLAG_NO_UNIQUE flag. When set, it allows to store multiple values using the same key in a nvlist. Approved by: pjd (mentor) Obtained from:

svn commit: r282348 - head/lib/libnv/tests

2015-05-02 Thread Mariusz Zaborski
Author: oshogbo Date: Sat May 2 18:07:47 2015 New Revision: 282348 URL: https://svnweb.freebsd.org/changeset/base/282348 Log: Add test case for unpack with diffrent flags. Approved by: pjd (mentor) Modified: head/lib/libnv/tests/nv_tests.cc Modified: head/lib/libnv/tests/nv_tests.cc

svn commit: r282350 - head/sys/kern

2015-05-02 Thread Mariusz Zaborski
Author: oshogbo Date: Sat May 2 18:12:34 2015 New Revision: 282350 URL: https://svnweb.freebsd.org/changeset/base/282350 Log: nv_malloc can fail in userland. Add check to prevent a NULL pointer dereference. Pointed out by: mjg Approved by: pjd (mentor) Modified:

svn commit: r282349 - head/sys/kern

2015-05-02 Thread Mariusz Zaborski
Author: oshogbo Date: Sat May 2 18:10:45 2015 New Revision: 282349 URL: https://svnweb.freebsd.org/changeset/base/282349 Log: Remove duplicated code using macro template for the nvlist_add_.* functions. Approved by: pjd (mentor) Modified: head/sys/kern/subr_nvlist.c Modified:

svn commit: r282302 - head

2015-05-01 Thread Mariusz Zaborski
Author: oshogbo Date: Fri May 1 16:31:54 2015 New Revision: 282302 URL: https://svnweb.freebsd.org/changeset/base/282302 Log: Remove symlinks to the nvlist_.*[vf] functions. This should be done with r282257 commit. Approved by: pjd (mentor) Modified: head/ObsoleteFiles.inc

svn commit: r282312 - in head: lib/libnv sys/kern sys/sys

2015-05-01 Thread Mariusz Zaborski
Author: oshogbo Date: Fri May 1 17:50:24 2015 New Revision: 282312 URL: https://svnweb.freebsd.org/changeset/base/282312 Log: Add nvlist_flags() function, which returns nvlist's public flags. Approved by: pjd (mentor) Modified: head/lib/libnv/Makefile head/lib/libnv/nv.3

svn commit: r282304 - head/lib/libnv

2015-05-01 Thread Mariusz Zaborski
Author: oshogbo Date: Fri May 1 16:41:46 2015 New Revision: 282304 URL: https://svnweb.freebsd.org/changeset/base/282304 Log: Sort MLINKS alphabetically. Approved by: pjd (mentor) Modified: head/lib/libnv/Makefile Modified: head/lib/libnv/Makefile

svn commit: r282253 - in head/libexec/casper: dns grp

2015-04-29 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Apr 29 22:33:53 2015 New Revision: 282253 URL: https://svnweb.freebsd.org/changeset/base/282253 Log: Remove the use of nvlist_.*[vf] functions from casper and replace them with snprintf(3). Assert the results of snprintf(3). Approved by: pjd (mentor) Modified:

svn commit: r282257 - in head: lib/libnv sys/kern sys/sys

2015-04-29 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Apr 29 22:57:04 2015 New Revision: 282257 URL: https://svnweb.freebsd.org/changeset/base/282257 Log: Remove the nvlist_.*[fv] functions. Those functions are problematic, because there is no way to report memory allocation problems without complicating the API,

Re: svn commit: r282250 - head/sys/sys

2015-04-29 Thread Mariusz Zaborski
)(malloc((size)): So in user-land all checks are still needed in sys/kern/subr_nvlist.c. Thanks, Mariusz Zaborski ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src-all

Re: svn commit: r282252 - head/lib/libcapsicum

2015-04-29 Thread Mariusz Zaborski
On 30 April 2015 at 01:00, Garrett Cooper yaneurab...@gmail.com wrote: On Apr 29, 2015, at 15:19, Mariusz Zaborski osho...@freebsd.org wrote: Author: oshogbo Date: Wed Apr 29 22:19:40 2015 New Revision: 282252 URL: https://svnweb.freebsd.org/changeset/base/282252 Log: Remove

svn commit: r282252 - head/lib/libcapsicum

2015-04-29 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Apr 29 22:19:40 2015 New Revision: 282252 URL: https://svnweb.freebsd.org/changeset/base/282252 Log: Remove the use of nvlist_.*[vf] functions from libcapsicum and replace them with snprintf(3). Assert the results of snprintf(3). Approved by: pjd (mentor)

Re: svn commit: r282250 - head/sys/sys

2015-04-29 Thread Mariusz Zaborski
On 30 April 2015 at 00:28, Davide Italiano dav...@freebsd.org wrote: On Wed, Apr 29, 2015 at 3:00 PM, Mariusz Zaborski osho...@freebsd.org wrote: Author: oshogbo Date: Wed Apr 29 22:00:26 2015 New Revision: 282250 URL: https://svnweb.freebsd.org/changeset/base/282250 Log: Nvlist

svn commit: r282250 - head/sys/sys

2015-04-29 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Apr 29 22:00:26 2015 New Revision: 282250 URL: https://svnweb.freebsd.org/changeset/base/282250 Log: Nvlist functionality is not used within interrupt context, so we should use M_WAITOK to allocate memory. Approved by: pjd (mentor) Modified:

svn commit: r282251 - head/sys/kern

2015-04-29 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Apr 29 22:15:02 2015 New Revision: 282251 URL: https://svnweb.freebsd.org/changeset/base/282251 Log: Remove recursion from descriptor-related functions. Approved by: pjd (mentor) Modified: head/sys/kern/subr_nvlist.c Modified: head/sys/kern/subr_nvlist.c

svn commit: r282254 - head/lib/libnv/tests

2015-04-29 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Apr 29 22:46:18 2015 New Revision: 282254 URL: https://svnweb.freebsd.org/changeset/base/282254 Log: Remove the use of nvlist_.*[fv] functions from tests. Approved by: pjd (mentor) Modified: head/lib/libnv/tests/dnv_tests.cc head/lib/libnv/tests/nv_tests.cc

svn commit: r282258 - head/sys/kern

2015-04-29 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Apr 29 22:59:44 2015 New Revision: 282258 URL: https://svnweb.freebsd.org/changeset/base/282258 Log: Save errno from close override. Approved by: pjd (mentor) Modified: head/sys/kern/subr_nvlist.c head/sys/kern/subr_nvpair.c Modified:

svn commit: r282101 - head/libexec/casper/dns

2015-04-27 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Apr 27 17:33:00 2015 New Revision: 282101 URL: https://svnweb.freebsd.org/changeset/base/282101 Log: Fix potential memory leak. Pointed-out by: pfg Approved by: pjd (mentor) Modified: head/libexec/casper/dns/dns.c Modified:

svn commit: r283156 - head/sys/kern

2015-05-20 Thread Mariusz Zaborski
Author: oshogbo Date: Wed May 20 17:44:58 2015 New Revision: 283156 URL: https://svnweb.freebsd.org/changeset/base/283156 Log: Always use the nv_free function. Approved by: pjd (mentor) Modified: head/sys/kern/subr_nvlist.c Modified: head/sys/kern/subr_nvlist.c

svn commit: r283155 - head/sys/sys

2015-05-20 Thread Mariusz Zaborski
Author: oshogbo Date: Wed May 20 17:42:40 2015 New Revision: 283155 URL: https://svnweb.freebsd.org/changeset/base/283155 Log: Correct variable name in the interface. Approved by: pjd (mentor) Modified: head/sys/sys/nvpair_impl.h Modified: head/sys/sys/nvpair_impl.h

svn commit: r283158 - head/sys/kern

2015-05-20 Thread Mariusz Zaborski
Author: oshogbo Date: Wed May 20 17:48:22 2015 New Revision: 283158 URL: https://svnweb.freebsd.org/changeset/base/283158 Log: Fix memory leak. Approved by: pjd (mentor) Modified: head/sys/kern/subr_nvlist.c Modified: head/sys/kern/subr_nvlist.c

svn commit: r283157 - head/sys/kern

2015-05-20 Thread Mariusz Zaborski
Author: oshogbo Date: Wed May 20 17:47:01 2015 New Revision: 283157 URL: https://svnweb.freebsd.org/changeset/base/283157 Log: Style. Approved by: pjd (mentor) Modified: head/sys/kern/subr_nvpair.c Modified: head/sys/kern/subr_nvpair.c

svn commit: r285139 - in head: lib/libnv sys/conf sys/contrib/libnv sys/kern sys/sys

2015-07-04 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jul 4 16:33:37 2015 New Revision: 285139 URL: https://svnweb.freebsd.org/changeset/base/285139 Log: Move the nvlist source and private includes from sys/kern to seperate directory sys/contrib/libnv. The goal of this operation is to NOT install header files

svn commit: r285140 - in head: include lib/libc/stdio

2015-07-04 Thread Mariusz Zaborski
The Regents of the University of California. +.\ Copyright (c) 2015 Mariusz Zaborski osho...@freebsd.org +.\ All rights reserved. .\ .\ This code is derived from software contributed to Berkeley by .\ Chris Torek and the American National Standards Committee X3, @@ -32,11 +33,12

Re: svn commit: r285140 - in head: include lib/libc/stdio

2015-07-04 Thread Mariusz Zaborski
On Sat, Jul 04, 2015 at 07:33:55PM +0200, Tijl Coosemans wrote: On Sat, 4 Jul 2015 16:42:15 + (UTC) Mariusz Zaborski osho...@freebsd.org wrote: Author: oshogbo Date: Sat Jul 4 16:42:14 2015 New Revision: 285140 URL: https://svnweb.freebsd.org/changeset/base/285140 Log: Add

svn commit: r285062 - head/sys/sys

2015-07-02 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Jul 2 21:46:07 2015 New Revision: 285062 URL: https://svnweb.freebsd.org/changeset/base/285062 Log: Add stddef.h for size_t typedef. Approved by: pjd (mentor) Modified: head/sys/sys/dnv.h Modified: head/sys/sys/dnv.h

svn commit: r285063 - in head: . contrib/tcpdump lib/libcapsicum lib/libcasper lib/libnv lib/libnv/tests libexec/casper/dns libexec/casper/grp libexec/casper/pwd libexec/casper/random libexec/caspe...

2015-07-02 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Jul 2 21:58:10 2015 New Revision: 285063 URL: https://svnweb.freebsd.org/changeset/base/285063 Log: Let the nv.h and dnv.h includes be only in sys directory. Change consumers to include those files from sys. Add duplicated files to ObsoleteFiles. Approved

svn commit: r285129 - in head: . lib/libnv share/man/man9

2015-07-04 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jul 4 10:27:30 2015 New Revision: 285129 URL: https://svnweb.freebsd.org/changeset/base/285129 Log: Move nvlist documentation to the FreeBSD Kernel Developer's sections. Approved by: pjd (mentor) Added: head/share/man/man9/nv.9 - copied, changed from

svn commit: r285130 - head/sys/sys

2015-07-04 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jul 4 10:33:33 2015 New Revision: 285130 URL: https://svnweb.freebsd.org/changeset/base/285130 Log: Remove non-existent dnvlist functions. Approved by: pjd (mentor) Modified: head/sys/sys/dnv.h Modified: head/sys/sys/dnv.h

Re: svn commit: r286698 - head/sys/kern

2015-08-13 Thread Mariusz Zaborski
On Thu, Aug 13, 2015 at 03:49:30PM +0300, Gleb Smirnoff wrote: On Wed, Aug 12, 2015 at 08:08:54PM +, Mariusz Zaborski wrote: M Author: oshogbo M Date: Wed Aug 12 20:08:54 2015 M New Revision: 286698 M URL: https://svnweb.freebsd.org/changeset/base/286698 M M Log: M When the wait*(2

svn commit: r286644 - head/sys/contrib/libnv

2015-08-11 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Aug 11 17:54:51 2015 New Revision: 286644 URL: https://svnweb.freebsd.org/changeset/base/286644 Log: Don't set parent if the unpack operation fail. In some case this could crash the library, because of the NULL pointer references. Discovered thanks to american

svn commit: r286641 - head/sys/netpfil/pf

2015-08-11 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Aug 11 17:24:34 2015 New Revision: 286641 URL: https://svnweb.freebsd.org/changeset/base/286641 Log: Use correct src/dst ports when removing states. Submitted by: Milosz Kaniewski m.kaniew...@wheelsystems.com, UMEZAWA Takeshi umez...@iij.ad.jp

svn commit: r286642 - in head: share/man/man9 sys/contrib/libnv

2015-08-11 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Aug 11 17:41:32 2015 New Revision: 286642 URL: https://svnweb.freebsd.org/changeset/base/286642 Log: Make the nvlist_next(9) function handle NULL pointer variable. This simplifies removing the first element from nvlist. Reviewed by: AllanJude Approved by:

svn commit: r286646 - head/sys/contrib/libnv

2015-08-11 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Aug 11 18:17:31 2015 New Revision: 286646 URL: https://svnweb.freebsd.org/changeset/base/286646 Log: If any function fail (the ptr variable will be equal to NULL), we shouldn't return buffer. Instead we should free it and return NULL. Approved by: pjd (mentor)

svn commit: r286645 - head/sys/contrib/libnv

2015-08-11 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Aug 11 18:01:10 2015 New Revision: 286645 URL: https://svnweb.freebsd.org/changeset/base/286645 Log: The nvlist_move_nvpair() function can fail in two cases, if: - the nvlist error is set, or - the nvlist case ignore flag is not set and there is attend to add

svn commit: r286796 - in head: lib/libnv/tests share/man/man9 sys/cddl/compat/opensolaris/sys sys/contrib/libnv sys/sys

2015-08-15 Thread Mariusz Zaborski
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libnv/tests/nv_array_tests.cc Sat Aug 15 06:34:49 2015 (r286796) @@ -0,0 +1,1191 @@ +/*- + * Copyright (c) 2015 Mariusz Zaborski osho

svn commit: r286698 - head/sys/kern

2015-08-12 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Aug 12 20:08:54 2015 New Revision: 286698 URL: https://svnweb.freebsd.org/changeset/base/286698 Log: When the wait*(2) syscalls wait for any process (P_ALL), they should ignore processes created with the pdfork(2) syscall. PR: 201054 Approved by:

Re: svn commit: r285139 - in head: lib/libnv sys/conf sys/contrib/libnv sys/kern sys/sys

2015-07-09 Thread Mariusz Zaborski
On Thu, Jul 09, 2015 at 01:29:54PM -0700, Peter Wemm wrote: You have broken kernel builds for the freebsd.org cluster. By renaming subr_nvlist.o to nvlist.o you now cause: Please check if everything is working after 285339. Sorry for troubles. Cheers, Mariusz pgp9dm3v7s0xP.pgp

svn commit: r285339 - in head: cddl/lib/libnvpair sys/cddl/contrib/opensolaris/common/nvpair sys/conf sys/modules/zfs

2015-07-09 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Jul 9 21:53:40 2015 New Revision: 285339 URL: https://svnweb.freebsd.org/changeset/base/285339 Log: Rename zfs nvpair files to not colidate with our nvlist. PR: 201356 Approved by: pjd (mentor) Added:

svn commit: r301701 - in head: contrib/tcpdump usr.sbin/tcpdump/tcpdump

2016-06-08 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 8 22:30:21 2016 New Revision: 301701 URL: https://svnweb.freebsd.org/changeset/base/301701 Log: Fix spelling of the casper introduced in the r296047. PR: 210031 Reported by: AllanJude, jmallett Modified: head/contrib/tcpdump/addrtoname.c

svn commit: r301705 - head/contrib/tcpdump

2016-06-08 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 8 23:22:59 2016 New Revision: 301705 URL: https://svnweb.freebsd.org/changeset/base/301705 Log: The code responsible for opening and rotating pcap files is independent of Capser and should use openat(2) unconditionally on FreeBSD. openat(2) is mandatory when

svn commit: r301573 - in head: lib/libc/sys sys/kern sys/sys

2016-06-07 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 8 02:09:14 2016 New Revision: 301573 URL: https://svnweb.freebsd.org/changeset/base/301573 Log: Introduce the PD_CLOEXEC for pdfork(2). Reviewed by: mjg Modified: head/lib/libc/sys/pdfork.2 head/sys/kern/kern_fork.c head/sys/kern/sys_procdesc.c

svn commit: r301572 - in head/lib/libcasper: libcasper services/cap_dns services/cap_grp services/cap_pwd services/cap_random services/cap_sysctl

2016-06-07 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 8 02:03:53 2016 New Revision: 301572 URL: https://svnweb.freebsd.org/changeset/base/301572 Log: Add flags to the Casper services. CASPER_SERVICE_STDIO - Casper will not close the first three descriptors (stdin, stdout and stderr) this

svn commit: r301844 - head/lib/libcasper/libcasper

2016-06-12 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Jun 13 00:03:55 2016 New Revision: 301844 URL: https://svnweb.freebsd.org/changeset/base/301844 Log: Don't close fd if it's lower then stderr, otherwise we can close one of the descriptor which we just set. Pointed out by: jilles Approved by:

Re: svn commit: r301572 - in head/lib/libcasper: libcasper services/cap_dns services/cap_grp services/cap_pwd services/cap_random services/cap_sysctl

2016-06-10 Thread Mariusz Zaborski
On Fri, Jun 10, 2016 at 04:47:28PM +0200, Jilles Tjoelker wrote: > On Wed, Jun 08, 2016 at 02:03:53AM +0000, Mariusz Zaborski wrote: > > Author: oshogbo > > Date: Wed Jun 8 02:03:53 2016 > > New Revision: 301572 > > URL: https://svnweb.freebsd.org/changeset/base/301572

svn commit: r301757 - head/sys/kern

2016-06-09 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Jun 9 20:23:30 2016 New Revision: 301757 URL: https://svnweb.freebsd.org/changeset/base/301757 Log: Define tunable instead of using CTLFLAG_RWTUN flag with kern.corefile. The allproc_lock lock used in the sysctl_kern_corefile function is initialized in the

svn commit: r301159 - head/lib/libc/sys

2016-06-01 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 1 19:49:38 2016 New Revision: 301159 URL: https://svnweb.freebsd.org/changeset/base/301159 Log: Document behavior of wait introduced in the r286698. Suggested by: glebius Reviewed by: wblock, bjk Differential Revision:

svn commit: r301161 - head/share/mk

2016-06-01 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 1 19:54:17 2016 New Revision: 301161 URL: https://svnweb.freebsd.org/changeset/base/301161 Log: Fix the library name. Reviewed by: bdrewery Modified: head/share/mk/src.libnames.mk Modified: head/share/mk/src.libnames.mk

Re: svn commit: r295934 - head/sys/kern

2016-02-24 Thread Mariusz Zaborski
Thank you! On 24 February 2016 at 00:38, Bryan Drewery <bdrew...@freebsd.org> wrote: > On 2/23/2016 2:02 PM, Mariusz Zaborski wrote: > > Author: oshogbo > > Date: Tue Feb 23 22:02:25 2016 > > New Revision: 295934 > > URL: https://svnweb.freebsd.org/

svn commit: r295934 - head/sys/kern

2016-02-23 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Feb 23 22:02:25 2016 New Revision: 295934 URL: https://svnweb.freebsd.org/changeset/base/295934 Log: According to the sys/kern/capabilities.conf, gethostid(3) should be allowed. Pointed out by: Milosz Kaniewski Approved by:

svn commit: r296047 - in head: . contrib/mdocml contrib/tcpdump etc/defaults etc/mtree etc/rc.d gnu/usr.bin/groff/tmac lib lib/libc/posix1e lib/libcapsicum lib/libcasper lib/libcasper/libcasper lib...

2016-02-25 Thread Mariusz Zaborski
ity mode"); + +/* Use Casper capability to create capability to the system.dns service. */ +capdns = cap_service_open(capcas, "system.dns"); +if (capdns == NULL) + err(1, "Unable to open system.dns service"); + +/* Close Casper capability, we don't need it anym

svn commit: r296140 - head/libexec/casper

2016-02-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Feb 27 14:45:32 2016 New Revision: 296140 URL: https://svnweb.freebsd.org/changeset/base/296140 Log: Remove reaming files of the Casper daemon. Reported by:emaste Approved by: pjd (mentor) Deleted: head/libexec/casper/

Re: svn commit: r296047 - in head: . contrib/mdocml contrib/tcpdump etc/defaults etc/mtree etc/rc.d gnu/usr.bin/groff/tmac lib lib/libc/posix1e lib/libcapsicum lib/libcasper lib/libcasper/libcasper li

2016-02-27 Thread Mariusz Zaborski
Thank you. I on it. On 26 February 2016 at 16:55, Shawn Webb <shawn.w...@hardenedbsd.org> wrote: > On Thu, Feb 25, 2016 at 06:23:40PM +, Mariusz Zaborski wrote: > > Author: oshogbo > > Date: Thu Feb 25 18:23:40 2016 > > New Revision: 296047 > > URL: https://

svn commit: r297982 - in head: lib/libcasper/services/cap_dns tools/regression/capsicum/libcasper

2016-04-14 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 14 18:27:10 2016 New Revision: 297982 URL: https://svnweb.freebsd.org/changeset/base/297982 Log: Set NULL to the ai_next pointer which fix cap_getaddrinfo(). Add regression test case. PR: 195551 Submitted by: Mikhail

svn commit: r303727 - head/bin/uuidgen

2016-08-03 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Aug 3 18:04:08 2016 New Revision: 303727 URL: https://svnweb.freebsd.org/changeset/base/303727 Log: uuid_to_string(3) is allocating memory and can fail on that. Check if any error accrued. Modified: head/bin/uuidgen/uuidgen.c Modified: head/bin/uuidgen/uuidgen.c

svn commit: r303725 - head/sbin/geom/class/eli

2016-08-03 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Aug 3 18:02:10 2016 New Revision: 303725 URL: https://svnweb.freebsd.org/changeset/base/303725 Log: Fix misleading description of the -b option in the geli init command. Reviewed by: bjk, wblock Differential Revision:

svn commit: r302965 - head/sys/contrib/libnv

2016-07-17 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Jul 17 15:29:31 2016 New Revision: 302965 URL: https://svnweb.freebsd.org/changeset/base/302965 Log: Fix memory leak in the nvlist string array. Submitted by: Adam Starak MFC after:1 week Modified: head/sys/contrib/libnv/nvpair.c

svn commit: r302966 - head/sys/contrib/libnv

2016-07-17 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Jul 17 15:36:02 2016 New Revision: 302966 URL: https://svnweb.freebsd.org/changeset/base/302966 Log: Fix nvlist array memory leak. When we change nvl_array_next to NULL it means that we want to destroy or take nvlist_array. The nvpair, which stores next nvlist

svn commit: r303825 - stable/11/sys/contrib/libnv

2016-08-08 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Aug 8 06:29:25 2016 New Revision: 303825 URL: https://svnweb.freebsd.org/changeset/base/303825 Log: MFC r302965: Fix memory leak in the nvlist string array. Submitted by: Adam Starak Approved by:re (gjb) Modified:

svn commit: r303826 - stable/11/sys/contrib/libnv

2016-08-08 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Aug 8 06:33:57 2016 New Revision: 303826 URL: https://svnweb.freebsd.org/changeset/base/303826 Log: MFC r302966: Fix nvlist array memory leak. When we change nvl_array_next to NULL it means that we want to destroy or take nvlist_array. The nvpair, which

svn commit: r314000 - in head: contrib/traceroute usr.sbin/traceroute

2017-02-20 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Feb 20 23:48:50 2017 New Revision: 314000 URL: https://svnweb.freebsd.org/changeset/base/314000 Log: Capsicumize traceroute. PR:193973 Submitted by: Mikhail Reviewed by: pjd, bapt, emaste, AllanJude Differential Revision:

svn commit: r314275 - in head/sys/boot/i386: boot2 common

2017-02-25 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Feb 25 18:14:32 2017 New Revision: 314275 URL: https://svnweb.freebsd.org/changeset/base/314275 Log: Remove unused macro from common/drv.c. When we was compering it to code from boot2 it also looks like this code is buggy and boot2 was never updated to use this

svn commit: r314410 - head/sys/geom/part

2017-02-28 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Feb 28 20:51:20 2017 New Revision: 314410 URL: https://svnweb.freebsd.org/changeset/base/314410 Log: The kern.geom.part.auto_resize should be tunable. Modified: head/sys/geom/part/g_part.c Modified: head/sys/geom/part/g_part.c

Re: svn commit: r314359 - in head: sbin/geom/class/part sys/geom/part

2017-02-27 Thread Mariusz Zaborski
On Mon, Feb 27, 2017 at 05:54:01PM +, Mariusz Zaborski wrote: > Author: oshogbo > Date: Mon Feb 27 17:54:01 2017 > New Revision: 314359 > URL: https://svnweb.freebsd.org/changeset/base/314359 > > Log: > Add sysctl to control auto resize of the GEOM metada

svn commit: r314359 - in head: sbin/geom/class/part sys/geom/part

2017-02-27 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Feb 27 17:54:01 2017 New Revision: 314359 URL: https://svnweb.freebsd.org/changeset/base/314359 Log: Add sysctl to control auto resize of the GEOM metadata. Reviewed by: AllanJude Differential Revision:https://reviews.freebsd.org/D9603 Modified:

svn commit: r314319 - head/lib/libc/x86/sys

2017-02-26 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Feb 26 22:07:26 2017 New Revision: 314319 URL: https://svnweb.freebsd.org/changeset/base/314319 Log: Don't try to open devices in the gettc() function which will always fail in the Capability mode. Instead silently fallback to the syscall method, which is done for

svn commit: r314320 - head/lib/libc/x86/sys

2017-02-26 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Feb 26 22:15:39 2017 New Revision: 314320 URL: https://svnweb.freebsd.org/changeset/base/314320 Log: Remove unneeded variable initialization from r314319. Pointed out by: kib Modified: head/lib/libc/x86/sys/__vdso_gettc.c Modified:

svn commit: r305084 - head/tools/regression/capsicum/syscalls

2016-08-30 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Aug 30 19:58:41 2016 New Revision: 305084 URL: https://svnweb.freebsd.org/changeset/base/305084 Log: Fix Capsicum syscalls test suite. Modified: head/tools/regression/capsicum/syscalls/cap_fcntls_limit.c head/tools/regression/capsicum/syscalls/cap_ioctls_limit.c

Re: svn commit: r305084 - head/tools/regression/capsicum/syscalls

2016-08-31 Thread Mariusz Zaborski
On Tue, Aug 30, 2016 at 06:04:50PM -0700, Ngie Cooper wrote: > On Tue, Aug 30, 2016 at 12:58 PM, Mariusz Zaborski <osho...@freebsd.org> > wrote: > > Author: oshogbo > > Date: Tue Aug 30 19:58:41 2016 > > New Revision: 305084 > > URL: https://svnweb.freebsd.o

Re: svn commit: r305629 - head/etc/mtree

2016-09-08 Thread Mariusz Zaborski
Thanks for that! On 8 September 2016 at 23:59, Jung-uk Kim wrote: > Author: jkim > Date: Thu Sep 8 21:59:34 2016 > New Revision: 305629 > URL: https://svnweb.freebsd.org/changeset/base/305629 > > Log: > Add new directories added in r305626 to fix "make installworld". > >

svn commit: r305626 - in head: lib/libcasper/services/cap_dns lib/libcasper/services/cap_dns/tests lib/libcasper/services/cap_grp lib/libcasper/services/cap_grp/tests lib/libcasper/services/cap_pwd...

2016-09-08 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Sep 8 20:01:26 2016 New Revision: 305626 URL: https://svnweb.freebsd.org/changeset/base/305626 Log: Move libcasper tests from regression/capsicum/libcasper/ to lib/libcasper/service/${service_name}/tests. Reviewed by: emaste, ngie Differential Revision:

svn commit: r305756 - in head/sys: kern sys

2016-09-12 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Sep 12 22:46:19 2016 New Revision: 305756 URL: https://svnweb.freebsd.org/changeset/base/305756 Log: fd: add fget_cap and fget_cap_locked primitives They can be used to obtain capabilities along with a referenced fp. Reviewed by: mjg@ Modified:

svn commit: r306707 - head/lib/libcasper/libcasper

2016-10-05 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Oct 5 16:23:02 2016 New Revision: 306707 URL: https://svnweb.freebsd.org/changeset/base/306707 Log: Fix naming in Casper man page. Modified: head/lib/libcasper/libcasper/libcasper.3 Modified: head/lib/libcasper/libcasper/libcasper.3

svn commit: r306673 - head/lib/libcapsicum

2016-10-04 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Oct 4 13:33:43 2016 New Revision: 306673 URL: https://svnweb.freebsd.org/changeset/base/306673 Log: libcapsicum: limit stderr Don't limit stdout twice, instead limit stderr. Pointed out by: rpokala@ Modified: head/lib/libcapsicum/capsicum_helpers.h

svn commit: r306813 - in head/usr.bin: cmp col elfdump kdump tee tr

2016-10-07 Thread Mariusz Zaborski
Author: oshogbo Date: Fri Oct 7 17:56:57 2016 New Revision: 306813 URL: https://svnweb.freebsd.org/changeset/base/306813 Log: Remove the duplicated code using Capsicum helpers. Reviewed by: cem, ed, bapt, emaste Differential Revision https://reviews.freebsd.org/D8140 Modified:

svn commit: r306820 - head/usr.bin/cmp

2016-10-07 Thread Mariusz Zaborski
Author: oshogbo Date: Fri Oct 7 19:02:13 2016 New Revision: 306820 URL: https://svnweb.freebsd.org/changeset/base/306820 Log: Restrict stdin if it's not in use. Reviewed by: emaste, cem Differential Revision:https://reviews.freebsd.org/D8184 Modified: head/usr.bin/cmp/cmp.c

svn commit: r306716 - head/share/man/man9

2016-10-05 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Oct 5 19:01:00 2016 New Revision: 306716 URL: https://svnweb.freebsd.org/changeset/base/306716 Log: Add man page for dnvlist. Submitted by: Adam Starak Reviewed by: cem, wblock Added: head/share/man/man9/dnv.9 (contents, props

svn commit: r306726 - head/lib/libcapsicum

2016-10-05 Thread Mariusz Zaborski
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libcapsicum/capsicum_helpers.3 Wed Oct 5 20:02:34 2016 (r306726) @@ -0,0 +1,110 @@ +.\" Copyright (c) 2016 Mariusz Zaborski <osho...@freebsd.org> +.\" All

Re: svn commit: r306174 - in head/sys: compat/cloudabi compat/linux kern netinet sys

2016-09-22 Thread Mariusz Zaborski
porting you? >> > >> > >> > On 22 September 2016 at 16:56, Ruslan Bukin <ruslan.bu...@cl.cam.ac.uk> >> > wrote: >> > > May be. The next line should be >> > > /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). >> > >

svn commit: r306232 - head/sys/kern

2016-09-23 Thread Mariusz Zaborski
Author: oshogbo Date: Fri Sep 23 08:13:46 2016 New Revision: 306232 URL: https://svnweb.freebsd.org/changeset/base/306232 Log: fd: fix up fget_cap If the kernel is not compiled with the CAPABILITIES kernel options fget_unlocked doesn't return the sequence number so fd_modify will

Re: svn commit: r306174 - in head/sys: compat/cloudabi compat/linux kern netinet sys

2016-09-22 Thread Mariusz Zaborski
gt; > Ruslan > > On Thu, Sep 22, 2016 at 09:58:46AM +, Mariusz Zaborski wrote: >> Author: oshogbo >> Date: Thu Sep 22 09:58:46 2016 >> New Revision: 306174 >> URL: https://svnweb.freebsd.org/changeset/base/306174 >> >> Log: >> capsicum: pro

svn commit: r306174 - in head/sys: compat/cloudabi compat/linux kern netinet sys

2016-09-22 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Sep 22 09:58:46 2016 New Revision: 306174 URL: https://svnweb.freebsd.org/changeset/base/306174 Log: capsicum: propagate rights on accept(2) Descriptor returned by accept(2) should inherits capabilities rights from the listening socket. PR: 201052

svn commit: r306184 - head/sys/kern

2016-09-22 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Sep 22 11:54:20 2016 New Revision: 306184 URL: https://svnweb.freebsd.org/changeset/base/306184 Log: fd: simplify fgetvp_rights by using fget_cap_locked Reviewed by: mjg Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c

Re: svn commit: r306174 - in head/sys: compat/cloudabi compat/linux kern netinet sys

2016-09-22 Thread Mariusz Zaborski
/rc: WARNING: $hostname is not set -- see rc.conf(5). > > but it hangs before this line > > Ruslan > > On Thu, Sep 22, 2016 at 04:39:16PM +0200, Mariusz Zaborski wrote: >> Hi Ruslan, >> >> Does it hang on some network script? >> >> Thanks, >> Mariu

Re: svn commit: r304912 - head/sys/sys

2016-08-28 Thread Mariusz Zaborski
] Error code 1 > > make[4]: stopped in /usr/home/adrian/work/freebsd/head-embedded/src/lib/libnv > 1 error > > > > -a > > > On 27 August 2016 at 08:22, Mariusz Zaborski <osho...@freebsd.org> wrote: >> Author: oshogbo >> Date: Sat Aug 27 15:22:55 2016 >&g

svn commit: r304952 - head/sys/sys

2016-08-28 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Aug 28 07:40:11 2016 New Revision: 304952 URL: https://svnweb.freebsd.org/changeset/base/304952 Log: Remove duplicated declaration. Reported by: adrian@ Modified: head/sys/sys/cnv.h Modified: head/sys/sys/cnv.h

svn commit: r304909 - in head: lib/libnv/tests sys/contrib/libnv

2016-08-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Aug 27 13:40:27 2016 New Revision: 304909 URL: https://svnweb.freebsd.org/changeset/base/304909 Log: Fix style issue in the cnv API. Remove unused arguments in a macro. Remove unused typedef. Modified: head/lib/libnv/tests/Makefile

svn commit: r304910 - head/share/man/man9

2016-08-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Aug 27 13:47:52 2016 New Revision: 304910 URL: https://svnweb.freebsd.org/changeset/base/304910 Log: Introduce cnv man page. Submitted by: Adam Starak Reviewed by: cem@, wblock@ Differential Revision:

svn commit: r304908 - in head: lib/libnv lib/libnv/tests sys/conf sys/contrib/libnv

2016-08-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Aug 27 13:37:30 2016 New Revision: 304908 URL: https://svnweb.freebsd.org/changeset/base/304908 Log: Add cnv API. cnv API is a set of functions for managing name/value pairs by cookie. The cookie can be obtained by nvlist_next(), nvlist_get_parent() or

svn commit: r304912 - head/sys/sys

2016-08-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Aug 27 15:22:55 2016 New Revision: 304912 URL: https://svnweb.freebsd.org/changeset/base/304912 Log: Add missed header file for cnv.h . Submitted by: Adam Starak Reported by: ache@ Added: head/sys/sys/cnv.h (contents, props changed)

svn commit: r304915 - head/share/man/man9

2016-08-27 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Aug 27 18:08:25 2016 New Revision: 304915 URL: https://svnweb.freebsd.org/changeset/base/304915 Log: Bump date in the man page. Modified: head/share/man/man9/cnv.9 Modified: head/share/man/man9/cnv.9

Re: svn commit: r304815 - in head: lib lib/libifc share/examples/libifc share/mk

2016-08-25 Thread Mariusz Zaborski
Some inline comments :) Cheers, Mariusz [...] > +libifc_handle_t * > +libifc_open(void) > +{ > + struct libifc_handle *h; > + > + h = calloc(1, sizeof(struct libifc_handle)); This can fail, and we are using NULL references. > + > + for (int i = 0; i <= AF_MAX; i++) { > +

  1   2   >