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