xref: /illumos-gate/usr/src/pkg/transforms/defaults (revision eb9a1df2aeb866bf1de4494433b6d7e5fa07b3ae)
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 (c) 2010, Oracle and/or its affiliates. All rights reserved.
24# Copyright 2011, Richard Lowe
25#
26
27#
28# For kernel/drv, set .conf files to mode 0644.  Assume all other
29# files there are drivers, and give them mode 0755 and reboot-needed.
30#
31# The (?<!r) construct in the reboot-needed transform is a negative
32# lookbehind assertion: it says "only match this regex if the
33# previously matched text does NOT match regex r."  So it will match
34# all files in the various kernel trees, except for .conf files.
35#
36<transform file path=.*kernel/drv/.+\.conf -> default mode 0644>
37<transform file path=.*kernel/drv/.+ -> default mode 0755>
38<transform file path=.*kernel/.+(?<!\.conf)$ -> default reboot-needed true>
39
40
41#
42# Non-global zones should not have content in kernel, usr/kernel (and
43# other kernel dirs) or in boot/.
44#
45<transform file dir link hardlink path=.*kernel/.* -> set variant.opensolaris.zone global>
46<transform dir path=kernel$ -> set variant.opensolaris.zone global>
47<transform dir path=.*/kernel$ -> set variant.opensolaris.zone global>
48
49<transform file dir link hardlink path=boot/.* -> set variant.opensolaris.zone global>
50<transform dir path=boot$ -> set variant.opensolaris.zone global>
51
52#
53# shared objects should generally have mode 0755
54#
55<transform file path=.*lib/.*\.so.* -> default mode 0755>
56
57#
58# Catch some of the collections of largely read-only files
59#
60<transform file path=usr/lib/help/.+ -> default mode 0444>
61<transform file path=usr/share/doc/ksh/.+ -> default mode 0644>
62<transform file path=usr/share/ipfilter/.+ -> default mode 0644>
63<transform file path=usr/share/lib/ccs/.+ -> default mode 0644>
64<transform file path=usr/share/lib/java/.+ -> default mode 0644>
65<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+\.properties -> default mode 0644>
66<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+ -> default mode 0444>
67<transform file path=usr/share/lib/locale/com/sun/.+ -> default mode 0644>
68<transform file path=usr/share/lib/mailx/.+ -> default mode 0644>
69<transform file path=usr/share/lib/nterm/.+ -> default mode 0644>
70<transform file path=usr/share/lib/pub/.+ -> default mode 0644>
71<transform file path=usr/share/lib/sgml/.+ -> default mode 0644>
72<transform file path=usr/share/lib/slp/.+ -> default mode 0644>
73<transform file path=usr/share/lib/tabset/.+ -> default mode 0644>
74<transform file path=usr/share/lib/t.+ -> default mode 0644>
75<transform file path=usr/share/lib/unittab/.+ -> default mode 0644>
76<transform file path=usr/share/lib/zoneinfo/.+ -> default mode 0644>
77<transform file path=usr/share/src/grub/.+ -> default mode 0644>
78<transform file path=usr/share/.+ -> default mode 0444>
79<transform file path=usr/has/man/.+ -> default mode 0444>
80
81<transform dir path=usr/share$ -> default group sys>
82<transform dir path=usr/share/lib$ -> default group sys>
83
84#
85# For what's left, go with root:bin 0644, +x for directories
86#
87<transform file dir -> default owner root>
88<transform file dir -> default group bin>
89<transform file -> default mode 0644>
90<transform dir -> default mode 0755>
91
92#
93# Default values for legacy actions
94#
95<transform legacy -> default vendor "Illumos">
96<transform legacy -> default hotline "Please contact your local service provider">
97<transform legacy -> default category system>
98<transform legacy -> default version "11.11,REV=2009.11.11">
99<transform legacy -> default arch $(ARCH)>
100