Bug 1864 - query_secdesc / set_secdesc don't provide all secdesc fields
query_secdesc / set_secdesc don't provide all secdesc fields
Product: Samba 3.0
Classification: Unclassified
Component: python
All Windows XP
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2004-10-01 12:45 UTC by Brett Funderburg
Modified: 2005-08-24 10:15 UTC (History)
0 users

See Also:

Patch to fix the submitted bug (1.09 KB, patch)
2004-10-01 12:46 UTC, Brett Funderburg
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brett Funderburg 2004-10-01 12:45:54 UTC
The python dictionary returned from smb.query_secdesc doesn't include the value
for sd->type

Conversely, the python dictionary passed to set_secdesc doesn't is not
interrogated for 'type' and so sd->type is given a default, hardcoded value.
This has the effect of always setting the "Inherit permissiosn from parent" flag
to be set on the target object and also makes it impossible to "copy" a security
descriptor from one object to another object by doing (pseudocode):

sd = query_secdesc
Comment 1 Brett Funderburg 2004-10-01 12:46:22 UTC
Created attachment 692 [details]
Patch to fix the submitted bug

Fixes the bug as described.
Comment 2 Tim Potter 2004-10-05 19:05:30 UTC
Checked in - thanks!
Comment 3 Gerald (Jerry) Carter 2005-08-24 10:15:29 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.