Skip to content

Dracut: Update Dracut overlay module to correctly locate 'chcon' #11986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions SPECS/dracut/90overlayfs/azl-configure-selinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ if [ -n "$overlayfs" ]; then
echo "root folder label : ($contextType)"

# Set the type on the target folders
[ -e /sysroot ] && chcon -t $contextType /sysroot
[ -e /run/overlayfs ] && chcon -t $contextType /run/overlayfs
[ -e /run/ovlwork ] && chcon -t $contextType /run/ovlwork
CHCON_TOOL=$NEWROOT/usr/bin/chcon
[ -e /sysroot ] && $CHCON_TOOL -t $contextType /sysroot
[ -e /run/overlayfs ] && $CHCON_TOOL -t $contextType /run/overlayfs
[ -e /run/ovlwork ] && $CHCON_TOOL -t $contextType /run/ovlwork
fi
2 changes: 1 addition & 1 deletion SPECS/dracut/dracut.signatures.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"00-vrf.conf": "e2885a4b090d8ca3771e60ce6dcd8b849e28ce5002a5c7b71ff796a92deb2810",
"00-xen.conf": "8b7a89b7716cb40a9c0d681caed6994d81ff4dfad4fe50cea15cd47b885dc5a6",
"50-noxattr.conf": "61d95f05890ac6ee3355d0a386dd5645d82b7a4202d90305d997fd18c6d139dd",
"azl-configure-selinux.sh": "5f526509910fccdc2dffad4ef5070740847195510e3faefff39b831c9d28a439",
"azl-configure-selinux.sh": "a32da2e920348a5f991d6c418873a0a761f6e4bd926bb17a43cdb2c28b4f21d6",
"azl-liveos-artifacts-download.service": "888be8c82297cccd510d7f963611c2360ae67559826b2b474da6d9935237de64",
"azl-liveos-artifacts-download.sh": "f21dc68de8c81d8a8128e7a9d7be45d25978f0b5e47a4cf1a2d97b1e171ec045",
"dracut-102.tar.gz": "601b175cbf4d2ee902bb7bda3af8826ae2ca060c1af880f6da5a833413f4ec70",
Expand Down
5 changes: 4 additions & 1 deletion SPECS/dracut/dracut.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Summary: dracut to create initramfs
Name: dracut
Version: 102
Release: 10%{?dist}
Release: 11%{?dist}
# The entire source code is GPLv2+
# except install/* which is LGPLv2+
License: GPLv2+ AND LGPLv2+
Expand Down Expand Up @@ -315,6 +315,9 @@ ln -srv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
%dir %{_sharedstatedir}/%{name}/overlay

%changelog
* Mon Mar 05 2025 George Mileka <[email protected]> - 102-11
- Update overlayfs selinux handling with the full path of chcon

* Tue Feb 25 2025 Cameron Baird <[email protected]> - 102-10
- Fix 0006-dracut.sh-validate-instmods patch to not break crypto module blacklisting

Expand Down
Loading