[firewall4] Il faut être root pour utiliser le firewall
This commit is contained in:
parent
7882a04669
commit
a1c5c2b414
1 changed files with 6 additions and 2 deletions
|
@ -2,12 +2,16 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
|
||||
import sys
|
||||
import os
|
||||
import sys
|
||||
sys.path.append('/usr/scripts/gestion')
|
||||
sys.path.append('/usr/scripts/lc_ldap')
|
||||
|
||||
if os.getuid() != 0:
|
||||
from affich_tools import coul
|
||||
sys.stderr.write(coul("Il faut être root pour utiliser le firewall\n", 'gras'))
|
||||
sys.exit(1)
|
||||
|
||||
from config import NETs, blacklist_sanctions, blacklist_sanctions_soft, mac_komaz, mac_titanic
|
||||
|
||||
import config.firewall
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue