svn commit: r367820 - head/sys/kern

2020-11-18 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Nov 18 21:26:14 2020 New Revision: 367820 URL: https://svnweb.freebsd.org/changeset/base/367820 Log: Add CTLFLAG_MPSAFE to the suser_enabled sysctl. Pointed out by: mjg Modified: head/sys/kern/kern_priv.c Modified: head/sys/kern/kern_priv.c

Re: svn commit: r367819 - in head: sys/kern sys/sys usr.sbin/jail

2020-11-18 Thread Mariusz Zaborski
Hello Mateusz, Thank you for pointing out this. I will fix those. Thanks, Mariusz On Wed, 18 Nov 2020 at 22:15, Mateusz Guzik wrote: > > On 11/18/20, Mariusz Zaborski wrote: > > Author: oshogbo > > Date: Wed Nov 18 21:07:08 2020 > > New Revision: 367819 > > U

svn commit: r367819 - in head: sys/kern sys/sys usr.sbin/jail

2020-11-18 Thread Mariusz Zaborski
08 2020(r367819) @@ -3,6 +3,7 @@ * * Copyright (c) 2006 nCircle Network Security, Inc. * Copyright (c) 2009 Robert N. M. Watson + * Copyright (c) 2020 Mariusz Zaborski * All rights reserved. * * This software was developed by Robert N. M. Watson for the TrustedBSD @@ -36,6

svn commit: r367818 - head/sys/kern

2020-11-18 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Nov 18 20:59:58 2020 New Revision: 367818 URL: https://svnweb.freebsd.org/changeset/base/367818 Log: Fix style nits. Modified: head/sys/kern/kern_jail.c head/sys/kern/kern_priv.c Modified: head/sys/kern/kern_jail.c

svn commit: r367487 - head/sys/contrib/openzfs/module/os/freebsd/zfs

2020-11-08 Thread Mariusz Zaborski
Reviewed-by: Brian Behlendorf Signed-off-by: Mariusz Zaborski OpenZFS Pull Request: https://github.com/openzfs/zfs/pull/11152 PR: 250934 Modified: head/sys/contrib/openzfs/module/os/freebsd/zfs/zvol_os.c Modified: head/sys/contrib/openzfs/module/os/freebsd/zfs/zvol_os.c

svn commit: r365382 - head/usr.sbin/traceroute6

2020-09-06 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Sep 6 15:44:09 2020 New Revision: 365382 URL: https://svnweb.freebsd.org/changeset/base/365382 Log: Remove duplicated line. Reported by: lwhsu Modified: head/usr.sbin/traceroute6/Makefile Modified: head/usr.sbin/traceroute6/Makefile

svn commit: r365378 - head/usr.sbin/traceroute6

2020-09-06 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Sep 6 14:04:02 2020 New Revision: 365378 URL: https://svnweb.freebsd.org/changeset/base/365378 Log: traceroute6: capsicumize it Submitted by: Shubh Gupta Sponsored by: Google (GSOC 2020) Differential Revision:https://reviews.freebsd.org/D25604

svn commit: r364355 - in head: stand/efi/loader stand/i386/loader stand/libsa/zfs stand/lua sys/cddl/boot/zfs sys/cddl/contrib/opensolaris/uts/common/fs/zfs sys/cddl/contrib/opensolaris/uts/common/...

2020-08-18 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Aug 18 19:48:04 2020 New Revision: 364355 URL: https://svnweb.freebsd.org/changeset/base/364355 Log: zfs: add an option to the bootloader to rewind the ZFS checkpoint The checkpoints are another way of keeping the state of ZFS. During the rewind, the pool has to

svn commit: r364276 - in head: lib/libcasper/services lib/libcasper/services/cap_dns lib/libcasper/services/cap_net lib/libcasper/services/cap_net/tests share/mk

2020-08-16 Thread Mariusz Zaborski
= --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libcasper/services/cap_net/cap_net.3 Sun Aug 16 18:12:21 2020 (r364276) @@ -0,0 +1,287 @@ +.\" Copyright (c) 2020 Mariusz Zaborski +.\" +.\" Redistribution

svn commit: r359808 - in head/cddl/contrib/opensolaris: cmd/zfs lib/libzfs/common

2020-04-11 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Apr 11 17:54:35 2020 New Revision: 359808 URL: https://svnweb.freebsd.org/changeset/base/359808 Log: zfs: Add option for forcible unmounting dataset while receiving snapshot. Currently when the dataset is in use we can't receive snapshots. zfs send test/1@asd

svn commit: r359807 - head/sbin/decryptcore

