summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump/mksubr
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2015-03-19 12:32:48 +0000
committerrwatson <rwatson@FreeBSD.org>2015-03-19 12:32:48 +0000
commitbcbbcda0f2e4af8b9dd5b88b8aee78fb712e107e (patch)
treee5b4ae536a72fe4a7a095f75635897247049ed5f /usr.bin/kdump/mksubr
parentb9b03fb7e3cdf29ad38ea78cca31b5416c7ad569 (diff)
downloadFreeBSD-src-bcbbcda0f2e4af8b9dd5b88b8aee78fb712e107e.zip
FreeBSD-src-bcbbcda0f2e4af8b9dd5b88b8aee78fb712e107e.tar.gz
Merge an applicable subset of r263234 from HEAD to stable/10:
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. Note that a significant fraction does not apply, as FreeBSD 10 doesn't contain a Capsicumised ping, casperd, libcasper, etc. When these features are merged, the capsicum.h change will need to be merged with them. Sponsored by: Google, Inc.
Diffstat (limited to 'usr.bin/kdump/mksubr')
-rw-r--r--usr.bin/kdump/mksubr6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr
index c026d2a..f5b9132 100644
--- a/usr.bin/kdump/mksubr
+++ b/usr.bin/kdump/mksubr
@@ -190,7 +190,7 @@ cat <<_EOF_
#include <sys/umtx.h>
#include <nfsserver/nfs.h>
#include <ufs/ufs/quota.h>
-#include <sys/capability.h>
+#include <sys/capsicum.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
@@ -451,7 +451,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"
@@ -739,7 +739,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 {
OpenPOWER on IntegriCloud