defaults revision ead1f93ee620d7580f7e53350fe5a884fc4f158a
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A
0N/A#
0N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A
0N/A#
0N/A# This isn't really a transform, but it's a valid default.
0N/A#
0N/Aset name=org.opensolaris.consolidation value=osnet
0N/A
0N/A#
0N/A# For kernel/drv, set .conf files to mode 0644. Assume all other
0N/A# files there are drivers, and give them mode 0755 and reboot-needed.
0N/A#
0N/A# The (?<!r) construct in the reboot-needed transform is a negative
0N/A# lookbehind assertion: it says "only match this regex if the
0N/A# previously matched text does NOT match regex r." So it will match
0N/A# all files in the various kernel trees, except for .conf files.
0N/A#
0N/A<transform file path=.*kernel/drv/.+\.conf -> default mode 0644>
0N/A<transform file path=.*kernel/drv/.+ -> default mode 0755>
0N/A<transform file path=.*kernel/.+(?<!\.conf)$ -> default reboot-needed true>
0N/A
0N/A#
0N/A# shared objects should generally have mode 0755
0N/A#
0N/A<transform file path=.*lib/.*\.so.* -> default mode 0755>
0N/A
0N/A#
0N/A# Catch some of the collections of largely read-only files
0N/A#
0N/A<transform file path=usr/lib/help/.+ -> default mode 0444>
0N/A<transform file path=usr/share/doc/ksh/.+ -> default mode 0644>
0N/A<transform file path=usr/share/ipfilter/.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/ccs/.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/java/.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+\.properties -> default mode 0644>
0N/A<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+ -> default mode 0444>
0N/A<transform file path=usr/share/lib/locale/com/sun/.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/mailx/.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/nterm/.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/pub/.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/sgml/.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/slp/.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/tabset/.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/t.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/unittab/.+ -> default mode 0644>
0N/A<transform file path=usr/share/lib/zoneinfo/.+ -> default mode 0644>
0N/A<transform file path=usr/share/src/grub/.+ -> default mode 0644>
0N/A<transform file path=usr/share/.+ -> default mode 0444>
0N/A
0N/A
0N/A#
0N/A# For what's left, go with root:bin 0644, +x for directories
0N/A#
0N/A#
0N/A<transform file dir -> default owner root>
0N/A<transform file dir -> default group bin>
0N/A<transform file -> default mode 0644>
0N/A<transform dir -> default mode 0755>
0N/A