2020-04-11 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Apr 11 17:30:33 2020 New Revision: 359807 URL: https://svnweb.freebsd.org/changeset/base/359807 Log: decryptcore: load the nls data Load the nls data before the openssl will try to do it in the capability mode. On my machine the sa_ossl_private_decrypt is

svn commit: r359730 - head/usr.bin/logger

2020-04-08 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Apr 8 18:43:00 2020 New Revision: 359730 URL: https://svnweb.freebsd.org/changeset/base/359730 Log: logger: temporarily disable Capsicum when a host is provided We don't have a way to send a UDP package. PR: 245314 Reported by: dch Discussed

svn commit: r358919 - head/usr.bin/logger

2020-03-12 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Mar 12 19:55:51 2020 New Revision: 358919 URL: https://svnweb.freebsd.org/changeset/base/358919 Log: logger: capsicumize Submitted by: Tiger Gao Sponsored by: The FreeBSD Foundation Differential Revision:https://reviews.freebsd.org/D23744 Modified:

svn commit: r356928 - head/tools/build/mk

2020-01-20 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Jan 20 19:56:22 2020 New Revision: 356928 URL: https://svnweb.freebsd.org/changeset/base/356928 Log: When MK_CASPER=no is set remove files which are not needed to run system. PR: 242971 Modified: head/tools/build/mk/OptionalObsoleteFiles.inc

svn commit: r356926 - head/tools/build/mk

2020-01-20 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Jan 20 19:51:53 2020 New Revision: 356926 URL: https://svnweb.freebsd.org/changeset/base/356926 Log: Even when the MK_CASPER is set to "no" we still want to install man pages and the headers. If the user decides to install the system without Casper support, then

svn commit: r356925 - head/tools/build/mk

2020-01-20 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Jan 20 19:47:58 2020 New Revision: 356925 URL: https://svnweb.freebsd.org/changeset/base/356925 Log: Those files are already removed in ObsoleteFiles.\ There is no need to remove them twice. PR: 242971 MFC after:2 weeks Modified:

svn commit: r356176 - in head: lib/geom/nop sys/geom/nop

2019-12-29 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Dec 29 15:47:37 2019 New Revision: 356176 URL: https://svnweb.freebsd.org/changeset/base/356176 Log: gnop: change the "count until fail" option Change the "count_until_fail" option of gnop, now it enables the failing rating instead of setting them to 100%.

svn commit: r356174 - in head: lib/geom/nop sys/geom/nop

2019-12-29 Thread Mariusz Zaborski
op.c Sun Dec 29 15:39:43 2019(r356173) +++ head/sys/geom/nop/g_nop.c Sun Dec 29 15:40:02 2019(r356174) @@ -2,6 +2,7 @@ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2004-2006 Pawel Jakub Dawidek + * Copyright (c) 2019 Mariusz Zaborski * All rights res

Re: svn commit: r355097 - in head: sys/kern tests/sys/kern

2019-12-08 Thread Mariusz Zaborski
On Mon, 2 Dec 2019 at 18:55, John Baldwin wrote: > > On 11/25/19 10:33 AM, Mariusz Zaborski wrote: > > Author: oshogbo > > Date: Mon Nov 25 18:33:21 2019 > > New Revision: 355097 > > URL: https://svnweb.freebsd.org/changeset/base/355097 > > > > Log: >

svn commit: r355097 - in head: sys/kern tests/sys/kern

2019-11-25 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Nov 25 18:33:21 2019 New Revision: 355097 URL: https://svnweb.freebsd.org/changeset/base/355097 Log: procdesc: allow to collect status through wait(1) if process is traced The debugger like truss(1) depends on the wait(2) syscall. This syscall waits for ALL

Re: svn commit: r352312 - in head: lib/geom/nop sys/geom/nop

2019-11-09 Thread Mariusz Zaborski
Hello Chuck :) I wonder if we shouldn't change this option a bit. Shouldn't we have an option which says more like: ``` Specifies the number of I/O requests to allow before setting the read and write failure rate. ``` In some cases, I don't want to have 100% of failure probabilities, but on the

svn commit: r353107 - head/sys/cddl/dev/dtrace/amd64

2019-10-04 Thread Mariusz Zaborski
Author: oshogbo Date: Fri Oct 4 16:17:00 2019 New Revision: 353107 URL: https://svnweb.freebsd.org/changeset/base/353107 Log: dtrace: 64-bits registers support The registers in ilumos and FreeBSD have a different number. In the illumos, last 32-bits register defined is SS an in FreeBSD

svn commit: r352186 - head/lib/geom/nop

