def disable_inheritance(path, objectType, copy=True):
 dc = daclConstants()
 objectType = dc.getObjectTypeBit(objectType)
 path = dc.processPath(path, objectType)
 return _set_dacl_inheritance(path, objectType, False, copy, None)

def disable_inheritance ( path , objectType , copy = True ) : dc = daclConstants ( ) objectType = dc . getObjectTypeBit ( objectType ) path = dc . processPath ( path , objectType ) return _set_dacl_inheritance ( path , objectType , False , copy , None )
disable inheritance on an object args: path: the path to the object objecttype: the type of object copy: true will copy the inherited aces to the dacl before disabling inheritance returns : a dictionary containing the results cli example: .