Lines Matching defs:cred
108 partition_cred_check_relabel(struct ucred *cred, struct label *newlabel)
128 error = priv_check_cred(cred, PRIV_MAC_PARTITION);
155 partition_cred_create_init(struct ucred *cred)
158 SLOT_SET(cred->cr_label, 0);
162 partition_cred_create_swapper(struct ucred *cred)
165 SLOT_SET(cred->cr_label, 0);
216 partition_cred_relabel(struct ucred *cred, struct label *newlabel)
220 SLOT_SET(cred->cr_label, SLOT(newlabel));
224 partition_inpcb_check_visible(struct ucred *cred, struct inpcb *inp,
229 error = partition_check(cred->cr_label, inp->inp_cred->cr_label);
235 partition_proc_check_debug(struct ucred *cred, struct proc *p)
239 error = partition_check(cred->cr_label, p->p_ucred->cr_label);
245 partition_proc_check_sched(struct ucred *cred, struct proc *p)
249 error = partition_check(cred->cr_label, p->p_ucred->cr_label);
255 partition_proc_check_signal(struct ucred *cred, struct proc *p,
260 error = partition_check(cred->cr_label, p->p_ucred->cr_label);
266 partition_socket_check_visible(struct ucred *cred, struct socket *so,
271 error = partition_check(cred->cr_label, so->so_cred->cr_label);
277 partition_vnode_check_exec(struct ucred *cred, struct vnode *vp,