2019-09-10 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Sep 10 20:27:44 2019 New Revision: 352186 URL: https://svnweb.freebsd.org/changeset/base/352186 Log: gnop: Fix initial value for the wdelayprob Reported by: Chuck Silvers Modified: head/lib/geom/nop/geom_nop.c Modified: head/lib/geom/nop/geom_nop.c

Re: svn commit: r346322 - head/lib/libcasper/services/cap_fileargs

2019-09-03 Thread Mariusz Zaborski
open(name, fa->fa_flags, fa->fa_mode) > -#define fileargs_fopen(fa, name, mode) > \ > - fopen(name, mode) > +static inline > +FILE *fileargs_fopen(fileargs_t *fa, const char *name, const char *mode) > +{ > + (void) fa; __unused is not good enough? > + return (

svn commit: r346263 - head/contrib/tcpdump

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Apr 16 04:12:41 2019 New Revision: 346263 URL: https://svnweb.freebsd.org/changeset/base/346263 Log: tcpdump: disable Capsicum if -E option is provided. The -E is used to provide a secret for decrypting IPsec. The secret may be provided through command line or

Re: svn commit: r345875 - in head: contrib/elftoolchain/strings usr.bin/strings

2019-09-03 Thread Mariusz Zaborski
rts the #define to an inline function so > the unused arg can be (void)'ed away. Mind if I commit it? Sounds good to me. Although you don't have an issue with others services? -- Mariusz Zaborski oshogbo//vx | http://oshogbo.vexillium.org FreeBSD committer | https://fr

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

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Apr 15 03:32:01 2019 New Revision: 346219 URL: https://svnweb.freebsd.org/changeset/base/346219 Log: libnv: extend the tests Add cases for sending file descriptors. Submitted by: Mindaugas Rasiukevicius MFC after:2 weeks Modified:

svn commit: r346218 - head/lib/libnv

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Apr 15 03:31:02 2019 New Revision: 346218 URL: https://svnweb.freebsd.org/changeset/base/346218 Log: libnv: add support for nvlist_send()/nvlist_recv() on Linux This may be useful for cross build in the feature. Submitted by: Mindaugas Rasiukevicius MFC

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

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 11 04:24:41 2019 New Revision: 346115 URL: https://svnweb.freebsd.org/changeset/base/346115 Log: The nvlist_report_missing is also used by the cnvlist. It can't be a static one. Reported by: jenkins MFC after:2 weeks Modified:

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

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 11 03:47:53 2019 New Revision: 346112 URL: https://svnweb.freebsd.org/changeset/base/346112 Log: libnv: fix compilation warnings When building libnv without a debug those arguments are no longer used because assertions will be changed to NOP. Submitted

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

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 11 04:21:58 2019 New Revision: 346113 URL: https://svnweb.freebsd.org/changeset/base/346113 Log: libnv: fix compilation warnings When building libnv without a debug those arguments are no longer used because assertions will be changed to NOP. Submitted

svn commit: r346023 - head/usr.bin/strings

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Apr 8 03:35:47 2019 New Revision: 346023 URL: https://svnweb.freebsd.org/changeset/base/346023 Log: strings: disable Casper support while building native-xtools Reported by: Charlie Li Tested by:Charlie Li Modified: head/usr.bin/strings/Makefile

svn commit: r346029 - head/sys/kern

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Apr 8 14:23:52 2019 New Revision: 346029 URL: https://svnweb.freebsd.org/changeset/base/346029 Log: In the unlinkat syscall, the operation is performed on the directory descriptor, not the file descriptor. The file descriptor is used only for verification so do

Re: svn commit: r345982 - in head: include lib/libc/sys sys/cddl/compat/opensolaris/sys sys/compat/cloudabi sys/compat/freebsd32 sys/compat/linux sys/kern sys/sys sys/ufs/ffs

2019-09-03 Thread Mariusz Zaborski
In the https://wiki.freebsd.org/AddingSyscalls we mentions that we need to bump __FreeBSD_version. I confirmed that with Warner. So this was my mistake. Thanks Shawn. -- Mariusz Zaborski oshogbo//vx | http://oshogbo.vexillium.org FreeBSD committer | https://freebsd.org Software

svn commit: r346012 - head/sys/sys

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Apr 7 16:07:41 2019 New Revision: 346012 URL: https://svnweb.freebsd.org/changeset/base/346012 Log: Bump FreeBSD version after r345982. Reported by: Shawn Webb Discussed with: imp, cy, rgrimes Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h

svn commit: r345983 - in head/sys: compat/freebsd32 kern sys

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Apr 6 09:37:10 2019 New Revision: 345983 URL: https://svnweb.freebsd.org/changeset/base/345983 Log: Regen after r345982. Modified: head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c

