Skip to content

Commit 8ba68ee

Browse files
rhatdanlsm5
authored andcommitted
Add proper labeling for RamaLama
Signed-off-by: Daniel J Walsh <[email protected]>
1 parent a4c8cd9 commit 8ba68ee

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

container.fc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
# Unlike the runc-<SNAPSHOTTER> directory, this directory does not contain the "executor" directory inside it.
9393
/var/lib/buildkit/containerd-.*(/.*?) gen_context(system_u:object_r:container_ro_file_t,s0)
9494

95+
HOME_DIR/\.local/share/ramalama(/.*)? gen_context(system_u:object_r:container_ro_file_t,s0)
9596
HOME_DIR/\.local/share/containers/storage/overlay(/.*)? gen_context(system_u:object_r:container_ro_file_t,s0)
9697
HOME_DIR/\.local/share/containers/storage/overlay2(/.*)? gen_context(system_u:object_r:container_ro_file_t,s0)
9798
HOME_DIR/\.local/share/containers/storage/overlay-layers(/.*)? gen_context(system_u:object_r:container_ro_file_t,s0)

container.if

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ interface(`container_filetrans_named_content',`
562562
# Third-party snapshotters
563563
filetrans_pattern($1, container_var_lib_t, container_ro_file_t, dir, "containerd-soci")
564564

565+
filetrans_pattern($1, data_home_t, container_ro_file_t, dir, "ramalama")
565566
filetrans_pattern($1, data_home_t, container_ro_file_t, dir, "overlay")
566567
filetrans_pattern($1, data_home_t, container_ro_file_t, dir, "overlay-images")
567568
filetrans_pattern($1, data_home_t, container_ro_file_t, dir, "overlay-layers")

container.te

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
policy_module(container, 2.234.0)
1+
policy_module(container, 2.234.1)
22

33
gen_require(`
44
class passwd rootok;

0 commit comments

Comments
 (0)