From owner-svn-src-head@FreeBSD.ORG Sun Mar 16 11:04:52 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3724B252; Sun, 16 Mar 2014 11:04:52 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 204B9A8F; Sun, 16 Mar 2014 11:04:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2GB4qmA020450; Sun, 16 Mar 2014 11:04:52 GMT (envelope-from rwatson@svn.freebsd.org) Received: (from rwatson@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2GB4jgP020411; Sun, 16 Mar 2014 11:04:45 GMT (envelope-from rwatson@svn.freebsd.org) Message-Id: <201403161104.s2GB4jgP020411@svn.freebsd.org> From: Robert Watson Date: Sun, 16 Mar 2014 11:04:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r263234 - in head: contrib/tcpdump crypto/openssh lib/libc/gen lib/libcasper lib/libprocstat sbin/casperd sbin/dhclient sbin/hastd sbin/ping tools/regression/capsicum/libcapsicum tools/... X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2014 11:04:52 -0000 Author: rwatson Date: Sun Mar 16 11:04:44 2014 New Revision: 263234 URL: http://svnweb.freebsd.org/changeset/base/263234 Log: Update most userspace consumers of capability.h to use capsicum.h instead. auditdistd is not updated as I will make the change upstream and then do a vendor import sometime in the next week or two. MFC after: 3 weeks Modified: head/contrib/tcpdump/tcpdump.c head/crypto/openssh/sandbox-capsicum.c head/lib/libc/gen/cap_sandboxed.c head/lib/libcasper/libcasper.c head/lib/libprocstat/libprocstat.c head/sbin/casperd/casperd.c head/sbin/casperd/zygote.c head/sbin/dhclient/bpf.c head/sbin/dhclient/dhclient.c head/sbin/hastd/subr.c head/sbin/ping/ping.c head/tools/regression/capsicum/libcapsicum/dns.c head/tools/regression/capsicum/libcapsicum/grp.c head/tools/regression/capsicum/libcapsicum/pwd.c head/tools/regression/capsicum/libcapsicum/sysctl.c head/tools/regression/capsicum/syscalls/cap_fcntls_limit.c head/tools/regression/capsicum/syscalls/cap_getmode.c head/tools/regression/capsicum/syscalls/cap_ioctls_limit.c head/tools/regression/security/cap_test/cap_test_capabilities.c head/tools/regression/security/cap_test/cap_test_capmode.c head/tools/regression/security/cap_test/cap_test_fcntl.c head/tools/regression/security/cap_test/cap_test_pdfork.c head/tools/regression/security/cap_test/cap_test_pdkill.c head/tools/regression/security/cap_test/cap_test_relative.c head/tools/regression/security/cap_test/cap_test_sysctl.c head/usr.bin/kdump/kdump.c head/usr.bin/kdump/mksubr head/usr.bin/procstat/procstat_files.c head/usr.bin/rwho/rwho.c head/usr.bin/uniq/uniq.c head/usr.sbin/ctld/kernel.c head/usr.sbin/iscsid/iscsid.c head/usr.sbin/rwhod/rwhod.c Modified: head/contrib/tcpdump/tcpdump.c ============================================================================== --- head/contrib/tcpdump/tcpdump.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/contrib/tcpdump/tcpdump.c Sun Mar 16 11:04:44 2014 (r263234) @@ -69,7 +69,7 @@ extern int SIZE_BUF; #include #include #ifdef __FreeBSD__ -#include +#include #include #include #include Modified: head/crypto/openssh/sandbox-capsicum.c ============================================================================== --- head/crypto/openssh/sandbox-capsicum.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/crypto/openssh/sandbox-capsicum.c Sun Mar 16 11:04:44 2014 (r263234) @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #include Modified: head/lib/libc/gen/cap_sandboxed.c ============================================================================== --- head/lib/libc/gen/cap_sandboxed.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/lib/libc/gen/cap_sandboxed.c Sun Mar 16 11:04:44 2014 (r263234) @@ -30,7 +30,7 @@ #include __FBSDID("$FreeBSD$"); -#include +#include #include #include Modified: head/lib/libcasper/libcasper.c ============================================================================== --- head/lib/libcasper/libcasper.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/lib/libcasper/libcasper.c Sun Mar 16 11:04:44 2014 (r263234) @@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include #include Modified: head/lib/libprocstat/libprocstat.c ============================================================================== --- head/lib/libprocstat/libprocstat.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/lib/libprocstat/libprocstat.c Sun Mar 16 11:04:44 2014 (r263234) @@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include +#include #define _KERNEL #include #include Modified: head/sbin/casperd/casperd.c ============================================================================== --- head/sbin/casperd/casperd.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/sbin/casperd/casperd.c Sun Mar 16 11:04:44 2014 (r263234) @@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include #include Modified: head/sbin/casperd/zygote.c ============================================================================== --- head/sbin/casperd/zygote.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/sbin/casperd/zygote.c Sun Mar 16 11:04:44 2014 (r263234) @@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include Modified: head/sbin/dhclient/bpf.c ============================================================================== --- head/sbin/dhclient/bpf.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/sbin/dhclient/bpf.c Sun Mar 16 11:04:44 2014 (r263234) @@ -43,11 +43,11 @@ #include __FBSDID("$FreeBSD$"); -#include +#include #include "dhcpd.h" #include "privsep.h" -#include +#include #include #include Modified: head/sbin/dhclient/dhclient.c ============================================================================== --- head/sbin/dhclient/dhclient.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/sbin/dhclient/dhclient.c Sun Mar 16 11:04:44 2014 (r263234) @@ -56,12 +56,12 @@ #include __FBSDID("$FreeBSD$"); -#include +#include #include "dhcpd.h" #include "privsep.h" -#include +#include #include Modified: head/sbin/hastd/subr.c ============================================================================== --- head/sbin/hastd/subr.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/sbin/hastd/subr.c Sun Mar 16 11:04:44 2014 (r263234) @@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$"); #include #include #ifdef HAVE_CAPSICUM -#include +#include #include #endif Modified: head/sbin/ping/ping.c ============================================================================== --- head/sbin/ping/ping.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/sbin/ping/ping.c Sun Mar 16 11:04:44 2014 (r263234) @@ -63,7 +63,7 @@ __FBSDID("$FreeBSD$"); */ #include /* NB: we rely on this for */ -#include +#include #include #include #include Modified: head/tools/regression/capsicum/libcapsicum/dns.c ============================================================================== --- head/tools/regression/capsicum/libcapsicum/dns.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/capsicum/libcapsicum/dns.c Sun Mar 16 11:04:44 2014 (r263234) @@ -30,7 +30,7 @@ #include __FBSDID("$FreeBSD$"); -#include +#include #include #include Modified: head/tools/regression/capsicum/libcapsicum/grp.c ============================================================================== --- head/tools/regression/capsicum/libcapsicum/grp.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/capsicum/libcapsicum/grp.c Sun Mar 16 11:04:44 2014 (r263234) @@ -30,7 +30,7 @@ #include __FBSDID("$FreeBSD$"); -#include +#include #include #include Modified: head/tools/regression/capsicum/libcapsicum/pwd.c ============================================================================== --- head/tools/regression/capsicum/libcapsicum/pwd.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/capsicum/libcapsicum/pwd.c Sun Mar 16 11:04:44 2014 (r263234) @@ -30,7 +30,7 @@ #include __FBSDID("$FreeBSD$"); -#include +#include #include #include Modified: head/tools/regression/capsicum/libcapsicum/sysctl.c ============================================================================== --- head/tools/regression/capsicum/libcapsicum/sysctl.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/capsicum/libcapsicum/sysctl.c Sun Mar 16 11:04:44 2014 (r263234) @@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include Modified: head/tools/regression/capsicum/syscalls/cap_fcntls_limit.c ============================================================================== --- head/tools/regression/capsicum/syscalls/cap_fcntls_limit.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/capsicum/syscalls/cap_fcntls_limit.c Sun Mar 16 11:04:44 2014 (r263234) @@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include #include Modified: head/tools/regression/capsicum/syscalls/cap_getmode.c ============================================================================== --- head/tools/regression/capsicum/syscalls/cap_getmode.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/capsicum/syscalls/cap_getmode.c Sun Mar 16 11:04:44 2014 (r263234) @@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include Modified: head/tools/regression/capsicum/syscalls/cap_ioctls_limit.c ============================================================================== --- head/tools/regression/capsicum/syscalls/cap_ioctls_limit.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/capsicum/syscalls/cap_ioctls_limit.c Sun Mar 16 11:04:44 2014 (r263234) @@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include #include Modified: head/tools/regression/security/cap_test/cap_test_capabilities.c ============================================================================== --- head/tools/regression/security/cap_test/cap_test_capabilities.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/security/cap_test/cap_test_capabilities.c Sun Mar 16 11:04:44 2014 (r263234) @@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include #include Modified: head/tools/regression/security/cap_test/cap_test_capmode.c ============================================================================== --- head/tools/regression/security/cap_test/cap_test_capmode.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/security/cap_test/cap_test_capmode.c Sun Mar 16 11:04:44 2014 (r263234) @@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include #include Modified: head/tools/regression/security/cap_test/cap_test_fcntl.c ============================================================================== --- head/tools/regression/security/cap_test/cap_test_fcntl.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/security/cap_test/cap_test_fcntl.c Sun Mar 16 11:04:44 2014 (r263234) @@ -33,7 +33,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include #include Modified: head/tools/regression/security/cap_test/cap_test_pdfork.c ============================================================================== --- head/tools/regression/security/cap_test/cap_test_pdfork.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/security/cap_test/cap_test_pdfork.c Sun Mar 16 11:04:44 2014 (r263234) @@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include #include Modified: head/tools/regression/security/cap_test/cap_test_pdkill.c ============================================================================== --- head/tools/regression/security/cap_test/cap_test_pdkill.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/security/cap_test/cap_test_pdkill.c Sun Mar 16 11:04:44 2014 (r263234) @@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include #include Modified: head/tools/regression/security/cap_test/cap_test_relative.c ============================================================================== --- head/tools/regression/security/cap_test/cap_test_relative.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/security/cap_test/cap_test_relative.c Sun Mar 16 11:04:44 2014 (r263234) @@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include Modified: head/tools/regression/security/cap_test/cap_test_sysctl.c ============================================================================== --- head/tools/regression/security/cap_test/cap_test_sysctl.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/tools/regression/security/cap_test/cap_test_sysctl.c Sun Mar 16 11:04:44 2014 (r263234) @@ -35,7 +35,7 @@ __FBSDID("$FreeBSD$"); #include -#include +#include #include #include #include Modified: head/usr.bin/kdump/kdump.c ============================================================================== --- head/usr.bin/kdump/kdump.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/usr.bin/kdump/kdump.c Sun Mar 16 11:04:44 2014 (r263234) @@ -46,7 +46,7 @@ extern int errno; #include #undef _KERNEL #include -#include +#include #include #define _KERNEL #include Modified: head/usr.bin/kdump/mksubr ============================================================================== --- head/usr.bin/kdump/mksubr Sun Mar 16 10:55:57 2014 (r263233) +++ head/usr.bin/kdump/mksubr Sun Mar 16 11:04:44 2014 (r263234) @@ -187,7 +187,7 @@ cat <<_EOF_ #include #include #include -#include +#include #include #include @@ -448,7 +448,7 @@ _EOF_ auto_or_type "accessmodename" "[A-Z]_OK[[:space:]]+0?x?[0-9A-Fa-f]+" "sys/unistd.h" auto_switch_type "acltypename" "ACL_TYPE_[A-Z4_]+[[:space:]]+0x[0-9]+" "sys/acl.h" -auto_or_type "capfcntlname" "CAP_FCNTL_[A-Z]+[[:space:]]+\(1" "sys/capability.h" +auto_or_type "capfcntlname" "CAP_FCNTL_[A-Z]+[[:space:]]+\(1" "sys/capsicum.h" auto_switch_type "extattrctlname" "EXTATTR_NAMESPACE_[A-Z]+[[:space:]]+0x[0-9]+" "sys/extattr.h" auto_switch_type "fadvisebehavname" "POSIX_FADV_[A-Z]+[[:space:]]+[0-9]+" "sys/fcntl.h" auto_or_type "flagsname" "O_[A-Z]+[[:space:]]+0x[0-9A-Fa-f]+" "sys/fcntl.h" @@ -679,7 +679,7 @@ cat <<_EOF_ _EOF_ egrep '#define[[:space:]]+CAP_[A-Z_]+[[:space:]]+CAPRIGHT\([0-9],[[:space:]]+0x[0-9]{16}ULL\)' \ - $include_dir/sys/capability.h | \ + $include_dir/sys/capsicum.h | \ sed -E 's/[ ]+/ /g' | \ awk -F '[ \(,\)]' ' BEGIN { Modified: head/usr.bin/procstat/procstat_files.c ============================================================================== --- head/usr.bin/procstat/procstat_files.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/usr.bin/procstat/procstat_files.c Sun Mar 16 11:04:44 2014 (r263234) @@ -27,7 +27,7 @@ */ #include -#include +#include #include #include #include Modified: head/usr.bin/rwho/rwho.c ============================================================================== --- head/usr.bin/rwho/rwho.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/usr.bin/rwho/rwho.c Sun Mar 16 11:04:44 2014 (r263234) @@ -43,7 +43,7 @@ static char sccsid[] = "@(#)rwho.c 8.1 ( #include __FBSDID("$FreeBSD$"); -#include +#include #include #include Modified: head/usr.bin/uniq/uniq.c ============================================================================== --- head/usr.bin/uniq/uniq.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/usr.bin/uniq/uniq.c Sun Mar 16 11:04:44 2014 (r263234) @@ -44,7 +44,7 @@ static const char rcsid[] = "$FreeBSD$"; #endif /* not lint */ -#include +#include #include #include Modified: head/usr.sbin/ctld/kernel.c ============================================================================== --- head/usr.sbin/ctld/kernel.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/usr.sbin/ctld/kernel.c Sun Mar 16 11:04:44 2014 (r263234) @@ -43,7 +43,7 @@ #include #include #include -#include +#include #include #include #include Modified: head/usr.sbin/iscsid/iscsid.c ============================================================================== --- head/usr.sbin/iscsid/iscsid.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/usr.sbin/iscsid/iscsid.c Sun Mar 16 11:04:44 2014 (r263234) @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include #include Modified: head/usr.sbin/rwhod/rwhod.c ============================================================================== --- head/usr.sbin/rwhod/rwhod.c Sun Mar 16 10:55:57 2014 (r263233) +++ head/usr.sbin/rwhod/rwhod.c Sun Mar 16 11:04:44 2014 (r263234) @@ -43,7 +43,7 @@ static char sccsid[] = "@(#)rwhod.c 8.1 #include __FBSDID("$FreeBSD$"); -#include +#include #include #include #include