svn commit: r345984 - head/lib/libutil

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Apr 6 11:24:43 2019 New Revision: 345984 URL: https://svnweb.freebsd.org/changeset/base/345984 Log: Use funlinkat in pidfile to ensure we are removing the right file. Modified: head/lib/libutil/pidfile.c Modified: head/lib/libutil/pidfile.c

svn commit: r345982 - in head: include lib/libc/sys sys/cddl/compat/opensolaris/sys sys/compat/cloudabi sys/compat/freebsd32 sys/compat/linux sys/kern sys/sys sys/ufs/ffs

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Apr 6 09:34:26 2019 New Revision: 345982 URL: https://svnweb.freebsd.org/changeset/base/345982 Log: Introduce funlinkat syscall that always us to check if we are removing the file associated with the given file descriptor. Reviewed by: kib, asomers Reviewed

svn commit: r345875 - in head: contrib/elftoolchain/strings usr.bin/strings

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 4 16:32:27 2019 New Revision: 345875 URL: https://svnweb.freebsd.org/changeset/base/345875 Log: strings: capsicumize it Reviewed by: cem Discussed with: emaste Differential Revision:https://reviews.freebsd.org/D18038 Modified:

svn commit: r345870 - head/tools/build

2019-09-03 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 4 04:14:20 2019 New Revision: 345870 URL: https://svnweb.freebsd.org/changeset/base/345870 Log: Add cap_fileargs.h to -legacy if needed. Reviewed by: arichardson Differential Revision:https://reviews.freebsd.org/D19685 Modified:

svn commit: r350695 - head/lib/libcasper/services/cap_fileargs

2019-08-07 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Aug 7 19:30:33 2019 New Revision: 350695 URL: https://svnweb.freebsd.org/changeset/base/350695 Log: cap_filergs: limit size of the file name The limit of the name in fileargs is twice the size of the MAXPATH. The nvlist will not add an element with the longer

svn commit: r350617 - head/sys/kern

2019-08-05 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Aug 5 20:31:17 2019 New Revision: 350617 URL: https://svnweb.freebsd.org/changeset/base/350617 Log: procdesc: fix the function name I changed name of the function r350429 and forgot to update the r350612 patch. Reported by: jenkins MFC after:1 month

svn commit: r350616 - head/sys/kern

2019-08-05 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Aug 5 20:26:01 2019 New Revision: 350616 URL: https://svnweb.freebsd.org/changeset/base/350616 Log: process: style We don't need to check if the parent is already set. This is done already in the proc_reparent. No functional behaviour changes intended.

svn commit: r350614 - head/sys/kern

2019-08-05 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Aug 5 20:20:14 2019 New Revision: 350614 URL: https://svnweb.freebsd.org/changeset/base/350614 Log: exit1: fix style nits MFC after:1 month Modified: head/sys/kern/kern_exit.c Modified: head/sys/kern/kern_exit.c

svn commit: r350612 - in head: sys/kern tests/sys/kern

2019-08-05 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Aug 5 20:15:46 2019 New Revision: 350612 URL: https://svnweb.freebsd.org/changeset/base/350612 Log: procdesc: fix reparenting when the debugger is attached The process is reparented to the debugger while it is attached. B B / > | A

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

2019-08-05 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Aug 5 20:11:57 2019 New Revision: 350611 URL: https://svnweb.freebsd.org/changeset/base/350611 Log: proc: introduce the proc_add_orphan function This API allows adding the process to its parent orphan list. Reviewed by: kib, markj MFC after:1 month

svn commit: r350610 - head/sys/kern

2019-08-05 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Aug 5 19:59:23 2019 New Revision: 350610 URL: https://svnweb.freebsd.org/changeset/base/350610 Log: exit1: postpone clearing P_TRACED flag until the proctree lock is acquired In case of the process being debugged. The P_TRACED is cleared very early, which would

svn commit: r350482 - head

2019-07-31 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jul 31 19:32:39 2019 New Revision: 350482 URL: https://svnweb.freebsd.org/changeset/base/350482 Log: gnop: add note to the RELNOTES Submitted by: markj Modified: head/RELNOTES Modified: head/RELNOTES

svn commit: r350472 - head/sys/geom/nop

2019-07-31 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jul 31 17:51:06 2019 New Revision: 350472 URL: https://svnweb.freebsd.org/changeset/base/350472 Log: gnop: style nits Modified: head/sys/geom/nop/g_nop.c Modified: head/sys/geom/nop/g_nop.c

svn commit: r350471 - in head: lib/geom/nop sys/geom/nop

