diff --git a/Makefile b/Makefile index 568c889..e2a6f4a 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,10 @@ load: dockersock.pp semodule -i $^ +.PHONY: unload +unload: + semodule -r dockersock + dockersock.mod: dockersock.te checkmodule -M -m $< -o $@ diff --git a/README.md b/README.md index b36cb10..663944e 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,7 @@ to build the SELinux policy module package, and then load it as root with semodule -i dockersock.pp + +Should you ever wish to remove the module, do + + semodule -r dockersock