| 180 | } |
| 181 | |
| 182 | int |
| 183 | cap_check_failed_notcapable(const cap_rights_t *havep, const cap_rights_t *needp) |
| 184 | { |
| 185 | |
| 186 | #ifdef KTRACE |
| 187 | if (KTRPOINT(curthread, KTR_CAPFAIL)) |
| 188 | ktrcapfail(CAPFAIL_NOTCAPABLE, needp, havep); |
| 189 | #endif |
| 190 | return (ENOTCAPABLE); |
| 191 | } |
| 192 | |
| 193 | /* |
| 194 | * Convert capability rights into VM access flags. |
no test coverage detected