2019-07-31 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jul 31 17:47:12 2019 New Revision: 350471 URL: https://svnweb.freebsd.org/changeset/base/350471 Log: gnop: Introduce requests delay. This allows to simulated disk that is responding slowly to the IO requests. Reviewed by: markj, bcr, pjd (previous version)

svn commit: r350438 - head/lib/libcasper/services/cap_fileargs

2019-07-30 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Jul 30 08:53:03 2019 New Revision: 350438 URL: https://svnweb.freebsd.org/changeset/base/350438 Log: fileargs: fix formating in EXAMPLES PR: 239523 Submitted by: mikael.uran...@gmail.com Modified:

svn commit: r350430 - in head: share/man/man9 sys/sys

2019-07-29 Thread Mariusz Zaborski
29 21:53:02 2019(r350430) @@ -0,0 +1,138 @@ +.\" +.\" Copyright (C) 2019 Mariusz Zaborski +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\

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

2019-07-29 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Jul 29 21:42:57 2019 New Revision: 350429 URL: https://svnweb.freebsd.org/changeset/base/350429 Log: proc: make clear_orphan an public API This will be useful for other patches with process descriptors. Change its name as well. Reviewed by: markj, kib

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

2019-07-29 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Jul 29 21:26:26 2019 New Revision: 350428 URL: https://svnweb.freebsd.org/changeset/base/350428 Log: libcasper: remove reference to deprecated system.random Modified: head/lib/libcasper/libcasper/libcasper.3 Modified: head/lib/libcasper/libcasper/libcasper.3

svn commit: r350024 - head/contrib/elftoolchain/strings

2019-07-15 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Jul 16 04:17:25 2019 New Revision: 350024 URL: https://svnweb.freebsd.org/changeset/base/350024 Log: strings: extends rights The libelf is using mmap if it can, if not it was fall backing to read. Reported by: markj Modified:

svn commit: r350022 - head/contrib/elftoolchain/strings

2019-07-15 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Jul 16 03:32:21 2019 New Revision: 350022 URL: https://svnweb.freebsd.org/changeset/base/350022 Log: strings: fix entering to the capability mode Reported by: markj Modified: head/contrib/elftoolchain/strings/strings.c Modified:

svn commit: r349002 - head/lib/libcasper/services/cap_fileargs

2019-06-12 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 12 19:31:26 2019 New Revision: 349002 URL: https://svnweb.freebsd.org/changeset/base/349002 Log: fileargs: add wrapping/unwrapping functions Those function may be useful to pass fileargs connections around. Modified:

svn commit: r349000 - head/sys/geom/eli

2019-06-12 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 12 19:29:12 2019 New Revision: 349000 URL: https://svnweb.freebsd.org/changeset/base/349000 Log: geli: partially revert r348709 Let's change the unsigned arguments to the signed one, but let's don't change pointers to the array notation. Requested by:

svn commit: r349001 - head/sys/geom/eli

2019-06-12 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 12 19:29:48 2019 New Revision: 349001 URL: https://svnweb.freebsd.org/changeset/base/349001 Log: geli: style nits Modified: head/sys/geom/eli/g_eli_hmac.c Modified: head/sys/geom/eli/g_eli_hmac.c

svn commit: r348842 - head/usr.bin/tail

2019-06-09 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Jun 9 22:55:21 2019 New Revision: 348842 URL: https://svnweb.freebsd.org/changeset/base/348842 Log: tail: fix the checks if the file was rotated The freopen(3) was replaced with fileargs_open(3) and fclose(3). In the following function, we skip if the stream is

svn commit: r348841 - head/cddl/usr.sbin/dtrace/tests/amd64

2019-06-09 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Jun 9 22:45:07 2019 New Revision: 348841 URL: https://svnweb.freebsd.org/changeset/base/348841 Log: DTrace: add a top level makefile to the new test suit Pointed out by: markj Added: head/cddl/usr.sbin/dtrace/tests/amd64/Makefile (contents, props

svn commit: r348833 - head/usr.bin/tail

2019-06-09 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Jun 9 11:21:29 2019 New Revision: 348833 URL: https://svnweb.freebsd.org/changeset/base/348833 Log: tail: style nits Modified: head/usr.bin/tail/tail.c Modified: head/usr.bin/tail/tail.c

svn commit: r348711 - head/usr.bin/tail

2019-06-05 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 5 22:55:00 2019 New Revision: 348711 URL: https://svnweb.freebsd.org/changeset/base/348711 Log: tail: disable capsicum in rescue mode All rescue application are not capsicumized. Reported by: jenkins Modified: head/usr.bin/tail/Makefile Modified:

svn commit: r348710 - head/usr.bin/tail

