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