/*
* 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
* 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 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* (just for testing - not installed)
*/
#include <sys/acl_impl.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <aclutils.h>
#include <netsmb/smbfs_acl.h>
char *progname;
int Vflag;
void lsacl(char *);
void
usage(void)
{
exit(1);
}
int
{
int c;
switch (c) {
case 'v':
Vflag++;
break;
default:
progname, c);
usage();
break;
}
}
usage();
return (0);
}
void
{
if (fd < 0) {
exit(1);
}
/* First, get the SD in internal form. */
if (error) {
exit(1);
}
if (Vflag) {
/*
* Print it first in Windows form. This way,
* if any of the conversion has problems,
* one can try mapping each SID by hand, i.e.:
* idmap show sid:S-1-xxx-yyy-zzz
*/
printf("CIFS security data:\n");
printf("\n");
}
/*
* Convert the internal SD to a ZFS ACL.
*/
if (error) {
exit(1);
}
/*
* Print it as a ZFS-style ACL (ACE_T)
*/
printf("Solaris security data:\n");
printf("owner: -1\n");
else
printf("group: -1\n");
else
printf("\n");
}