This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.11-323-g2cd9670
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 5 Apr 2010 05:02:22 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.11-323-g2cd9670
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 2cd9670885d32eed6f4de12ddbeb2a9d049f198e (commit)
from 7ebaec64a0171a54dbe9aedd95497b130458060e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=2cd9670885d32eed6f4de12ddbeb2a9d049f198e
commit 2cd9670885d32eed6f4de12ddbeb2a9d049f198e
Author: Ulrich Drepper <drepper@redhat.com>
Date: Sun Apr 4 22:01:52 2010 -0700
Declare iruserok and iruserok_af.
diff --git a/ChangeLog b/ChangeLog
index 69ba4dd..bd8e94f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-04-04 Ulrich Drepper <drepper@redhat.com>
+ [BZ #11070]
+ * resolv/netdb.h: Declare iruserok and iruserok_af.
+
* argp/Makefile: Add rules to build and run bug-argp2.
* argp/bug-argp2.c: New file.
diff --git a/resolv/netdb.h b/resolv/netdb.h
index 7671c6a..e60dc44 100644
--- a/resolv/netdb.h
+++ b/resolv/netdb.h
@@ -518,6 +518,30 @@ 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);
+
+/* This is the equivalent function where the pfamiliy if the address
+ pointed to by RADDR is determined by the value of AF. It therefore
+ can be used for IPv6
+
+ 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_af (__const void *__raddr, int __suser,
+ __const char *__remuser, __const char *__locuser,
+ sa_family_t __af);
+
/* 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.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 3 +++
resolv/netdb.h | 24 ++++++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources