diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2005-04-18 13:36:57 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2005-04-18 13:36:57 +0000 |
| commit | babe9a2bb37a1c0a1e87cbe5c3ce5fd40c70d990 (patch) | |
| tree | edb79f235bf4b33075b9d7e39ce462e142125e48 /sys/security/mac/mac_process.c | |
| parent | da833457ebe3d1ce020fe98888e70ac5cb278f5d (diff) | |
Notes
Diffstat (limited to 'sys/security/mac/mac_process.c')
| -rw-r--r-- | sys/security/mac/mac_process.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/security/mac/mac_process.c b/sys/security/mac/mac_process.c index 8dda7b113874..436c55b878e2 100644 --- a/sys/security/mac/mac_process.c +++ b/sys/security/mac/mac_process.c @@ -650,3 +650,18 @@ mac_check_proc_setresgid(struct proc *proc, struct ucred *cred, gid_t rgid, MAC_CHECK(check_proc_setresgid, cred, rgid, egid, sgid); return (error); } + +int +mac_check_proc_wait(struct ucred *cred, struct proc *proc) +{ + int error; + + PROC_LOCK_ASSERT(proc, MA_OWNED); + + if (!mac_enforce_process) + return (0); + + MAC_CHECK(check_proc_wait, cred, proc); + + return (error); +} |
