26c26
< * $FreeBSD: head/sys/kern/kern_environment.c 105354 2002-10-17 20:03:38Z robert $
---
> * $FreeBSD: head/sys/kern/kern_environment.c 106308 2002-11-01 20:46:53Z rwatson $
38a39,40
> #include "opt_mac.h"
>
43a46
> #include <sys/mac.h>
92a96,100
> #ifdef MAC
> error = mac_check_kenv_dump(td->td_ucred);
> if (error)
> return (error);
> #endif
133a142,146
> #ifdef MAC
> error = mac_check_kenv_get(td->td_ucred, name);
> if (error)
> goto done;
> #endif
162c175,179
< setenv(name, value);
---
> #ifdef MAC
> error = mac_check_kenv_set(td->td_ucred, name, value);
> if (error == 0)
> #endif
> setenv(name, value);
165a183,187
> #ifdef MAC
> error = mac_check_kenv_unset(td->td_ucred, name);
> if (error)
> goto done;
> #endif
< * $FreeBSD: head/sys/kern/kern_environment.c 105354 2002-10-17 20:03:38Z robert $
---
> * $FreeBSD: head/sys/kern/kern_environment.c 106308 2002-11-01 20:46:53Z rwatson $
38a39,40
> #include "opt_mac.h"
>
43a46
> #include <sys/mac.h>
92a96,100
> #ifdef MAC
> error = mac_check_kenv_dump(td->td_ucred);
> if (error)
> return (error);
> #endif
133a142,146
> #ifdef MAC
> error = mac_check_kenv_get(td->td_ucred, name);
> if (error)
> goto done;
> #endif
162c175,179
< setenv(name, value);
---
> #ifdef MAC
> error = mac_check_kenv_set(td->td_ucred, name, value);
> if (error == 0)
> #endif
> setenv(name, value);
165a183,187
> #ifdef MAC
> error = mac_check_kenv_unset(td->td_ucred, name);
> if (error)
> goto done;
> #endif