svc-rbac revision c11c3631128bd03ca6eb2504d1d2c1b5ec1c130f
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# CDDL HEADER START
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# The contents of this file are subject to the terms of the
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# Common Development and Distribution License (the "License").
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# You may not use this file except in compliance with the License.
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# See the License for the specific language governing permissions
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# and limitations under the License.
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# When distributing Covered Code, include this CDDL HEADER in each
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# If applicable, add the following below this CDDL HEADER, with the
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# fields enclosed by brackets "[]" replaced with your own identifying
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# information: Portions Copyright [yyyy] [name of copyright owner]
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# CDDL HEADER END
d387c4608dbd3ca056e18e85313ef51aac146fd2Pavel Březina# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek# Use is subject to license terms.
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozekfiles='/etc/user_attr /etc/security/auth_attr /etc/security/exec_attr
d387c4608dbd3ca056e18e85313ef51aac146fd2Pavel Březina echo "${irbac}: not found."
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek echo "Usage: $0 { start | refresh | stop }"
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek if [ ! -d ${d} ]
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek # No directory, nothing to do
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek # cache user/owner of file to update
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek ownergroup=`ls -ln $f | awk '{printf("%s:%s\n", $3, $4);'}`
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek # List all the files in the directory and the destination file
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek # in the order of their timestamp. Most recent files are
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek # displayed first. When we find the destination file, we're
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek # done as the rest of the files are older and they are already
590582be38cdbfde387fcc57df92903d48c5a083Jakub Hrozek # incorporated.