acl_print.c revision 02d09e03eb27f3a2dc299de704e45dae5173f43f
7568150a58e78021968b6c22bc28e9787b33496agwr * CDDL HEADER START
7568150a58e78021968b6c22bc28e9787b33496agwr * The contents of this file are subject to the terms of the
7568150a58e78021968b6c22bc28e9787b33496agwr * Common Development and Distribution License (the "License").
7568150a58e78021968b6c22bc28e9787b33496agwr * You may not use this file except in compliance with the License.
7568150a58e78021968b6c22bc28e9787b33496agwr * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7568150a58e78021968b6c22bc28e9787b33496agwr * See the License for the specific language governing permissions
7568150a58e78021968b6c22bc28e9787b33496agwr * and limitations under the License.
7568150a58e78021968b6c22bc28e9787b33496agwr * When distributing Covered Code, include this CDDL HEADER in each
7568150a58e78021968b6c22bc28e9787b33496agwr * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7568150a58e78021968b6c22bc28e9787b33496agwr * If applicable, add the following below this CDDL HEADER, with the
7568150a58e78021968b6c22bc28e9787b33496agwr * fields enclosed by brackets "[]" replaced with your own identifying
7568150a58e78021968b6c22bc28e9787b33496agwr * information: Portions Copyright [yyyy] [name of copyright owner]
7568150a58e78021968b6c22bc28e9787b33496agwr * CDDL HEADER END
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
7568150a58e78021968b6c22bc28e9787b33496agwr * Use is subject to license terms.
7568150a58e78021968b6c22bc28e9787b33496agwr * Print an NT Security Descriptor (SD) and its sub-components.
7568150a58e78021968b6c22bc28e9787b33496agwrstatic void
7568150a58e78021968b6c22bc28e9787b33496agwr if (smbfs_sid2str(sid, sidbuf, sizeof (sidbuf), NULL) < 0)
7568150a58e78021968b6c22bc28e9787b33496agwrstatic void
7568150a58e78021968b6c22bc28e9787b33496agwr /* ACEs are always printed in a list, so indent by 2. */
7568150a58e78021968b6c22bc28e9787b33496agwr fprintf(fp, " ace_type=%d ace_flags=0x%x ace_rights=0x%x\n",
7568150a58e78021968b6c22bc28e9787b33496agwr /* Show the SID as a "continuation" line. */
7568150a58e78021968b6c22bc28e9787b33496agwrstatic void