CC-2797: Files in /etc/airtime should not be world readable

-fixed
This commit is contained in:
martin 2011-09-09 16:16:48 -04:00
parent 1ba200441e
commit 1b165f473c
6 changed files with 95 additions and 9 deletions

View file

@ -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')