2019-06-05 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 5 22:47:37 2019 New Revision: 348710 URL: https://svnweb.freebsd.org/changeset/base/348710 Log: tail: fix style nit introduced in the r348708 Modified: head/usr.bin/tail/tail.c Modified: head/usr.bin/tail/tail.c

svn commit: r348709 - head/sys/geom/eli

2019-06-05 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 5 22:46:18 2019 New Revision: 348709 URL: https://svnweb.freebsd.org/changeset/base/348709 Log: geli: build warning fixes Submitted by: Aaron Prieger Reviewed by: sbruno Differential Revision:https://reviews.freebsd.org/D11068 Modified:

svn commit: r348708 - head/usr.bin/tail

2019-06-05 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 5 22:40:49 2019 New Revision: 348708 URL: https://svnweb.freebsd.org/changeset/base/348708 Log: tail: capsicumize Submitted by: Nik Sultana Differential Revision:https://reviews.freebsd.org/D20393 Modified: head/usr.bin/tail/Makefile

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

2019-06-05 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 5 22:36:19 2019 New Revision: 348707 URL: https://svnweb.freebsd.org/changeset/base/348707 Log: unlink: add missing function to unlink.2 man page Modified: head/lib/libc/sys/unlink.2 Modified: head/lib/libc/sys/unlink.2

svn commit: r348706 - in head: cddl/contrib/opensolaris/cmd/dtrace/test/tst/amd64 cddl/contrib/opensolaris/cmd/dtrace/test/tst/amd64/arrays cddl/usr.sbin/dtrace/tests cddl/usr.sbin/dtrace/tests/amd...

