]> git.ipfire.org Git - people/stevee/selinux-policy.git/commitdiff
Add btrfs and ext4 to labeling targets.
authorChris PeBenito <cpebenito@tresys.com>
Tue, 11 Aug 2009 13:01:58 +0000 (09:01 -0400)
committerChris PeBenito <cpebenito@tresys.com>
Tue, 11 Aug 2009 13:01:58 +0000 (09:01 -0400)
Changelog
Makefile

index 9e97eab8fc2b636c6240f1e7f4b4d91eff25d6cf..d2d030c149693699ebb17fb47bff5daa8231f8da 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,4 @@
+- Add btrfs and ext4 to labeling targets.
 - Fix infrastructure to expand macros in initrc_context when installing.
 - Handle unix_chkpwd usage by useradd and groupadd.
 - Add missing compatibility aliases for xdm_xserver*_t types.
index 57b3b1045936f4fc3a83c25c36891928e1736fa4..72f4ff9c0339825c5b7cf09359ab162d510e6b9b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -303,7 +303,8 @@ off_mods += $(filter-out $(cmdline_off) $(cmdline_base) $(cmdline_mods), $(mod_c
 off_mods += $(filter-out $(base_mods) $(mod_mods) $(off_mods),$(notdir $(detected_mods)))
 
 # filesystems to be used in labeling targets
-filesystems = $(shell mount | grep -v "context=" | egrep -v '\((|.*,)bind(,.*|)\)' | awk '/(ext[23]| xfs| jfs).*rw/{print $$3}';)
+filesystems = $(shell mount | grep -v "context=" | egrep -v '\((|.*,)bind(,.*|)\)' | awk '/(ext[234]|btrfs| xfs| jfs).*rw/{print $$3}';)
+fs_names := "btrfs ext2 ext3 ext4 xfs jfs"
 
 ########################################
 #
@@ -604,7 +605,7 @@ $(tags):
 # Filesystem labeling
 #
 checklabels:
-       @echo "Checking labels on filesystem types: ext2 ext3 xfs jfs"
+       @echo "Checking labels on filesystem types: $(fs_names)"
        @if test -z "$(filesystems)"; then \
                echo "No filesystems with extended attributes found!" ;\
                false ;\
@@ -612,7 +613,7 @@ checklabels:
        $(verbose) $(SETFILES) -v -n $(fcpath) $(filesystems)
 
 restorelabels:
-       @echo "Restoring labels on filesystem types: ext2 ext3 xfs jfs"
+       @echo "Restoring labels on filesystem types: $(fs_names)"
        @if test -z "$(filesystems)"; then \
                echo "No filesystems with extended attributes found!" ;\
                false ;\
@@ -620,7 +621,7 @@ restorelabels:
        $(verbose) $(SETFILES) -v $(fcpath) $(filesystems)
 
 relabel:
-       @echo "Relabeling filesystem types: ext2 ext3 xfs jfs"
+       @echo "Relabeling filesystem types: $(fs_names)"
        @if test -z "$(filesystems)"; then \
                echo "No filesystems with extended attributes found!" ;\
                false ;\
@@ -628,7 +629,7 @@ relabel:
        $(verbose) $(SETFILES) $(fcpath) $(filesystems)
 
 resetlabels:
-       @echo "Resetting labels on filesystem types: ext2 ext3 xfs jfs"
+       @echo "Resetting labels on filesystem types: $(fs_names)"
        @if test -z "$(filesystems)"; then \
                echo "No filesystems with extended attributes found!" ;\
                false ;\