Skip to content

Commit 2ea5590

Browse files
osbuild: set SELinux labels on qemu-secex image
1 parent 1a9c051 commit 2ea5590

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

src/osbuild-manifests/platform.qemu-secex.ipp.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,58 @@ pipelines:
109109
uuid: random
110110
label:
111111
mpp-format-string: '{sd_fs_label}'
112+
- type: org.osbuild.selinux
113+
options:
114+
file_contexts: input://tree/etc/selinux/targeted/contexts/files/file_contexts
115+
target: mount://root/
116+
inputs:
117+
tree:
118+
type: org.osbuild.tree
119+
origin: org.osbuild.pipeline
120+
references:
121+
- name:build
122+
devices:
123+
disk:
124+
type: org.osbuild.loopback
125+
options:
126+
filename: disk.img
127+
partscan: true
128+
mounts:
129+
- name: root
130+
type: org.osbuild.xfs
131+
source: disk
132+
partition:
133+
mpp-format-int: '{image_secex.layout[''root''].partnum}'
134+
target: /
135+
- type: org.osbuild.selinux
136+
options:
137+
file_contexts: input://tree/etc/selinux/targeted/contexts/files/file_contexts
138+
target: mount://root/boot/
139+
inputs:
140+
tree:
141+
type: org.osbuild.tree
142+
origin: org.osbuild.pipeline
143+
references:
144+
- name:build
145+
devices:
146+
disk:
147+
type: org.osbuild.loopback
148+
options:
149+
filename: disk.img
150+
partscan: true
151+
mounts:
152+
- name: root
153+
type: org.osbuild.xfs
154+
source: disk
155+
partition:
156+
mpp-format-int: '{image_secex.layout[''root''].partnum}'
157+
target: /
158+
- name: boot
159+
type: org.osbuild.ext4
160+
source: disk
161+
partition:
162+
mpp-format-int: '{image_secex.layout[''boot''].partnum}'
163+
target: /boot
112164
- type: org.osbuild.copy
113165
inputs:
114166
tree:

0 commit comments

Comments
 (0)