Lines Matching refs:label

65 static struct label *
68 struct label *label; in mac_sysv_msgmsg_label_alloc() local
70 label = mac_labelzone_alloc(M_WAITOK); in mac_sysv_msgmsg_label_alloc()
71 MAC_POLICY_PERFORM(sysvmsg_init_label, label); in mac_sysv_msgmsg_label_alloc()
72 return (label); in mac_sysv_msgmsg_label_alloc()
80 msgptr->label = mac_sysv_msgmsg_label_alloc(); in mac_sysvmsg_init()
82 msgptr->label = NULL; in mac_sysvmsg_init()
85 static struct label *
88 struct label *label; in mac_sysv_msgqueue_label_alloc() local
90 label = mac_labelzone_alloc(M_WAITOK); in mac_sysv_msgqueue_label_alloc()
91 MAC_POLICY_PERFORM(sysvmsq_init_label, label); in mac_sysv_msgqueue_label_alloc()
92 return (label); in mac_sysv_msgqueue_label_alloc()
100 msqkptr->label = mac_sysv_msgqueue_label_alloc(); in mac_sysvmsq_init()
102 msqkptr->label = NULL; in mac_sysvmsq_init()
106 mac_sysv_msgmsg_label_free(struct label *label) in mac_sysv_msgmsg_label_free() argument
109 MAC_POLICY_PERFORM_NOSLEEP(sysvmsg_destroy_label, label); in mac_sysv_msgmsg_label_free()
110 mac_labelzone_free(label); in mac_sysv_msgmsg_label_free()
117 if (msgptr->label != NULL) { in mac_sysvmsg_destroy()
118 mac_sysv_msgmsg_label_free(msgptr->label); in mac_sysvmsg_destroy()
119 msgptr->label = NULL; in mac_sysvmsg_destroy()
124 mac_sysv_msgqueue_label_free(struct label *label) in mac_sysv_msgqueue_label_free() argument
127 MAC_POLICY_PERFORM_NOSLEEP(sysvmsq_destroy_label, label); in mac_sysv_msgqueue_label_free()
128 mac_labelzone_free(label); in mac_sysv_msgqueue_label_free()
135 if (msqkptr->label != NULL) { in mac_sysvmsq_destroy()
136 mac_sysv_msgqueue_label_free(msqkptr->label); in mac_sysvmsq_destroy()
137 msqkptr->label = NULL; in mac_sysvmsq_destroy()
147 msqkptr->label, msgptr, msgptr->label); in mac_sysvmsg_create()
155 msqkptr->label); in mac_sysvmsq_create()
162 MAC_POLICY_PERFORM_NOSLEEP(sysvmsg_cleanup, msgptr->label); in mac_sysvmsg_cleanup()
169 MAC_POLICY_PERFORM_NOSLEEP(sysvmsq_cleanup, msqkptr->label); in mac_sysvmsq_cleanup()
182 msgptr->label, msqkptr, msqkptr->label); in mac_sysvmsq_check_msgmsq()
197 msgptr->label); in mac_sysvmsq_check_msgrcv()
212 msgptr->label); in mac_sysvmsq_check_msgrmid()
227 msqkptr->label); in mac_sysvmsq_check_msqget()
242 msqkptr->label); in mac_sysvmsq_check_msqsnd()
257 msqkptr->label); in mac_sysvmsq_check_msqrcv()
273 msqkptr->label, cmd); in mac_sysvmsq_check_msqctl()