Bug 1864 - query_secdesc / set_secdesc don't provide all secdesc fields
Summary: query_secdesc / set_secdesc don't provide all secdesc fields
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: python (show other bugs)
Version: 3.0.7
Hardware: All Windows XP
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-01 12:45 UTC by Brett Funderburg
Modified: 2005-08-24 10:15 UTC (History)
0 users

See Also:


Attachments
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
set_secdesc(sd)
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 (dead mail address) 2005-08-24 10:15:29 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.