Created: (MODPYTHON-173) DbmSession creates world readable
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Created: (MODPYTHON-173) DbmSession creates world readable




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-23-06 12:12 AM

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 fil
e 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).







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:50 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register