This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11070] Glibc netdb.h does not provide prototype for 'iruserok'
- From: "simon at josefsson dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 9 Dec 2009 17:16:47 -0000
- Subject: [Bug libc/11070] Glibc netdb.h does not provide prototype for 'iruserok'
- References: <20091209110403.11070.simon@josefsson.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From simon at josefsson dot org 2009-12-09 17:16 -------
Here is a patch if you want to consider option 1.
Thanks,
/Simon
2009-12-09 Simon Josefsson <simon@josefsson.org>
* resolv/netdb.h [__USE_BSD]: Add prototype for iruserok.
>From a1340a98a1e161fb9b0cdbeb91670cc738ee9952 Mon Sep 17 00:00:00 2001
From: Simon Josefsson <simon@josefsson.org>
Date: Wed, 9 Dec 2009 18:15:57 +0100
Subject: [PATCH] Add prototype for iruserok to netdb.h.
---
resolv/netdb.h | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/resolv/netdb.h b/resolv/netdb.h
index dc1f7ce..1fe6afe 100644
--- a/resolv/netdb.h
+++ b/resolv/netdb.h
@@ -516,6 +516,18 @@ extern int ruserok_af (__const char *__rhost, int __suser,
__const char *__remuser, __const char *__locuser,
sa_family_t __af);
+/* Check whether user REMUSER on system indicated by IPv4 address
+ RADDR is allowed to login as LOCUSER. Non-IPv4 (e.g., IPv6) are
+ not supported. If SUSER is not zero the user tries to become
+ superuser. Return 0 if it is possible.
+
+ This function is not part of POSIX and therefore no official
+ cancellation point. But due to similarity with an POSIX interface
+ or due to the implementation it is a cancellation point and
+ therefore not marked with __THROW. */
+extern int iruserok (uint32_t __raddr, int __suser,
+ __const char *__remuser, __const char *__locuser);
+
/* Try to allocate reserved port, returning a descriptor for a socket opened
at this port or -1 if unsuccessful. The search for an available port
will start at ALPORT and continues with lower numbers.
--
1.6.5.3
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11070
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.