Changes to PolicyEngine to support rowner and isop checks.
Note that the pstat.isop must be set to "true" by the provisioning
tool after OTM is complete and provisioning is done!
patch #2 - added GetPstatIsop() function to pstatresource.h and .c.
Still needs to be properly provisioned by PT.
patch #3 - fixed unittest failure (workaround for now since proper
tests require device to be owned). Also marked GetDeviceOwnerId()
function for fixing after schema updates are done.
patch #4 - change to Chul Lee's suggested design using function
array instead of case switch. However it does not compile. See
Reply comments please.
patch #5 - fixed compile error and also logic error (changed || to
&&)
patch #6 - implemented correct GetDoxmRownerId() in doxmresource.c.
Other entity handlers should follow this simple template after
schema update is done.
patch #7 - fixed build issue on other platforms (worked on Linux)
patch #8 - rebase
patch #9 - added correct functions for all resources with
rowner/rownerID vals.
patch #10 - changed behavior on SVRs without rownerID, since
devowner is already being checked.
patch #11 - rebase again
patch #12 - now that acl, amacl and cred have rownerID property,
added correct getRownerId() for those 3 resources
patch #13 - remove the unexpected condition in policyengine.c
Please see my comments on line 465~473 in patch #12
Change-Id: If3c0a01f76260e10d3169fc0cfa79924175ca62d
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6185
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
18 files changed: