diff options
author | Gordon Ross <Gordon.Ross@Sun.COM> | 2009-12-16 15:03:38 -0500 |
---|---|---|
committer | Gordon Ross <Gordon.Ross@Sun.COM> | 2009-12-16 15:03:38 -0500 |
commit | 02d09e03eb27f3a2dc299de704e45dae5173f43f (patch) | |
tree | d01a29c58a8a455627b355abb83addad11802bd6 /usr/src/lib/libsmbfs/smb/acl_nt.h | |
parent | aab2fe4104e428e5213f84aee65b9905ec97cf9a (diff) | |
download | illumos-joyent-02d09e03eb27f3a2dc299de704e45dae5173f43f.tar.gz |
6650611 Attribute cache logic needs improvement
6876185 common I/F for net message build/parse in kernel vs user code
6891728 syslog shows: smbfs_close: error 9 closing /dirname
6906037 smbfs_mount() doesn't ASSERT the return value of smbfs_make_node()
6607536 the size of a dir on smbfs is not correct
6648146 smbfs should implement reclaim from node cache
--HG--
rename : usr/src/lib/libsmbfs/smb/acl_conv.c => usr/src/common/smbclnt/smbfs_ntacl.c
rename : usr/src/lib/libsmbfs/smb/acl_nt.h => usr/src/common/smbclnt/smbfs_ntacl.h
Diffstat (limited to 'usr/src/lib/libsmbfs/smb/acl_nt.h')
-rw-r--r-- | usr/src/lib/libsmbfs/smb/acl_nt.h | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/usr/src/lib/libsmbfs/smb/acl_nt.h b/usr/src/lib/libsmbfs/smb/acl_nt.h deleted file mode 100644 index 844a7e6543..0000000000 --- a/usr/src/lib/libsmbfs/smb/acl_nt.h +++ /dev/null @@ -1,113 +0,0 @@ -/* - * CDDL HEADER START - * - * The contents of this file are subject to the terms of the - * 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. - * See the License for the specific language governing permissions - * and limitations under the License. - * - * When distributing Covered Code, include this CDDL HEADER in each - * file and include the License file at usr/src/OPENSOLARIS.LICENSE. - * If applicable, add the following below this CDDL HEADER, with the - * fields enclosed by brackets "[]" replaced with your own identifying - * information: Portions Copyright [yyyy] [name of copyright owner] - * - * CDDL HEADER END - */ - -/* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -#ifndef _ACL_NT_H -#define _ACL_NT_H - -/* - * Internal functions for dealing with - * NT Security data structures. - */ - -#include <netsmb/smbfs_acl.h> - -/* - * Internal form of an NT SID - * Same as on the wire, but possibly byte-swapped. - */ -typedef struct i_ntsid { - uint8_t sid_revision; - uint8_t sid_subauthcount; - uint8_t sid_authority[6]; - uint32_t sid_subauthvec[1]; /* actually len=subauthcount */ -} i_ntsid_t; -#define I_SID_SIZE(sacnt) (8 + 4 * (sacnt)) - -/* - * Internal form of an NT ACE - */ -typedef struct i_ntace { - uint8_t ace_type; - uint8_t ace_flags; - uint32_t ace_rights; /* generic, standard, specific, etc */ - i_ntsid_t *ace_sid; -} i_ntace_t; - -/* - * Internal form of an NT ACL (see sacl/dacl below) - */ -typedef struct i_ntacl { - uint8_t acl_revision; /* 0x02 observed with W2K */ - uint16_t acl_acecount; - i_ntace_t *acl_acevec[1]; /* actually, len=acecount */ -} i_ntacl_t; - -/* - * Internal form of an NT Security Descriptor (SD) - */ -struct i_ntsd { - uint8_t sd_revision; /* 0x01 observed between W2K */ - uint16_t sd_flags; - i_ntsid_t *sd_owner; - i_ntsid_t *sd_group; - i_ntacl_t *sd_sacl; - i_ntacl_t *sd_dacl; -}; - -struct mbdata; - -/* - * Import a raw SD (mb chain) into "internal" form. - * (like "absolute" form per. NT docs) - * Returns allocated data in sdp - */ -int mb_get_ntsd(struct mbdata *mbp, i_ntsd_t **sdp); - -/* - * Export an "internal" SD into an raw SD (mb chain). - * (a.k.a "self-relative" form per. NT docs) - * Returns allocated mbchain in mbp. - */ -int mb_put_ntsd(struct mbdata *mbp, i_ntsd_t *sd); - - -/* - * Get an SD via ioctl on FD (with "selector" bits), - * stroing the raw Windows SD in the mb chain mbp. - */ -int smbfs_acl_iocget(int fd, uint32_t selector, struct mbdata *mbp); - -/* - * Set an SD via ioctl on FD (with "selector" bits), - * with a raw Windows SD from the chain mbp. - */ -int smbfs_acl_iocset(int fd, uint32_t selector, struct mbdata *mbp); - - -int smbfs_sid2str(i_ntsid_t *sid, - char *obuf, size_t olen, uint32_t *ridp); - -#endif /* _ACL_NT_H */ |