Makefile: Add -E to setfiles labeling targets.

This will cause setfiles to error if there are conflicting labeling
specifications for files due to hardlinks.

closes #218

Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
Chris PeBenito 2021-01-06 13:51:03 -05:00
parent 010692dda2
commit 26ed37c991
2 changed files with 6 additions and 6 deletions

View File

@ -2,8 +2,8 @@ Reference Policy has the following runtime requirements:
* Linux kernel >= 2.6.33
Reference Policy has the following build requirements:
* SELinux userspace 2.8
* Python >= 3.4
* SELinux userspace 3.0
* Python >= 3.5
When developing a policy, running scripts from directory testing/ requires:
* Python >= 3.6

View File

@ -614,7 +614,7 @@ checklabels:
echo "No filesystems with extended attributes found!" ;\
false ;\
fi
$(verbose) $(SETFILES) -v -n $(fcpath) $(filesystems)
$(verbose) $(SETFILES) -E -v -n $(fcpath) $(filesystems)
restorelabels:
@echo "Restoring labels on filesystem types: $(fs_names)"
@ -622,7 +622,7 @@ restorelabels:
echo "No filesystems with extended attributes found!" ;\
false ;\
fi
$(verbose) $(SETFILES) -v $(fcpath) $(filesystems)
$(verbose) $(SETFILES) -E -v $(fcpath) $(filesystems)
relabel:
@echo "Relabeling filesystem types: $(fs_names)"
@ -630,7 +630,7 @@ relabel:
echo "No filesystems with extended attributes found!" ;\
false ;\
fi
$(verbose) $(SETFILES) $(fcpath) $(filesystems)
$(verbose) $(SETFILES) -E $(fcpath) $(filesystems)
resetlabels:
@echo "Resetting labels on filesystem types: $(fs_names)"
@ -638,7 +638,7 @@ resetlabels:
echo "No filesystems with extended attributes found!" ;\
false ;\
fi
$(verbose) $(SETFILES) -F $(fcpath) $(filesystems)
$(verbose) $(SETFILES) -E -F $(fcpath) $(filesystems)
########################################
#