Skip to content

Commit

Permalink
Merge pull request #2643 from OSInside/fix_oci_security_sync_filters
Browse files Browse the repository at this point in the history
Fix oci security sync filters
  • Loading branch information
Conan-Kudo authored Sep 11, 2024
2 parents 4a1dc97 + 7ace6fe commit 5eab80c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
7 changes: 6 additions & 1 deletion build-tests/x86/tumbleweed/test-image-docker/appliance.kiwi
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<source path="obsrepositories:/"/>
</repository>
<packages type="image">
<package name="libcap-progs"/>
<package name="grub2"/>
<package name="ncurses-utils"/>
<package name="patterns-openSUSE-base"/>
Expand All @@ -39,7 +40,6 @@
<package name="dracut"/>
<package name="pigz"/>
<package name="elfutils"/>
<package name="systemd-presets-branding-openSUSE"/>
<package name="iputils"/>
<package name="tar"/>
<package name="psmisc"/>
Expand All @@ -57,7 +57,12 @@
<package name="fipscheck"/>
</packages>
<packages type="bootstrap">
<package name="gawk"/>
<package name="grep"/>
<package name="gzip"/>
<package name="udev"/>
<package name="xz"/>
<package name="shadow"/>
<package name="filesystem"/>
<package name="glibc-locale"/>
<package name="cracklib-dict-full"/>
Expand Down
3 changes: 0 additions & 3 deletions kiwi/oci_tools/umoci.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ def sync_rootfs(self, root_dir, exclude_list=None):
os.sep.join([self.oci_root_dir, 'rootfs']),
exclude_list=exclude_list,
options=Defaults.get_sync_options() + [
'--filter', '-x! user.*',
'--filter', '-x! security.ima*',
'--filter', '-x! security.capability*',
'--delete'
]
)
Expand Down
3 changes: 0 additions & 3 deletions test/unit/oci_tools/umoci_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ def test_sync_rootfs(self, mock_sync):
options=[
'--archive', '--hard-links', '--xattrs', '--acls',
'--one-file-system', '--inplace',
'--filter', '-x! user.*',
'--filter', '-x! security.ima*',
'--filter', '-x! security.capability*',
'--delete'
]
)
Expand Down

0 comments on commit 5eab80c

Please sign in to comment.