From 4cacf031a2aa0ef0b31b92085624bebb8084d73d Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Mon, 26 Apr 2010 13:32:36 +0000 Subject: Support loading and merging legacy perm.conf file. --- src/msec/msecperms.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/msec/msecperms.py b/src/msec/msecperms.py index ec50dca..21f7e31 100755 --- a/src/msec/msecperms.py +++ b/src/msec/msecperms.py @@ -144,6 +144,11 @@ if __name__ == "__main__": # load variables from base level config.merge_with_baselevel(log, permconf, base_level, config.load_default_perms, root='') + # merge with a legacy perm.local + permlocal = config.PermConfig(log, config="%s/etc/security/msec/perm.local" % root) + permlocal.load() + permconf.merge(permlocal, overwrite=True) + # reloading levelconf for base level levelconf = config.load_default_perms(log, base_level, root=root) -- cgit v1.2.1