| 96 | } |
| 97 | |
| 98 | int |
| 99 | mac_inpcb_init(struct inpcb *inp, int flag) |
| 100 | { |
| 101 | |
| 102 | if (mac_labeled & MPC_OBJECT_INPCB) { |
| 103 | inp->inp_label = mac_inpcb_label_alloc(flag); |
| 104 | if (inp->inp_label == NULL) |
| 105 | return (ENOMEM); |
| 106 | } else |
| 107 | inp->inp_label = NULL; |
| 108 | return (0); |
| 109 | } |
| 110 | |
| 111 | static struct label * |
| 112 | mac_ipq_label_alloc(int flag) |
no test coverage detected