Change-Id: Ibe94959942b300779adb1ab82bd794791b33630d
Signed-off-by: Tomasz Swierczek <t.swierczek@samsung.com>
if (!handler.database.isNameLabelPresent(name, ownerLabel))
return CKM_API_ERROR_DB_ALIAS_UNKNOWN;
- // removing non-existing permissions: fail
- if (permissionMask == Permission::NONE) {
- if (!handler.database.getPermissionRow(name, ownerLabel, accessorLabel))
- return CKM_API_ERROR_INPUT_PARAM;
- }
-
// set permissions to the row owned by ownerLabel for accessorLabel
handler.database.setPermission(name, ownerLabel, accessorLabel, permissionMask);
transaction.commit();