Unix Technical Forum

Stored procedure authorization ....

This is a discussion on Stored procedure authorization .... within the DB2 forums, part of the Database Server Software category; --> ok, this is section from Application development guide on authorities on Stored procedure is what I don't understand: - ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 06:19 PM
Raquel
 
Posts: n/a
Default Stored procedure authorization ....

ok, this is section from Application development guide on authorities
on Stored procedure is what I don't understand:

- By virtue of a successful CREATE statement, definer has EXECUTE WITH
GRANT
privilege on the routine.

At other place, it mentions:

- The routine package owner must GRANT EXECUTE on the package to the
routine definer. This can be done before or after the routine is
registered, but it must be done before the routine is invoked.

These seem to be mutually conflicting statements. Definer has execute
not 'by virtue' of a CREATE statement, but because GRANT EXECUTE has
been given to it (definer) by the package owner.

TIA
Raquel.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 06:20 PM
Serge Rielau
 
Posts: n/a
Default Re: Stored procedure authorization ....

Raquel,

The reason for this is that a package is not intrinsically hooked to a
routine.
A Package belongs to the source code, which is exactly one file.
The CREATE PROCEDURE/CREATE FUNCTION statement for external alanguages
at best knows about the entry point to the body. It has no control over
the call chain of the host language and hence which other files may be
involved. This is why packages have orthogonal security.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
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 09:08 AM.


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