diff options
author | Frederic Lepied <flepied@mandriva.com> | 2003-10-09 05:59:32 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2003-10-09 05:59:32 +0000 |
commit | bf044420d6b42025d7b46c172a38afd06d786fd9 (patch) | |
tree | c38b9d35eaad4d9df5f2032642426db4a0395fe7 | |
parent | 432dfffc4d2a30b109ade6b0a4d2193694d49775 (diff) | |
download | msec-bf044420d6b42025d7b46c172a38afd06d786fd9.tar msec-bf044420d6b42025d7b46c172a38afd06d786fd9.tar.gz msec-bf044420d6b42025d7b46c172a38afd06d786fd9.tar.bz2 msec-bf044420d6b42025d7b46c172a38afd06d786fd9.tar.xz msec-bf044420d6b42025d7b46c172a38afd06d786fd9.zip |
document same_level
-rw-r--r-- | share/libmsec.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/share/libmsec.py b/share/libmsec.py index ef5c562..373847f 100644 --- a/share/libmsec.py +++ b/share/libmsec.py @@ -32,6 +32,7 @@ except IOError: SUFFIX='.msec' _interactive=0 _same_level=1 +FORCED = {} # list of config files @@ -106,6 +107,10 @@ ConfigFile.add_config_assoc('^/etc/issue$', '/usr/bin/killall mingetty') ################################################################################ +# The same_level function inspects the call stack in the 2 previous +# levels to see if a function is used that has been registered by +# force_val and if this is the case we act as if we were changing the +# security level to force the value to be used. def same_level(): 'D' tb = traceback.extract_stack() @@ -119,8 +124,6 @@ def changing_level(): global _same_level _same_level=0 -FORCED = {} - def force_val(name): 'D' global FORCED |