#!/bin/sh # # r.rbac # # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # 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 # or http://www.opensolaris.org/os/licensing. # 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 # # class action script for "rbac" class files # installed by pkgadd # # Files in "rbac" class: # # /etc/security/{prof_attr,exec_attr,auth_attr} # /etc/user_attr # # Allowable exit codes # # 0 - success # 2 - warning or possible error condition. Installation continues. A warning # message is displayed at the time of completion. # # This script removes the fragment installed for this particular package # instance. But it is not safe to unmerge the entries installed. # PATH=/usr/bin:/usr/sbin export PATH if [ -n "$PKGINST" ] then while read file do rm -f ${file}.d/"$PKGINST" done fi exit 0