diff options
| author | raf <none@none> | 2008-04-29 14:12:45 -0700 |
|---|---|---|
| committer | raf <none@none> | 2008-04-29 14:12:45 -0700 |
| commit | 8cd45542f2a452ca0dab13d8b2d5cfa876ccbebc (patch) | |
| tree | 0571ec3284912727f3d8ba667ed57b4cc6afb8cd /usr/src/lib/libc/common/sys | |
| parent | 31e69ea4bce567a03de57e063cb36ef69af61470 (diff) | |
| download | illumos-joyent-8cd45542f2a452ca0dab13d8b2d5cfa876ccbebc.tar.gz | |
6678310 using LD_AUDIT, ld.so.1 calls shared library's .init before library is fully relocated
6689238 libc needs global protection against ld.so.1
Diffstat (limited to 'usr/src/lib/libc/common/sys')
| -rw-r--r-- | usr/src/lib/libc/common/sys/close.s | 1 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/execve.s | 14 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/exit.s | 14 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/fstat.s | 2 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/geteuid.s | 15 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/getgid.s | 14 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/getpid.s | 14 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/getrlimit.s | 14 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/getuid.s | 14 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/ioctl.s | 1 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/mmap.s | 15 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/mprotect.s | 14 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/munmap.s | 14 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/priocntlset.s | 14 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/setgid.s | 14 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/setuid.s | 14 | ||||
| -rw-r--r-- | usr/src/lib/libc/common/sys/stat.s | 2 |
17 files changed, 78 insertions, 112 deletions
diff --git a/usr/src/lib/libc/common/sys/close.s b/usr/src/lib/libc/common/sys/close.s index c88472019c..bf162d4e27 100644 --- a/usr/src/lib/libc/common/sys/close.s +++ b/usr/src/lib/libc/common/sys/close.s @@ -36,7 +36,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_close,__close,function) SYSCALL2_RVAL1(__close,close) RETC SET_SIZE(__close) diff --git a/usr/src/lib/libc/common/sys/execve.s b/usr/src/lib/libc/common/sys/execve.s index 8a6312a989..7c92ac99d7 100644 --- a/usr/src/lib/libc/common/sys/execve.s +++ b/usr/src/lib/libc/common/sys/execve.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -45,6 +44,5 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_execve,execve,function) SYSCALL_RVAL1(execve) SET_SIZE(execve) diff --git a/usr/src/lib/libc/common/sys/exit.s b/usr/src/lib/libc/common/sys/exit.s index 3ef2f157b9..5c259bcdde 100644 --- a/usr/src/lib/libc/common/sys/exit.s +++ b/usr/src/lib/libc/common/sys/exit.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -48,7 +47,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_exit,_exit,function) ANSI_PRAGMA_WEAK2(_Exit,_exit,function) ENTRY(_exit) SYSTRAP_RVAL1(exit) diff --git a/usr/src/lib/libc/common/sys/fstat.s b/usr/src/lib/libc/common/sys/fstat.s index 00740c5cd0..0bc6d69be0 100644 --- a/usr/src/lib/libc/common/sys/fstat.s +++ b/usr/src/lib/libc/common/sys/fstat.s @@ -46,7 +46,6 @@ #if !defined(_LARGEFILE_SOURCE) - ANSI_PRAGMA_WEAK2(_private_fstat,fstat,function) SYSCALL_RVAL1(fstat) RETC SET_SIZE(fstat) @@ -56,7 +55,6 @@ /* C library -- fstat64 transitional large file API */ /* int fstat64 (int fildes, struct stat64 *buf) */ - ANSI_PRAGMA_WEAK2(_private_fstat64,fstat64,function) SYSCALL_RVAL1(fstat64) RETC SET_SIZE(fstat64) diff --git a/usr/src/lib/libc/common/sys/geteuid.s b/usr/src/lib/libc/common/sys/geteuid.s index 89dd1f964c..4cf6f688fc 100644 --- a/usr/src/lib/libc/common/sys/geteuid.s +++ b/usr/src/lib/libc/common/sys/geteuid.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -43,8 +42,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_geteuid,_geteuid,function) - ENTRY(geteuid) /* shared syscall: rval1 = uid */ SYSTRAP_RVAL2(getuid) /* rval2 = euid */ RET2 diff --git a/usr/src/lib/libc/common/sys/getgid.s b/usr/src/lib/libc/common/sys/getgid.s index 8ee68e6a1c..02b4814ea8 100644 --- a/usr/src/lib/libc/common/sys/getgid.s +++ b/usr/src/lib/libc/common/sys/getgid.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -41,7 +40,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_getgid,_getgid,function) SYSCALL_NOERROR_RVAL1(getgid) RET SET_SIZE(getgid) diff --git a/usr/src/lib/libc/common/sys/getpid.s b/usr/src/lib/libc/common/sys/getpid.s index bd9b8f0f64..78abed2e09 100644 --- a/usr/src/lib/libc/common/sys/getpid.s +++ b/usr/src/lib/libc/common/sys/getpid.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -41,7 +40,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_getpid,_getpid,function) SYSCALL_NOERROR_RVAL1(getpid) RET SET_SIZE(getpid) diff --git a/usr/src/lib/libc/common/sys/getrlimit.s b/usr/src/lib/libc/common/sys/getrlimit.s index 40952add04..56cd868b74 100644 --- a/usr/src/lib/libc/common/sys/getrlimit.s +++ b/usr/src/lib/libc/common/sys/getrlimit.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -47,7 +46,6 @@ #if !defined(_LARGEFILE_SOURCE) - ANSI_PRAGMA_WEAK2(_private_getrlimit,getrlimit,function) SYSCALL_RVAL1(getrlimit) RETC SET_SIZE(getrlimit) diff --git a/usr/src/lib/libc/common/sys/getuid.s b/usr/src/lib/libc/common/sys/getuid.s index e7e5b29c7e..85cbdaebae 100644 --- a/usr/src/lib/libc/common/sys/getuid.s +++ b/usr/src/lib/libc/common/sys/getuid.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -41,7 +40,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_getuid,_getuid,function) SYSCALL_NOERROR_RVAL1(getuid) RET SET_SIZE(getuid) diff --git a/usr/src/lib/libc/common/sys/ioctl.s b/usr/src/lib/libc/common/sys/ioctl.s index 94e2e3ceae..647e64b332 100644 --- a/usr/src/lib/libc/common/sys/ioctl.s +++ b/usr/src/lib/libc/common/sys/ioctl.s @@ -40,7 +40,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_ioctl,ioctl,function) SYSCALL_RESTART_RVAL1(ioctl) RET SET_SIZE(ioctl) diff --git a/usr/src/lib/libc/common/sys/mmap.s b/usr/src/lib/libc/common/sys/mmap.s index e8df86b7ad..0a5742efdc 100644 --- a/usr/src/lib/libc/common/sys/mmap.s +++ b/usr/src/lib/libc/common/sys/mmap.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -51,8 +50,6 @@ * int flags, int fd, off_t off) */ - ANSI_PRAGMA_WEAK2(_private_mmap,mmap,function) - ENTRY(mmap) #if defined(__sparc) /* this depends upon the _MAP_NEW flag being in the top bits */ diff --git a/usr/src/lib/libc/common/sys/mprotect.s b/usr/src/lib/libc/common/sys/mprotect.s index 6843b12767..70bdf76237 100644 --- a/usr/src/lib/libc/common/sys/mprotect.s +++ b/usr/src/lib/libc/common/sys/mprotect.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -41,7 +40,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_mprotect,mprotect,function) SYSCALL_RVAL1(mprotect) RETC SET_SIZE(mprotect) diff --git a/usr/src/lib/libc/common/sys/munmap.s b/usr/src/lib/libc/common/sys/munmap.s index 5180b30ce2..569393521b 100644 --- a/usr/src/lib/libc/common/sys/munmap.s +++ b/usr/src/lib/libc/common/sys/munmap.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -41,7 +40,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_munmap,munmap,function) SYSCALL_RVAL1(munmap) RETC SET_SIZE(munmap) diff --git a/usr/src/lib/libc/common/sys/priocntlset.s b/usr/src/lib/libc/common/sys/priocntlset.s index 78099580d9..f4ef612516 100644 --- a/usr/src/lib/libc/common/sys/priocntlset.s +++ b/usr/src/lib/libc/common/sys/priocntlset.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -37,7 +36,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private__priocntlset,__priocntlset,function) SYSCALL2_RVAL1(__priocntlset,priocntlsys) RET SET_SIZE(__priocntlset) diff --git a/usr/src/lib/libc/common/sys/setgid.s b/usr/src/lib/libc/common/sys/setgid.s index a12dc5adcf..cb49aadb16 100644 --- a/usr/src/lib/libc/common/sys/setgid.s +++ b/usr/src/lib/libc/common/sys/setgid.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -41,7 +40,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_setgid,_setgid,function) SYSCALL_RVAL1(setgid) RETC SET_SIZE(setgid) diff --git a/usr/src/lib/libc/common/sys/setuid.s b/usr/src/lib/libc/common/sys/setuid.s index 115ef8bf8f..ca2e76b00d 100644 --- a/usr/src/lib/libc/common/sys/setuid.s +++ b/usr/src/lib/libc/common/sys/setuid.s @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -19,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + #pragma ident "%Z%%M% %I% %E% SMI" .file "%M%" @@ -41,7 +40,6 @@ #include "SYS.h" - ANSI_PRAGMA_WEAK2(_private_setuid,_setuid,function) SYSCALL_RVAL1(setuid) RETC SET_SIZE(setuid) diff --git a/usr/src/lib/libc/common/sys/stat.s b/usr/src/lib/libc/common/sys/stat.s index e311c337f0..4b392b037a 100644 --- a/usr/src/lib/libc/common/sys/stat.s +++ b/usr/src/lib/libc/common/sys/stat.s @@ -46,7 +46,6 @@ #if !defined(_LARGEFILE_SOURCE) - ANSI_PRAGMA_WEAK2(_private_stat,stat,function) SYSCALL_RVAL1(stat) RETC SET_SIZE(stat) @@ -56,7 +55,6 @@ /* C library -- stat64 - transitional API */ /* int stat64 (const char *path, struct stat64 *buf); */ - ANSI_PRAGMA_WEAK2(_private_stat64,stat64,function) SYSCALL_RVAL1(stat64) RETC SET_SIZE(stat64) |
