Teach kdump(1) to decode capability bitmasks.
MFC after: 3 weeks
This commit is contained in:
parent
6eaa54110b
commit
515dfc239d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226159
@ -979,6 +979,13 @@ ktrsyscall(struct ktr_syscall *ktr, u_int flags)
|
||||
ip++;
|
||||
narg--;
|
||||
break;
|
||||
case SYS_cap_new:
|
||||
print_number(ip, narg, c);
|
||||
putchar(',');
|
||||
capname((intmax_t)*ip);
|
||||
ip++;
|
||||
narg--;
|
||||
break;
|
||||
}
|
||||
}
|
||||
while (narg > 0) {
|
||||
|
@ -186,6 +186,7 @@ cat <<_EOF_
|
||||
#include <sys/shm.h>
|
||||
#include <nfsserver/nfs.h>
|
||||
#include <ufs/ufs/quota.h>
|
||||
#include <sys/capability.h>
|
||||
|
||||
#include "kdump_subr.h"
|
||||
|
||||
@ -337,6 +338,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 "capname" "CAP_[A-Z]+[[:space:]]+0x[01248]{16}ULL" "sys/capability.h"
|
||||
auto_switch_type "extattrctlname" "EXTATTR_NAMESPACE_[A-Z]+[[:space:]]+0x[0-9]+" "sys/extattr.h"
|
||||
auto_or_type "flagsname" "O_[A-Z]+[[:space:]]+0x[0-9A-Fa-f]+" "sys/fcntl.h"
|
||||
auto_or_type "flockname" "LOCK_[A-Z]+[[:space:]]+0x[0-9]+" "sys/fcntl.h"
|
||||
|
Loading…
Reference in New Issue
Block a user