Changeset View
Changeset View
Standalone View
Standalone View
sys/security/mac_bsdextended/mac_bsdextended.c
Show First 20 Lines • Show All 451 Lines • ▼ Show 20 Lines | |||||
int | int | ||||
ugidfw_check_vp(struct ucred *cred, struct vnode *vp, int acc_mode) | ugidfw_check_vp(struct ucred *cred, struct vnode *vp, int acc_mode) | ||||
{ | { | ||||
int error; | int error; | ||||
struct vattr vap; | struct vattr vap; | ||||
if (!ugidfw_enabled) | if (!ugidfw_enabled) | ||||
return (0); | return (0); | ||||
error = VOP_GETATTR(vp, &vap, cred); | error = VOP_GETATTR(vp, 0, &vap, cred); | ||||
if (error) | if (error) | ||||
return (error); | return (error); | ||||
return (ugidfw_check(cred, vp, &vap, acc_mode)); | return (ugidfw_check(cred, vp, &vap, acc_mode)); | ||||
} | } | ||||
int | int | ||||
ugidfw_accmode2mbi(accmode_t accmode) | ugidfw_accmode2mbi(accmode_t accmode) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |