xref: /onnv-gate/usr/src/pkg/transforms/defaults (revision 13057:97ef25510836)
111838SLiane.Praza@Sun.COM#
211838SLiane.Praza@Sun.COM# CDDL HEADER START
311838SLiane.Praza@Sun.COM#
411838SLiane.Praza@Sun.COM# The contents of this file are subject to the terms of the
511838SLiane.Praza@Sun.COM# Common Development and Distribution License (the "License").
611838SLiane.Praza@Sun.COM# You may not use this file except in compliance with the License.
711838SLiane.Praza@Sun.COM#
811838SLiane.Praza@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
911838SLiane.Praza@Sun.COM# or http://www.opensolaris.org/os/licensing.
1011838SLiane.Praza@Sun.COM# See the License for the specific language governing permissions
1111838SLiane.Praza@Sun.COM# and limitations under the License.
1211838SLiane.Praza@Sun.COM#
1311838SLiane.Praza@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
1411838SLiane.Praza@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1511838SLiane.Praza@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
1611838SLiane.Praza@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
1711838SLiane.Praza@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
1811838SLiane.Praza@Sun.COM#
1911838SLiane.Praza@Sun.COM# CDDL HEADER END
2011838SLiane.Praza@Sun.COM#
2111838SLiane.Praza@Sun.COM
2211838SLiane.Praza@Sun.COM#
2312616Sdp@eng.sun.com# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
2411838SLiane.Praza@Sun.COM#
2511838SLiane.Praza@Sun.COM
2611838SLiane.Praza@Sun.COM#
2711838SLiane.Praza@Sun.COM# For kernel/drv, set .conf files to mode 0644.  Assume all other
2811838SLiane.Praza@Sun.COM# files there are drivers, and give them mode 0755 and reboot-needed.
2911838SLiane.Praza@Sun.COM#
3011838SLiane.Praza@Sun.COM# The (?<!r) construct in the reboot-needed transform is a negative
3111838SLiane.Praza@Sun.COM# lookbehind assertion: it says "only match this regex if the
3211838SLiane.Praza@Sun.COM# previously matched text does NOT match regex r."  So it will match
3311838SLiane.Praza@Sun.COM# all files in the various kernel trees, except for .conf files.
3411838SLiane.Praza@Sun.COM#
3511838SLiane.Praza@Sun.COM<transform file path=.*kernel/drv/.+\.conf -> default mode 0644>
3611838SLiane.Praza@Sun.COM<transform file path=.*kernel/drv/.+ -> default mode 0755>
3711838SLiane.Praza@Sun.COM<transform file path=.*kernel/.+(?<!\.conf)$ -> default reboot-needed true>
3811838SLiane.Praza@Sun.COM
3912616Sdp@eng.sun.com
4012616Sdp@eng.sun.com#
4112616Sdp@eng.sun.com# Non-global zones should not have content in kernel, usr/kernel (and
4212616Sdp@eng.sun.com# other kernel dirs) or in boot/.
4312616Sdp@eng.sun.com#
4412616Sdp@eng.sun.com<transform file dir link hardlink path=.*kernel/.* -> set variant.opensolaris.zone global>
4512616Sdp@eng.sun.com<transform dir path=kernel$ -> set variant.opensolaris.zone global>
4612616Sdp@eng.sun.com<transform dir path=.*/kernel$ -> set variant.opensolaris.zone global>
4712616Sdp@eng.sun.com
4812616Sdp@eng.sun.com<transform file dir link hardlink path=boot/.* -> set variant.opensolaris.zone global>
4912616Sdp@eng.sun.com<transform dir path=boot$ -> set variant.opensolaris.zone global>
5012616Sdp@eng.sun.com
5111838SLiane.Praza@Sun.COM#
5211838SLiane.Praza@Sun.COM# shared objects should generally have mode 0755
5311838SLiane.Praza@Sun.COM#
5411838SLiane.Praza@Sun.COM<transform file path=.*lib/.*\.so.* -> default mode 0755>
5511838SLiane.Praza@Sun.COM
5611838SLiane.Praza@Sun.COM#
5711838SLiane.Praza@Sun.COM# Catch some of the collections of largely read-only files
5811838SLiane.Praza@Sun.COM#
5911838SLiane.Praza@Sun.COM<transform file path=usr/lib/help/.+ -> default mode 0444>
6011838SLiane.Praza@Sun.COM<transform file path=usr/share/doc/ksh/.+ -> default mode 0644>
6111838SLiane.Praza@Sun.COM<transform file path=usr/share/ipfilter/.+ -> default mode 0644>
6211838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/ccs/.+ -> default mode 0644>
6311838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/java/.+ -> default mode 0644>
6411838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+\.properties -> default mode 0644>
6511838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+ -> default mode 0444>
6611838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/locale/com/sun/.+ -> default mode 0644>
6711838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/mailx/.+ -> default mode 0644>
6811838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/nterm/.+ -> default mode 0644>
6911838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/pub/.+ -> default mode 0644>
7011838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/sgml/.+ -> default mode 0644>
7111838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/slp/.+ -> default mode 0644>
7211838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/tabset/.+ -> default mode 0644>
7311838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/t.+ -> default mode 0644>
7411838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/unittab/.+ -> default mode 0644>
7511838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/zoneinfo/.+ -> default mode 0644>
7611838SLiane.Praza@Sun.COM<transform file path=usr/share/src/grub/.+ -> default mode 0644>
7711838SLiane.Praza@Sun.COM<transform file path=usr/share/.+ -> default mode 0444>
7811838SLiane.Praza@Sun.COM
7911838SLiane.Praza@Sun.COM#
8011838SLiane.Praza@Sun.COM# For what's left, go with root:bin 0644, +x for directories
8111838SLiane.Praza@Sun.COM#
8211838SLiane.Praza@Sun.COM<transform file dir -> default owner root>
8311838SLiane.Praza@Sun.COM<transform file dir -> default group bin>
8411838SLiane.Praza@Sun.COM<transform file -> default mode 0644>
8511838SLiane.Praza@Sun.COM<transform dir -> default mode 0755>
86*13057SPeter.Dennis@Oracle.COM
87*13057SPeter.Dennis@Oracle.COM#
88*13057SPeter.Dennis@Oracle.COM# Default values for legacy actions
89*13057SPeter.Dennis@Oracle.COM#
90*13057SPeter.Dennis@Oracle.COM<transform legacy -> default vendor "Oracle Corporation">
91*13057SPeter.Dennis@Oracle.COM<transform legacy -> default hotline "Please contact your local service provider">
92*13057SPeter.Dennis@Oracle.COM<transform legacy -> default category system>
93*13057SPeter.Dennis@Oracle.COM<transform legacy -> default version "11.11,REV=2009.11.11">
94*13057SPeter.Dennis@Oracle.COM<transform legacy -> default arch $(ARCH)>
95