2019-06-05 Thread Mariusz Zaborski
+ * CDDL HEADER END + */ + +/* + * Copyright (c) 2019 Mariusz Zaborski + * Use is subject to license terms. + */ + +__attribute__((optnone)) void +frax(void) +{ + asm volatile("mov $0x41414141, %%rax" + : : : "rax" + ); +} + +int +main(void) +{ +

svn commit: r348705 - head/sys/cddl/dev/dtrace/amd64

2019-06-05 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Jun 5 22:29:05 2019 New Revision: 348705 URL: https://svnweb.freebsd.org/changeset/base/348705 Log: dtrace: 64-bits registers support The registers in ilumos and FreeBSD have a different number. In the illumos, last 32-bits register defined is SS an in FreeBSD

Re: svn commit: r346322 - head/lib/libcasper/services/cap_fileargs

2019-04-19 Thread Mariusz Zaborski
open(name, fa->fa_flags, fa->fa_mode) > -#define fileargs_fopen(fa, name, mode) > \ > - fopen(name, mode) > +static inline > +FILE *fileargs_fopen(fileargs_t *fa, const char *name, const char *mode) > +{ > + (void) fa; __unused is not good enough? > + return (

svn commit: r346263 - head/contrib/tcpdump

2019-04-15 Thread Mariusz Zaborski
Author: oshogbo Date: Tue Apr 16 04:12:41 2019 New Revision: 346263 URL: https://svnweb.freebsd.org/changeset/base/346263 Log: tcpdump: disable Capsicum if -E option is provided. The -E is used to provide a secret for decrypting IPsec. The secret may be provided through command line or

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

2019-04-14 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Apr 15 03:32:01 2019 New Revision: 346219 URL: https://svnweb.freebsd.org/changeset/base/346219 Log: libnv: extend the tests Add cases for sending file descriptors. Submitted by: Mindaugas Rasiukevicius MFC after:2 weeks Modified:

svn commit: r346218 - head/lib/libnv

2019-04-14 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Apr 15 03:31:02 2019 New Revision: 346218 URL: https://svnweb.freebsd.org/changeset/base/346218 Log: libnv: add support for nvlist_send()/nvlist_recv() on Linux This may be useful for cross build in the feature. Submitted by: Mindaugas Rasiukevicius MFC

Re: svn commit: r345875 - in head: contrib/elftoolchain/strings usr.bin/strings

2019-04-14 Thread Mariusz Zaborski
rts the #define to an inline function so > the unused arg can be (void)'ed away. Mind if I commit it? Sounds good to me. Although you don't have an issue with others services? -- Mariusz Zaborski oshogbo//vx | http://oshogbo.vexillium.org FreeBSD committer | https://fr

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

2019-04-10 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 11 04:24:41 2019 New Revision: 346115 URL: https://svnweb.freebsd.org/changeset/base/346115 Log: The nvlist_report_missing is also used by the cnvlist. It can't be a static one. Reported by: jenkins MFC after:2 weeks Modified:

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

2019-04-10 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 11 04:21:58 2019 New Revision: 346113 URL: https://svnweb.freebsd.org/changeset/base/346113 Log: libnv: fix compilation warnings When building libnv without a debug those arguments are no longer used because assertions will be changed to NOP. Submitted

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

2019-04-10 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 11 03:47:53 2019 New Revision: 346112 URL: https://svnweb.freebsd.org/changeset/base/346112 Log: libnv: fix compilation warnings When building libnv without a debug those arguments are no longer used because assertions will be changed to NOP. Submitted

svn commit: r346029 - head/sys/kern

2019-04-08 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Apr 8 14:23:52 2019 New Revision: 346029 URL: https://svnweb.freebsd.org/changeset/base/346029 Log: In the unlinkat syscall, the operation is performed on the directory descriptor, not the file descriptor. The file descriptor is used only for verification so do

svn commit: r346023 - head/usr.bin/strings

2019-04-07 Thread Mariusz Zaborski
Author: oshogbo Date: Mon Apr 8 03:35:47 2019 New Revision: 346023 URL: https://svnweb.freebsd.org/changeset/base/346023 Log: strings: disable Casper support while building native-xtools Reported by: Charlie Li Tested by:Charlie Li Modified: head/usr.bin/strings/Makefile

Re: svn commit: r345982 - in head: include lib/libc/sys sys/cddl/compat/opensolaris/sys sys/compat/cloudabi sys/compat/freebsd32 sys/compat/linux sys/kern sys/sys sys/ufs/ffs

2019-04-07 Thread Mariusz Zaborski
In the https://wiki.freebsd.org/AddingSyscalls we mentions that we need to bump __FreeBSD_version. I confirmed that with Warner. So this was my mistake. Thanks Shawn. -- Mariusz Zaborski oshogbo//vx | http://oshogbo.vexillium.org FreeBSD committer | https://freebsd.org Software

svn commit: r346012 - head/sys/sys

2019-04-07 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Apr 7 16:07:41 2019 New Revision: 346012 URL: https://svnweb.freebsd.org/changeset/base/346012 Log: Bump FreeBSD version after r345982. Reported by: Shawn Webb Discussed with: imp, cy, rgrimes Modified: head/sys/sys/param.h Modified: head/sys/sys/param.h

svn commit: r345984 - head/lib/libutil

2019-04-06 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Apr 6 11:24:43 2019 New Revision: 345984 URL: https://svnweb.freebsd.org/changeset/base/345984 Log: Use funlinkat in pidfile to ensure we are removing the right file. Modified: head/lib/libutil/pidfile.c Modified: head/lib/libutil/pidfile.c

svn commit: r345983 - in head/sys: compat/freebsd32 kern sys

2019-04-06 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Apr 6 09:37:10 2019 New Revision: 345983 URL: https://svnweb.freebsd.org/changeset/base/345983 Log: Regen after r345982. Modified: head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c

svn commit: r345982 - in head: include lib/libc/sys sys/cddl/compat/opensolaris/sys sys/compat/cloudabi sys/compat/freebsd32 sys/compat/linux sys/kern sys/sys sys/ufs/ffs

2019-04-06 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Apr 6 09:34:26 2019 New Revision: 345982 URL: https://svnweb.freebsd.org/changeset/base/345982 Log: Introduce funlinkat syscall that always us to check if we are removing the file associated with the given file descriptor. Reviewed by: kib, asomers Reviewed

svn commit: r345875 - in head: contrib/elftoolchain/strings usr.bin/strings

2019-04-04 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 4 16:32:27 2019 New Revision: 345875 URL: https://svnweb.freebsd.org/changeset/base/345875 Log: strings: capsicumize it Reviewed by: cem Discussed with: emaste Differential Revision:https://reviews.freebsd.org/D18038 Modified:

svn commit: r345870 - head/tools/build

2019-04-03 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Apr 4 04:14:20 2019 New Revision: 345870 URL: https://svnweb.freebsd.org/changeset/base/345870 Log: Add cap_fileargs.h to -legacy if needed. Reviewed by: arichardson Differential Revision:https://reviews.freebsd.org/D19685 Modified:

svn commit: r345431 - head/contrib/elftoolchain/strings

2019-03-22 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Mar 23 02:17:07 2019 New Revision: 345431 URL: https://svnweb.freebsd.org/changeset/base/345431 Log: strings: return an error code and the char value separately If we returning 32 bits value it's hard to distinguish if the returned value is a valid one or if its

svn commit: r345364 - head/contrib/elftoolchain/strings

2019-03-21 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Mar 21 06:31:14 2019 New Revision: 345364 URL: https://svnweb.freebsd.org/changeset/base/345364 Log: In case of ENCODING_8BIT the EOF code will be pass to putchar. EOF check should be done before (uint8_t)c > 127 test. Reported by: cem Modified:

svn commit: r345362 - head/contrib/elftoolchain/strings

2019-03-21 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Mar 21 06:20:33 2019 New Revision: 345362 URL: https://svnweb.freebsd.org/changeset/base/345362 Log: Fix powerpc and arm builds after r345361. Reported by: jenkins Modified: head/contrib/elftoolchain/strings/strings.c Modified:

svn commit: r345361 - head/contrib/elftoolchain/strings

2019-03-20 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Mar 21 05:24:44 2019 New Revision: 345361 URL: https://svnweb.freebsd.org/changeset/base/345361 Log: strings: do not continue if getc or getcharacter returns EOF Reported by: cem Modified: head/contrib/elftoolchain/strings/strings.c Modified:

svn commit: r345360 - head/contrib/elftoolchain/strings

2019-03-20 Thread Mariusz Zaborski
Author: oshogbo Date: Thu Mar 21 05:00:24 2019 New Revision: 345360 URL: https://svnweb.freebsd.org/changeset/base/345360 Log: strings: do not depend on stdin Instead of depending on one stdin FILE structure and use freopen(3), pass to the functions appropriate FILE structure.

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

2019-02-17 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Feb 17 18:32:19 2019 New Revision: 344236 URL: https://svnweb.freebsd.org/changeset/base/344236 Log: libnv: fix revert Reported by: jenkins Modified: head/sys/contrib/libnv/nvpair.c Modified: head/sys/contrib/libnv/nvpair.c

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

2019-02-17 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Feb 17 18:26:27 2019 New Revision: 344235 URL: https://svnweb.freebsd.org/changeset/base/344235 Log: libnv: fix double free In r343986 we introduced a double free. The structure was already freed fixed in the r302966. This problem was introduced because the

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

2019-02-10 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Feb 10 23:30:54 2019 New Revision: 343987 URL: https://svnweb.freebsd.org/changeset/base/343987 Log: libnv: fix memory leaks Free the data array for NV_TYPE_DESCRIPTOR_ARRAY case. MFC after:2 weeks Modified: head/sys/contrib/libnv/nvpair.c Modified:

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

2019-02-10 Thread Mariusz Zaborski
Author: oshogbo Date: Sun Feb 10 23:28:55 2019 New Revision: 343986 URL: https://svnweb.freebsd.org/changeset/base/343986 Log: libnv: fix memory leaks nvpair_create_stringv: free the temporary string; this fix affects nvlist_add_stringf() and nvlist_add_stringv().

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

2019-01-26 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jan 26 14:10:49 2019 New Revision: 343471 URL: https://svnweb.freebsd.org/changeset/base/343471 Log: libcasper: do not run registered exit functions Casper library should not use exit(3) function because before setting it up applications may register it. Casper

svn commit: r343470 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2019-01-26 Thread Mariusz Zaborski
Author: oshogbo Date: Sat Jan 26 13:53:00 2019 New Revision: 343470 URL: https://svnweb.freebsd.org/changeset/base/343470 Log: zfs: allow to change cache flush sysctl There is no reason for this variable to be tunable. This variable is used as a barrier in few places. Discussed

svn commit: r342001 - head/lib/libcapsicum

2018-12-12 Thread Mariusz Zaborski
Author: oshogbo Date: Wed Dec 12 20:32:17 2018 New Revision: 342001 URL: https://svnweb.freebsd.org/changeset/base/342001 Log: libcapsicum: add missing links Reported by: manu Modified: head/lib/libcapsicum/Makefile Modified: head/lib/libcapsicum/Makefile

svn commit: r341348 - in head/usr.sbin: ctld iscsid

2018-11-30 Thread Mariusz Zaborski
Author: oshogbo Date: Fri Nov 30 19:40:16 2018 New Revision: 341348 URL: https://svnweb.freebsd.org/changeset/base/341348 Log: iscsi: simplify the capsicumization Approved by: trasz Differential Revision:https://reviews.freebsd.org/D17962 Modified: head/usr.sbin/ctld/kernel.c

svn commit: r341347 - head/lib/libcasper/services/cap_fileargs

2018-11-30 Thread Mariusz Zaborski
Author: oshogbo Date: Fri Nov 30 19:27:14 2018 New Revision: 341347 URL: https://svnweb.freebsd.org/changeset/base/341347 Log: libcasper: do not fail if Capsicum is not avilable Casper service can be also used on the kernels without Capsicum support. Reported by: sbruno Tested by:

  1   2   3   4   >