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
bd7c6f51f14365fc31d408903b38c02177384d3dGordon Ross * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
7568150a58e78021968b6c22bc28e9787b33496agwr * Use is subject to license terms.
7568150a58e78021968b6c22bc28e9787b33496agwr * This is the smbfs/lsacl command.
7568150a58e78021968b6c22bc28e9787b33496agwr * (just for testing - not installed)
bd7c6f51f14365fc31d408903b38c02177384d3dGordon Rossvoid lsacl(char *);
bd7c6f51f14365fc31d408903b38c02177384d3dGordon Ross fprintf(stderr, "Usage: %s [-v] file ...\n", progname);
bd7c6f51f14365fc31d408903b38c02177384d3dGordon Ross switch (c) {
7568150a58e78021968b6c22bc28e9787b33496agwr if (fd < 0) {
bd7c6f51f14365fc31d408903b38c02177384d3dGordon Ross /* First, get the SD in internal form. */
bd7c6f51f14365fc31d408903b38c02177384d3dGordon Ross * Print it first in Windows form. This way,
bd7c6f51f14365fc31d408903b38c02177384d3dGordon Ross * if any of the conversion has problems,
bd7c6f51f14365fc31d408903b38c02177384d3dGordon Ross * one can try mapping each SID by hand, i.e.:
bd7c6f51f14365fc31d408903b38c02177384d3dGordon Ross * idmap show sid:S-1-xxx-yyy-zzz
bd7c6f51f14365fc31d408903b38c02177384d3dGordon Ross * Convert the internal SD to a ZFS ACL.
bd7c6f51f14365fc31d408903b38c02177384d3dGordon Ross * Print it as a ZFS-style ACL (ACE_T)