aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/readonly-area.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-10-20 06:59:57 +0000
committerJakub Jelinek <jakub@redhat.com>2005-10-20 06:59:57 +0000
commitb7071f6fc41f4c20510de3683f39e5c8ea8a2e1e (patch)
tree852f4f1992a3c9ecbb44b822df6702c7e635fc5a /sysdeps/unix/sysv/linux/readonly-area.c
parentacfebba27b162b3064c616142883541eaef3f725 (diff)
downloadglibc-b7071f6fc41f4c20510de3683f39e5c8ea8a2e1e.tar
glibc-b7071f6fc41f4c20510de3683f39e5c8ea8a2e1e.tar.gz
glibc-b7071f6fc41f4c20510de3683f39e5c8ea8a2e1e.tar.bz2
glibc-b7071f6fc41f4c20510de3683f39e5c8ea8a2e1e.zip
Updated to fedora-glibc-20051020T0651
Diffstat (limited to 'sysdeps/unix/sysv/linux/readonly-area.c')
-rw-r--r--sysdeps/unix/sysv/linux/readonly-area.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/readonly-area.c b/sysdeps/unix/sysv/linux/readonly-area.c
index 29224d98b9..69e926a7a1 100644
--- a/sysdeps/unix/sysv/linux/readonly-area.c
+++ b/sysdeps/unix/sysv/linux/readonly-area.c
@@ -35,10 +35,15 @@ __readonly_area (const char *ptr, size_t size)
FILE *fp = fopen ("/proc/self/maps", "rc");
if (fp == NULL)
{
- if (errno == ENOENT)
- /* It is the system administrator's choice to not have /proc
- available to this process (e.g., because it runs in a chroot
- environment. Don't fail in this case. */
+ /* It is the system administrator's choice to not have /proc
+ available to this process (e.g., because it runs in a chroot
+ environment. Don't fail in this case. */
+ if (errno == ENOENT
+ /* The kernel has a bug in that a process is denied access
+ to the /proc filesystem if it is set[ug]id. There has
+ been no willingness to change this in the kernel so
+ far. */
+ || errno == EACCES)
return 1;
return -1;
}