Apache Mod-Python - Created: (MODPYTHON-173) DbmSession creates world readable

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > June 2006 > Created: (MODPYTHON-173) DbmSession creates world readable





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Created: (MODPYTHON-173) DbmSession creates world readable
Jim Gallacher (JIRA)

2006-06-22, 7:12 pm

DbmSession creates world readable db file
-----------------------------------------

Key: MODPYTHON-173
URL: http://issues.apache.org/jira/browse/MODPYTHON-173
Project: mod_python
Type: Bug

Components: session
Versions: 3.2.8
Reporter: Jim Gallacher
Assigned to: Jim Gallacher
Fix For: 3.2.x


DbmSession uses the default mode when creating the db file. As a result the file is world readable, which may be undesirable where sensitive informaiton is stored in the session. Currently the users are required to chmod the file manually. This can be fix
ed by using the option mode argument when the file is opened.

Quoting from the Python anydbm documentation:

open( filename[, flag[, mode]]

The optional mode argument is the Unix mode of the file, used only when the database has to be created. It defaults to octal 0666 (and will be modified by the prevailing umask).


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com