Lines Matching full:label

63 static struct label *
66 struct label *label; in mac_sysv_msgmsg_label_alloc() local
68 label = mac_labelzone_alloc(M_WAITOK); in mac_sysv_msgmsg_label_alloc()
69 MAC_POLICY_PERFORM(sysvmsg_init_label, label); in mac_sysv_msgmsg_label_alloc()
70 return (label); in mac_sysv_msgmsg_label_alloc()
78 msgptr->label = mac_sysv_msgmsg_label_alloc(); in mac_sysvmsg_init()
80 msgptr->label = NULL; in mac_sysvmsg_init()
83 static struct label *
86 struct label *label; in mac_sysv_msgqueue_label_alloc() local
88 label = mac_labelzone_alloc(M_WAITOK); in mac_sysv_msgqueue_label_alloc()
89 MAC_POLICY_PERFORM(sysvmsq_init_label, label); in mac_sysv_msgqueue_label_alloc()
90 return (label); in mac_sysv_msgqueue_label_alloc()
98 msqkptr->label = mac_sysv_msgqueue_label_alloc(); in mac_sysvmsq_init()
100 msqkptr->label = NULL; in mac_sysvmsq_init()
104 mac_sysv_msgmsg_label_free(struct label *label) in mac_sysv_msgmsg_label_free() argument
107 MAC_POLICY_PERFORM_NOSLEEP(sysvmsg_destroy_label, label); in mac_sysv_msgmsg_label_free()
108 mac_labelzone_free(label); in mac_sysv_msgmsg_label_free()
115 if (msgptr->label != NULL) { in mac_sysvmsg_destroy()
116 mac_sysv_msgmsg_label_free(msgptr->label); in mac_sysvmsg_destroy()
117 msgptr->label = NULL; in mac_sysvmsg_destroy()
122 mac_sysv_msgqueue_label_free(struct label *label) in mac_sysv_msgqueue_label_free() argument
125 MAC_POLICY_PERFORM_NOSLEEP(sysvmsq_destroy_label, label); in mac_sysv_msgqueue_label_free()
126 mac_labelzone_free(label); in mac_sysv_msgqueue_label_free()
133 if (msqkptr->label != NULL) { in mac_sysvmsq_destroy()
134 mac_sysv_msgqueue_label_free(msqkptr->label); in mac_sysvmsq_destroy()
135 msqkptr->label = NULL; in mac_sysvmsq_destroy()
145 msqkptr->label, msgptr, msgptr->label); in mac_sysvmsg_create()
153 msqkptr->label); in mac_sysvmsq_create()
160 MAC_POLICY_PERFORM_NOSLEEP(sysvmsg_cleanup, msgptr->label); in mac_sysvmsg_cleanup()
167 MAC_POLICY_PERFORM_NOSLEEP(sysvmsq_cleanup, msqkptr->label); in mac_sysvmsq_cleanup()
180 msgptr->label, msqkptr, msqkptr->label); in mac_sysvmsq_check_msgmsq()
195 msgptr->label); in mac_sysvmsq_check_msgrcv()
210 msgptr->label); in mac_sysvmsq_check_msgrmid()
225 msqkptr->label); in mac_sysvmsq_check_msqget()
240 msqkptr->label); in mac_sysvmsq_check_msqsnd()
255 msqkptr->label); in mac_sysvmsq_check_msqrcv()
271 msqkptr->label, cmd); in mac_sysvmsq_check_msqctl()