1*11838SLiane.Praza@Sun.COM# 2*11838SLiane.Praza@Sun.COM# CDDL HEADER START 3*11838SLiane.Praza@Sun.COM# 4*11838SLiane.Praza@Sun.COM# The contents of this file are subject to the terms of the 5*11838SLiane.Praza@Sun.COM# Common Development and Distribution License (the "License"). 6*11838SLiane.Praza@Sun.COM# You may not use this file except in compliance with the License. 7*11838SLiane.Praza@Sun.COM# 8*11838SLiane.Praza@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*11838SLiane.Praza@Sun.COM# or http://www.opensolaris.org/os/licensing. 10*11838SLiane.Praza@Sun.COM# See the License for the specific language governing permissions 11*11838SLiane.Praza@Sun.COM# and limitations under the License. 12*11838SLiane.Praza@Sun.COM# 13*11838SLiane.Praza@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each 14*11838SLiane.Praza@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*11838SLiane.Praza@Sun.COM# If applicable, add the following below this CDDL HEADER, with the 16*11838SLiane.Praza@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying 17*11838SLiane.Praza@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner] 18*11838SLiane.Praza@Sun.COM# 19*11838SLiane.Praza@Sun.COM# CDDL HEADER END 20*11838SLiane.Praza@Sun.COM# 21*11838SLiane.Praza@Sun.COM 22*11838SLiane.Praza@Sun.COM# 23*11838SLiane.Praza@Sun.COM# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 24*11838SLiane.Praza@Sun.COM# Use is subject to license terms. 25*11838SLiane.Praza@Sun.COM# 26*11838SLiane.Praza@Sun.COM 27*11838SLiane.Praza@Sun.COM# 28*11838SLiane.Praza@Sun.COM# This isn't really a transform, but it's a valid default. 29*11838SLiane.Praza@Sun.COM# 30*11838SLiane.Praza@Sun.COMset name=org.opensolaris.consolidation value=osnet 31*11838SLiane.Praza@Sun.COM 32*11838SLiane.Praza@Sun.COM# 33*11838SLiane.Praza@Sun.COM# For kernel/drv, set .conf files to mode 0644. Assume all other 34*11838SLiane.Praza@Sun.COM# files there are drivers, and give them mode 0755 and reboot-needed. 35*11838SLiane.Praza@Sun.COM# 36*11838SLiane.Praza@Sun.COM# The (?<!r) construct in the reboot-needed transform is a negative 37*11838SLiane.Praza@Sun.COM# lookbehind assertion: it says "only match this regex if the 38*11838SLiane.Praza@Sun.COM# previously matched text does NOT match regex r." So it will match 39*11838SLiane.Praza@Sun.COM# all files in the various kernel trees, except for .conf files. 40*11838SLiane.Praza@Sun.COM# 41*11838SLiane.Praza@Sun.COM<transform file path=.*kernel/drv/.+\.conf -> default mode 0644> 42*11838SLiane.Praza@Sun.COM<transform file path=.*kernel/drv/.+ -> default mode 0755> 43*11838SLiane.Praza@Sun.COM<transform file path=.*kernel/.+(?<!\.conf)$ -> default reboot-needed true> 44*11838SLiane.Praza@Sun.COM 45*11838SLiane.Praza@Sun.COM# 46*11838SLiane.Praza@Sun.COM# shared objects should generally have mode 0755 47*11838SLiane.Praza@Sun.COM# 48*11838SLiane.Praza@Sun.COM<transform file path=.*lib/.*\.so.* -> default mode 0755> 49*11838SLiane.Praza@Sun.COM 50*11838SLiane.Praza@Sun.COM# 51*11838SLiane.Praza@Sun.COM# Catch some of the collections of largely read-only files 52*11838SLiane.Praza@Sun.COM# 53*11838SLiane.Praza@Sun.COM<transform file path=usr/lib/help/.+ -> default mode 0444> 54*11838SLiane.Praza@Sun.COM<transform file path=usr/share/doc/ksh/.+ -> default mode 0644> 55*11838SLiane.Praza@Sun.COM<transform file path=usr/share/ipfilter/.+ -> default mode 0644> 56*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/ccs/.+ -> default mode 0644> 57*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/java/.+ -> default mode 0644> 58*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+\.properties -> default mode 0644> 59*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+ -> default mode 0444> 60*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/locale/com/sun/.+ -> default mode 0644> 61*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/mailx/.+ -> default mode 0644> 62*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/nterm/.+ -> default mode 0644> 63*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/pub/.+ -> default mode 0644> 64*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/sgml/.+ -> default mode 0644> 65*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/slp/.+ -> default mode 0644> 66*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/tabset/.+ -> default mode 0644> 67*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/t.+ -> default mode 0644> 68*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/unittab/.+ -> default mode 0644> 69*11838SLiane.Praza@Sun.COM<transform file path=usr/share/lib/zoneinfo/.+ -> default mode 0644> 70*11838SLiane.Praza@Sun.COM<transform file path=usr/share/src/grub/.+ -> default mode 0644> 71*11838SLiane.Praza@Sun.COM<transform file path=usr/share/.+ -> default mode 0444> 72*11838SLiane.Praza@Sun.COM 73*11838SLiane.Praza@Sun.COM 74*11838SLiane.Praza@Sun.COM# 75*11838SLiane.Praza@Sun.COM# For what's left, go with root:bin 0644, +x for directories 76*11838SLiane.Praza@Sun.COM# 77*11838SLiane.Praza@Sun.COM# 78*11838SLiane.Praza@Sun.COM<transform file dir -> default owner root> 79*11838SLiane.Praza@Sun.COM<transform file dir -> default group bin> 80*11838SLiane.Praza@Sun.COM<transform file -> default mode 0644> 81*11838SLiane.Praza@Sun.COM<transform dir -> default mode 0755> 82