xref: /titanic_41/usr/src/lib/libsecdb/common/r.rbac (revision 94a2b2491e6e5c190883527ee526ffa8e93a50bd)
1#!/bin/sh
2#
3# r.rbac
4#
5# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
6# Use is subject to license terms.
7#
8# CDDL HEADER START
9#
10# The contents of this file are subject to the terms of the
11# Common Development and Distribution License (the "License").
12# You may not use this file except in compliance with the License.
13#
14# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15# or http://www.opensolaris.org/os/licensing.
16# See the License for the specific language governing permissions
17# and limitations under the License.
18#
19# When distributing Covered Code, include this CDDL HEADER in each
20# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21# If applicable, add the following below this CDDL HEADER, with the
22# fields enclosed by brackets "[]" replaced with your own identifying
23# information: Portions Copyright [yyyy] [name of copyright owner]
24#
25# CDDL HEADER END
26#
27# class action script for "rbac" class files
28# installed by pkgadd
29#
30# Files in "rbac" class:
31#
32# /etc/security/{prof_attr,exec_attr,auth_attr}
33# /etc/user_attr
34#
35#  Allowable exit codes
36#
37# 0 - success
38# 2 - warning or possible error condition. Installation continues. A warning
39#     message is displayed at the time of completion.
40#
41# This script removes the fragment installed for this particular package
42# instance. But it is not safe to unmerge the entries installed.
43#
44PATH=/usr/bin:/usr/sbin
45export PATH
46if [ -n "$PKGINST" ]
47then
48	while read file
49	do
50		rm -f ${file}.d/"$PKGINST"
51	done
52fi
53
54exit 0
55