svc-labeld revision 8700009e2cc8cb186241e1fdd74973da1121ee4c
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# CDDL HEADER START
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# The contents of this file are subject to the terms of the
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Common Development and Distribution License (the "License").
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# You may not use this file except in compliance with the License.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# See the License for the specific language governing permissions
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# and limitations under the License.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# If applicable, add the following below this CDDL HEADER, with the
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# CDDL HEADER END
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe# Use is subject to license terms.
10d63b7db37a83b39c7f511cf9426c9d03ea0760Richard Lowe#ident "%Z%%M% %I% %E% SMI"
exit $SMF_EXIT_ERR_CONFIG
exit $SMF_EXIT_ERR_CONFIG
exit $SMF_EXIT_ERR_CONFIG
if smf_is_nonglobalzone; then
exit $SMF_EXIT_ERR_CONFIG
if [ -f $LOGINDEVPERM ]; then
cp /tmp/tmp.$$ $LOGINDEVPERM
cp /tmp/tmp.$$ $LOGINDEVPERM
cat >> $ROOT_PATH/var/svc/profile/upgrade <<\__ENABLE_OTHERS
/usr/sbin/svccfg -s svc:/application/x11/x11-server \
setprop options/tcp_listen = true
cat >> $ROOT_PATH/var/svc/profile/upgrade <<\_DEL_LOCAL_NSCD
cat > ${TX_ENTRIES} << EOF
mkdir $PAM_TMP || exit $SMF_EXIT_ERR_FATAL
if [ ! -f ${PAM_DEST} ]; then
exit $SMF_EXIT_ERR_FATAL
grep \
done < ${TX_ENTRIES}
mkdir $PAM_TMP || exit $SMF_EXIT_ERR_FATAL
if [ ! -f ${PAM_DEST} ]; then
exit $SMF_EXIT_ERR_FATAL
if [ $? -ne 0 ]; then
if [ $? -ne 0 ]; then
exit $SMF_EXIT_ERR_FATAL
exit $SMF_EXIT_ERR_FATAL
if [ -z "$SMF_FMRI" ]; then
exit $SMF_EXIT_ERR_NOSMF
# A sign of trying temporary enablement...no-no
exit $SMF_EXIT_ERR_CONFIG
if (smf_is_system_labeled); then
exit $SMF_EXIT_OK
exit $SMF_EXIT_OK
exit $SMF_EXIT_ERR_CONFIG
exit $SMF_EXIT_OK
exit $SMF_EXIT_OK
exit $SMF_EXIT_ERR_CONFIG
# Uncomment audio and usb device entries in /etc/logindevperm.
if [ -f $LOGINDEVPERM ]; then
echo "$0: ERROR: cannot remove sys_labeling in $ROOT_PATH/etc/system"
exit $SMF_EXIT_ERR_FATAL
exit $SMF_EXIT_OK