f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * CDDL HEADER START
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * The contents of this file are subject to the terms of the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * Common Development and Distribution License (the "License").
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * You may not use this file except in compliance with the License.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * See the License for the specific language governing permissions
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * and limitations under the License.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * When distributing Covered Code, include this CDDL HEADER in each
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * If applicable, add the following below this CDDL HEADER, with the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * fields enclosed by brackets "[]" replaced with your own identifying
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * information: Portions Copyright [yyyy] [name of copyright owner]
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * CDDL HEADER END
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * Use is subject to license terms.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#pragma ident "%Z%%M% %I% %E% SMI"
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * pam_tsol_account - Trusted Extensions account management.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * Validates that the user's label range contains
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica * the process label (label of the zone).
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricastatic void
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica/* ARGSUSED */
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricapam_sm_acct_mgmt(pam_handle_t *pamh, int flags, int argc, const char **argv)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica for (i = 0; i < argc; i++) {
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica /* Trusted Extensions not enabled */
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica "pam_tsol_account: allowed_unlabeled = %d, user %s, "
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica "rhost %s",
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica "pam_tsol_account: no user");
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica "pam_tsol_account: out of memory");
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica "pam_tsol_account: Unable to get process label %m");
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica /* Remote Host Type Policy Check */
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica if ((allow_unlabeled == 0) &&