Re: [mod_python] Sessions performance and some numbers
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 > Re: [mod_python] Sessions performance and some numbers




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

    Re: [mod_python] Sessions performance and some numbers  
dharana


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


 
04-07-05 10:58 PM



Gregory (Grisha) Trubetskoy wrote:
>
> With this implementation - is there still any advantage to usnig a DBM
> at all?
>
> I still think that security needs to be addressed slightly better -
> perhaps explicitely setting permissions - perhaps putting sessions in a
> subdirectory only readable, writable and executable by apache user would
> make it a bit cleaner. The current mod_python DBMSession does not
> explicitely set permissions which is a problem. (though inserting a bad
> pickle into dbm is slightly harder than just just writing a file and
> then calling a url that you know will cause mod_python to attempt to
> unpickle it)
>
> Also, I don't see any locking here, I think it's needed.

I used tempfile.gettempdir() in order to send you the patch because this
was the style used by DbmSession. So what would be the correct thing to do?
- check that it's only readable/writable by the apache user
- check that the passed sid passes /^([a-f0-9]{32})$/


If you want me to I can make cPickler use protocol 2, add locking and
those extra checks and send back the updated file. If someone more
skilled than me prefers to do it just tell me.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:01 PM.      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