mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
apparmor fix
This commit is contained in:
parent
2e6a660b59
commit
40f8c5c5c7
1 changed files with 3 additions and 1 deletions
|
@ -1137,7 +1137,9 @@ if [ "$named" = 'yes' ]; then
|
||||||
chmod 640 /etc/bind/named.conf
|
chmod 640 /etc/bind/named.conf
|
||||||
aa-complain /usr/sbin/named 2>/dev/null
|
aa-complain /usr/sbin/named 2>/dev/null
|
||||||
if [ "$apparmor" = 'yes' ]; then
|
if [ "$apparmor" = 'yes' ]; then
|
||||||
echo "/home/** rwm," >> /etc/apparmor.d/local/usr.sbin.named 2>/dev/null
|
# echo "/home/** rwm," >> /etc/apparmor.d/local/usr.sbin.named 2>/dev/null
|
||||||
|
sed -i "s#/etc/bind/\*\* rw,#/etc/bind/\*\* rw,\n /home/\*\* rwm,#g" /etc/apparmor.d/usr.sbin.named
|
||||||
|
sed -i "s#/etc/bind/\*\* r,#/etc/bind/\*\* rw,\n /home/\*\* rwm,#g" /etc/apparmor.d/usr.sbin.named
|
||||||
service apparmor status >/dev/null 2>&1
|
service apparmor status >/dev/null 2>&1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
service apparmor restart
|
service apparmor restart
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue