diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-07-31 12:55:41 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-08-03 14:13:17 +0200 |
commit | 3462a12f52c91fc6e22fe8a126c83197bb5b4236 (patch) | |
tree | 57ce872c6774667f00d2a83572a355891c474f31 | |
parent | subr_prf.c: Port to RTEMS. (diff) | |
download | rtems-libbsd-3462a12f52c91fc6e22fe8a126c83197bb5b4236.tar.bz2 |
Dummy securelevel_ge() and securelevel_gt()
-rw-r--r-- | freebsd/sys/sys/proc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/freebsd/sys/sys/proc.h b/freebsd/sys/sys/proc.h index 32d297a5..e31f1992 100644 --- a/freebsd/sys/sys/proc.h +++ b/freebsd/sys/sys/proc.h @@ -940,8 +940,13 @@ void proc_reparent(struct proc *child, struct proc *newparent); struct pstats *pstats_alloc(void); void pstats_fork(struct pstats *src, struct pstats *dst); void pstats_free(struct pstats *ps); +#ifndef __rtems__ int securelevel_ge(struct ucred *cr, int level); int securelevel_gt(struct ucred *cr, int level); +#else /* __rtems__ */ +#define securelevel_ge(x, y) 0 +#define securelevel_gt(x, y) 0 +#endif /* __rtems__ */ void sess_hold(struct session *); void sess_release(struct session *); int setrunnable(struct thread *); |