diff options
author | Casper H.S. Dik <Casper.Dik@Sun.COM> | 2009-05-20 10:46:07 +0200 |
---|---|---|
committer | Casper H.S. Dik <Casper.Dik@Sun.COM> | 2009-05-20 10:46:07 +0200 |
commit | 7a142be9307f4ef3f3dbe77bb364bea22cd33485 (patch) | |
tree | 2c85669da4c573f2eaa2799d80dea4bba32cc735 /usr/src/uts/common/sys/pathname.h | |
parent | b0de01ca41d65f7e8fb07b234ed373daca1be8af (diff) | |
download | illumos-gate-7a142be9307f4ef3f3dbe77bb364bea22cd33485.tar.gz |
1187647 access(2) does not completely check the path according to real user
Diffstat (limited to 'usr/src/uts/common/sys/pathname.h')
-rw-r--r-- | usr/src/uts/common/sys/pathname.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usr/src/uts/common/sys/pathname.h b/usr/src/uts/common/sys/pathname.h index dc0fb02926..305e3cf09c 100644 --- a/usr/src/uts/common/sys/pathname.h +++ b/usr/src/uts/common/sys/pathname.h @@ -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. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -35,8 +34,6 @@ #ifndef _SYS_PATHNAME_H #define _SYS_PATHNAME_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/vnode.h> #include <sys/cred.h> #include <sys/uio.h> @@ -87,10 +84,14 @@ extern int lookupname(char *, enum uio_seg, enum symfollow, vnode_t **, vnode_t **); extern int lookupnameat(char *, enum uio_seg, enum symfollow, vnode_t **, vnode_t **, vnode_t *); +extern int lookupnameatcred(char *, enum uio_seg, enum symfollow, + vnode_t **, vnode_t **, vnode_t *, cred_t *); extern int lookuppn(struct pathname *, struct pathname *, enum symfollow, vnode_t **, vnode_t **); extern int lookuppnat(struct pathname *, struct pathname *, enum symfollow, vnode_t **, vnode_t **, vnode_t *); +extern int lookuppnatcred(struct pathname *, struct pathname *, enum symfollow, + vnode_t **, vnode_t **, vnode_t *, cred_t *); extern int lookuppnvp(struct pathname *, struct pathname *, int follow, vnode_t **, vnode_t **, vnode_t *, vnode_t *, cred_t *); |