#!/bin/sh # # i.rbac # # Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. # # class action script for "rbac" class files # installed by pkgadd, kept for backward compatibility. # Copies the file to the .._attr.d/ directory. # # Files in "rbac" class: # # /etc/security/{prof_attr,exec_attr,auth_attr} # /etc/user_attr # umask 022 PATH="/usr/bin:/usr/sbin" export PATH while read newfile oldfile; do if [[ -n "$PKGINST" ]]; then # Install the file in the "fragment" directory. mkdir -m 755 -p ${oldfile}.d rm -f ${oldfile}.d/"$PKGINST" cp $newfile ${oldfile}.d/"$PKGINST" # Make sure that it is marked read-only. chmod a-w,a+r ${oldfile}.d/"$PKGINST" fi done exit 0