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