Unix Technical Forum

Permissions restrictions for function call statistics?

This is a discussion on Permissions restrictions for function call statistics? within the pgsql Hackers forums, part of the PostgreSQL category; --> The just-committed patch for tracking function call stats allows anyone connected to a given database to see all function-call ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-16-2008, 01:42 PM
Tom Lane
 
Posts: n/a
Default Permissions restrictions for function call statistics?

The just-committed patch for tracking function call stats allows anyone
connected to a given database to see all function-call stats that have
been collected within that database. I am wondering whether we need to
clamp down on that at all.

Knowing the runtime of a function is sometimes considered a possible
security risk --- for instance, it might tell you something about the
data operated on by a cryptographic function, or it might tell you
whether a password was good (and allowed the function to proceed with
some operation). So I thought about suggesting that we only allow
people to see the stats for functions that they have the right to
call. If they have that right, they can just call it and measure
the runtime for themselves, so this seems an adequate permission
check.

On the other hand, if you don't have permission to call the function,
then what you are seeing in the stats view is aggregate stats about
calls made by other people, with arguments that you don't know.
The traditional security risks seem pretty weak in that context.
So maybe we don't need to do anything.

Thoughts?

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:12 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com