CC-2797: Files in /etc/airtime should not be world readable
-fixed
This commit is contained in:
parent
1ba200441e
commit
1b165f473c
6 changed files with 95 additions and 9 deletions
|
@ -5,10 +5,15 @@ we need to update database host, dbname, username and password.
|
|||
This script reads from airtime.conf.
|
||||
"""
|
||||
import os
|
||||
import sys
|
||||
import ConfigParser
|
||||
import xml.dom.minidom
|
||||
from xml.dom.minidom import Node
|
||||
|
||||
if not os.geteuid() == 0:
|
||||
sys.exit('Must be root user.')
|
||||
|
||||
|
||||
#Read the universal values
|
||||
parser = ConfigParser.SafeConfigParser()
|
||||
parser.read('/etc/airtime/airtime.conf')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue