[rtems-libbsd commit] Fix cr_cansee*() to see everything

Sebastian Huber sebh at rtems.org
Thu Sep 18 10:55:11 UTC 2014


Module:    rtems-libbsd
Branch:    master
Commit:    8babd8c8ea24bb68a53d6614b65904b68a91d1e9
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=8babd8c8ea24bb68a53d6614b65904b68a91d1e9

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Sep 18 13:00:16 2014 +0200

Fix cr_cansee*() to see everything

---

 freebsd/sys/sys/systm.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/freebsd/sys/sys/systm.h b/freebsd/sys/sys/systm.h
index f16c30a..9e459e0 100644
--- a/freebsd/sys/sys/systm.h
+++ b/freebsd/sys/sys/systm.h
@@ -353,9 +353,9 @@ int	cr_cansee(struct ucred *u1, struct ucred *u2);
 int	cr_canseesocket(struct ucred *cred, struct socket *so);
 int	cr_canseeinpcb(struct ucred *cred, struct inpcb *inp);
 #else /* __rtems__ */
-#define cr_cansee(u1, u2) 1
-#define cr_canseesocket(cred, so) 1
-#define cr_canseeinpcb(cred, inp) 1
+#define cr_cansee(u1, u2) 0
+#define cr_canseesocket(cred, so) 0
+#define cr_canseeinpcb(cred, inp) 0
 #endif /* __rtems__ */
 
 char	*getenv(const char *name);



More information about the vc mailing list