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