anchor.diff:  %% @doc Opens file in rdwr mode and checks necessary permissions.
   %%--------------------------------------------------------------------
   -spec open_for_rdwr(handle()) -> {ok, handle()} | error_reply().
  -%%-check_permissions([{?read_object, 1}, {?write_object, 1}]). todo add uuid to LfmHandle
  +-check_permissions([{?read_object, 1}, {?write_object, 1}]).
   open_for_rdwr(LfmHandle) ->
       open_impl(LfmHandle#sfm_handle{session_id = ?ROOT_SESS_ID}, rdwr).
   
  
positive.code: %% @doc Opens file in write mode and checks necessary permissions.
  %%--------------------------------------------------------------------
  -spec open_for_write(handle()) -> {ok, handle()} | error_reply().
  %%-check_permissions([{?write_object, 1}]). todo add uuid to LfmHandle
  open_for_write(LfmHandle) ->
      open_impl(LfmHandle#sfm_handle{session_id = ?ROOT_SESS_ID}, write).
  
  
negative.code: %% @doc Opens file in read mode and checks necessary permissions.
  %%--------------------------------------------------------------------
  -spec open_for_read(handle()) -> {ok, handle()} | error_reply().
  -check_permissions([{?read_object, 1}]).
  open_for_read(LfmHandle) ->
      open_impl(LfmHandle#sfm_handle{session_id = ?ROOT_SESS_ID}, read).
  
  