Skip to contentSkip to conversation

Makefile and /etc/passwd

PATCH Russell Coker 1 participant 1 message Jul 8, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The attached patch will cause the file_contexts file to be outdated by every change to /etc/passwd. This allows adding new users who were in the policy but not /etc/passwd previously, and also dealing with a change of location for the home directory.

Signature · 2 lines
http://apac.redhat.com/disclaimer
See above URL for disclaimer.
Makefile renamed from usr/src/se/policy/Makefile +1 -1
diff -ru /usr/src/se/policy/Makefile ./Makefile
@@ -139,7 +139,7 @@
 	@mkdir -p $(CONTEXTPATH)/files
 	install -m 644 $(FC) $(FCPATH)
 
-$(FC): $(FCFILES) domains/program domains/misc file_contexts/program file_contexts/misc users
+$(FC): $(FCFILES) domains/program domains/misc file_contexts/program file_contexts/misc users /etc/passwd
 	@echo "Building file_contexts ..."
 	@m4 $(FCFILES) > [email protected]
 	@grep -v "^/root" [email protected] > [email protected]