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