defaults revision 979c69e6fa55f8c86e98b621bbf3760943d35409
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm#
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# CDDL HEADER START
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm#
d102fa60157ab117d151624aa325477a09fbc671mfloryan# The contents of this file are subject to the terms of the
d102fa60157ab117d151624aa325477a09fbc671mfloryan# Common Development and Distribution License (the "License").
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# You may not use this file except in compliance with the License.
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm#
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# or http://www.opensolaris.org/os/licensing.
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# See the License for the specific language governing permissions
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# and limitations under the License.
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm#
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# When distributing Covered Code, include this CDDL HEADER in each
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# If applicable, add the following below this CDDL HEADER, with the
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# fields enclosed by brackets "[]" replaced with your own identifying
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# information: Portions Copyright [yyyy] [name of copyright owner]
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm#
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# CDDL HEADER END
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm#
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm
d23d8bdb46351262c779deeee5e8864f111ccacdTed Gould#
d102fa60157ab117d151624aa325477a09fbc671mfloryan# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm#
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm#
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm# For kernel/drv, set .conf files to mode 0644. Assume all other
d102fa60157ab117d151624aa325477a09fbc671mfloryan# files there are drivers, and give them mode 0755 and reboot-needed.
d3d45b6755c6a8614cbc4c74cda69ecb1274918apjrm#
d102fa60157ab117d151624aa325477a09fbc671mfloryan# The (?<!r) construct in the reboot-needed transform is a negative
d102fa60157ab117d151624aa325477a09fbc671mfloryan# lookbehind assertion: it says "only match this regex if the
d23d8bdb46351262c779deeee5e8864f111ccacdTed Gould# previously matched text does NOT match regex r." So it will match
d23d8bdb46351262c779deeee5e8864f111ccacdTed Gould# all files in the various kernel trees, except for .conf files.
d23d8bdb46351262c779deeee5e8864f111ccacdTed Gould#
<transform file path=.*kernel/drv/.+\.conf -> default mode 0644>
<transform file path=.*kernel/drv/.+ -> default mode 0755>
<transform file path=.*kernel/.+(?<!\.conf)$ -> default reboot-needed true>
#
# Non-global zones should not have content in kernel, usr/kernel (and
# other kernel dirs) or in boot/.
#
<transform file dir link hardlink path=.*kernel/.* -> set variant.opensolaris.zone global>
<transform dir path=kernel$ -> set variant.opensolaris.zone global>
<transform dir path=.*/kernel$ -> set variant.opensolaris.zone global>
<transform file dir link hardlink path=boot/.* -> set variant.opensolaris.zone global>
<transform dir path=boot$ -> set variant.opensolaris.zone global>
#
# shared objects should generally have mode 0755
#
<transform file path=.*lib/.*\.so.* -> default mode 0755>
#
# Catch some of the collections of largely read-only files
#
<transform file path=usr/lib/help/.+ -> default mode 0444>
<transform file path=usr/share/doc/ksh/.+ -> default mode 0644>
<transform file path=usr/share/ipfilter/.+ -> default mode 0644>
<transform file path=usr/share/lib/ccs/.+ -> default mode 0644>
<transform file path=usr/share/lib/java/.+ -> default mode 0644>
<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+\.properties -> default mode 0644>
<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+ -> default mode 0444>
<transform file path=usr/share/lib/locale/com/sun/.+ -> default mode 0644>
<transform file path=usr/share/lib/mailx/.+ -> default mode 0644>
<transform file path=usr/share/lib/nterm/.+ -> default mode 0644>
<transform file path=usr/share/lib/pub/.+ -> default mode 0644>
<transform file path=usr/share/lib/sgml/.+ -> default mode 0644>
<transform file path=usr/share/lib/slp/.+ -> default mode 0644>
<transform file path=usr/share/lib/tabset/.+ -> default mode 0644>
<transform file path=usr/share/lib/t.+ -> default mode 0644>
<transform file path=usr/share/lib/unittab/.+ -> default mode 0644>
<transform file path=usr/share/lib/zoneinfo/.+ -> default mode 0644>
<transform file path=usr/share/src/grub/.+ -> default mode 0644>
<transform file path=usr/share/.+ -> default mode 0444>
#
# For what's left, go with root:bin 0644, +x for directories
#
<transform file dir -> default owner root>
<transform file dir -> default group bin>
<transform file -> default mode 0644>
<transform dir -> default mode 0755>
#
# Default values for legacy actions
#
<transform legacy -> default vendor "Illumos">
<transform legacy -> default hotline "Please contact your local service provider">
<transform legacy -> default category system>
<transform legacy -> default version "11.11,REV=2009.11.11">
<transform legacy -> default arch $(ARCH)>