[rtems-libbsd commit] Dummy securelevel_ge() and securelevel_gt()

Sebastian Huber sebh at rtems.org
Wed Aug 3 12:44:14 UTC 2016


Module:    rtems-libbsd
Branch:    4.11
Commit:    3462a12f52c91fc6e22fe8a126c83197bb5b4236
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=3462a12f52c91fc6e22fe8a126c83197bb5b4236

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jul 31 12:55:41 2015 +0200

Dummy securelevel_ge() and securelevel_gt()

---

 freebsd/sys/sys/proc.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/freebsd/sys/sys/proc.h b/freebsd/sys/sys/proc.h
index 32d297a..e31f199 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 *);



More information about the vc mailing list