kdump.c (81a31394221ea696e1602cec805fc34bf79bc803) kdump.c (e141be6f79f0cbfa36dd284c5a2528a566d809f9)
1/*-
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1578 unchanged lines hidden (view full) ---

1587 return;
1588invalid:
1589 printf("invalid record\n");
1590}
1591
1592void
1593ktrcapfail(struct ktr_cap_fail *ktr)
1594{
1/*-
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1578 unchanged lines hidden (view full) ---

1587 return;
1588invalid:
1589 printf("invalid record\n");
1590}
1591
1592void
1593ktrcapfail(struct ktr_cap_fail *ktr)
1594{
1595 printf("needed ");
1596 capname((intmax_t)ktr->cap_needed);
1597 printf(" held ");
1598 capname((intmax_t)ktr->cap_held);
1595 switch (ktr->cap_type) {
1596 case CAPFAIL_NOTCAPABLE:
1597 /* operation on fd with insufficient capabilities */
1598 printf("operation requires ");
1599 capname((intmax_t)ktr->cap_needed);
1600 printf(", process holds ");
1601 capname((intmax_t)ktr->cap_held);
1602 break;
1603 case CAPFAIL_INCREASE:
1604 /* requested more capabilities than fd already has */
1605 printf("attempt to increase capabilities from ");
1606 capname((intmax_t)ktr->cap_needed);
1607 printf(" to ");
1608 capname((intmax_t)ktr->cap_held);
1609 break;
1610 case CAPFAIL_SYSCALL:
1611 /* called restricted syscall */
1612 printf("disallowed system call");
1613 break;
1614 case CAPFAIL_LOOKUP:
1615 /* used ".." in strict-relative mode */
1616 printf("restricted VFS lookup");
1617 break;
1618 default:
1619 printf("unknown capability failure: ");
1620 capname((intmax_t)ktr->cap_needed);
1621 printf(" ");
1622 capname((intmax_t)ktr->cap_held);
1623 break;
1624 }
1599}
1600
1601#if defined(__amd64__) || defined(__i386__)
1602void
1603linux_ktrsyscall(struct ktr_syscall *ktr)
1604{
1605 int narg = ktr->ktr_narg;
1606 register_t *ip;

--- 62 unchanged lines hidden ---
1625}
1626
1627#if defined(__amd64__) || defined(__i386__)
1628void
1629linux_ktrsyscall(struct ktr_syscall *ktr)
1630{
1631 int narg = ktr->ktr_narg;
1632 register_t *ip;

--- 62 unchanged lines hidden ---