06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# CDDL HEADER START
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# The contents of this file are subject to the terms of the
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# Common Development and Distribution License (the "License").
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# You may not use this file except in compliance with the License.
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# or http://www.opensolaris.org/os/licensing.
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# See the License for the specific language governing permissions
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# and limitations under the License.
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# When distributing Covered Code, include this CDDL HEADER in each
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# If applicable, add the following below this CDDL HEADER, with the
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# fields enclosed by brackets "[]" replaced with your own identifying
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# information: Portions Copyright [yyyy] [name of copyright owner]
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik# CDDL HEADER END
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dikfiles='/etc/user_attr /etc/security/auth_attr /etc/security/exec_attr
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik echo "${irbac}: not found."
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik echo "Usage: $0 { start | refresh | stop }"
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush echo "Could not create temporary directory."
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik if [ ! -d ${d} ]
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik # No directory, nothing to do
c11c3631128bd03ca6eb2504d1d2c1b5ec1c130fJoep Vesseur # cache user/owner of file to update
c11c3631128bd03ca6eb2504d1d2c1b5ec1c130fJoep Vesseur ownergroup=`ls -ln $f | awk '{printf("%s:%s\n", $3, $4);'}`
06d0f3f39e2f7b67190578d7277d559c32191d6cCasper H.S. Dik # List all the files in the directory and the destination file
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # in the order of their timestamp. Older files are displayed
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # first. If a fragment file is listed before the destination
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # file, it is an older fragment that has already been processed.
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # If a fragment file is listed after the destination file, it is
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # new, and the destination file must be updated.
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # Comments are processed separately from the other file contents.
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # For new fragments only, the comments are processed as they are
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # encountered. For all fragments, the non-comment contents are
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # saved in a temporary file. After all fragments have been
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # processed, and only if new fragments were found, the contents
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # of the temporary file are processed. This ensures that older
8d0bff0b85e6c35d0d862cff1607cded58bf2341Nathan Bush # but still valid entries are retained in the destination file.