summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrussell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-12-26 23:59:53 +0000
committerrussell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-12-26 23:59:53 +0000
commita79dd4517137d99cb57081d0095b926ed5453622 (patch)
tree13e422ed20aa4c30e9e73322d710bd7267b4d1af
parent975b8d7c19303eac5f5f920d94839d04ff79ea1e (diff)
Fix for SE Linux (bug #3147)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/v1-0@521 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xMakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b657b5b..04e31ca 100755
--- a/Makefile
+++ b/Makefile
@@ -281,7 +281,7 @@ install: all devices $(LIBTONEZONE)
fi
install -D -m 755 $(LIBTONEZONE) $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE)
-
+ if [ -x /usr/sbin/sestatus ] && (/usr/sbin/sestatus | grep "SELinux status:" | grep -q "enabled") ; then restorecon -v $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE); fi
install -D -m 644 zaptel.h $(INSTALL_PREFIX)/usr/include/linux/zaptel.h
install -D -m 644 torisa.h $(INSTALL_PREFIX)/usr/include/linux/torisa.h
install -D -m 644 tonezone.h $(INSTALL_PREFIX)/usr/include/tonezone.h