Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Nov 2004

    Question prevent user from modify or delete a file?


    I have an application that reads and writes to a file. Hence the file is important for the application to work correctly.

    - How to prevent an end user from modifying or deleting the file?

    - How to prevent other applications from modifying or deleting the file?

    I heard about data caging but am wondering

    - if data caging also prevents end user from modify or deleting a file?
    - What API should I use for data caging?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    the data caging seems to be a feature of OS 9, which is not available yet. From NewLC:

    "The second security feature is called data-caging. This prevents unauthorized access to date written on the file system and will be implemented at two different levels:
    - system directories won’t be accessible anymore to applications (unless you have very high capabilities).
    - each application can create a secure directory to store its sensitive information (registration information, credit card details,...) and other applications won’t be able to access it."

    Which means that it is only a partial solutions, I'm sure there will be a hack that allows seeing & copying the content from these directories, since they are writettn somewhere in the file system anyway.

    Currently you could try making your file read only & hidden, which doesn't really give you any protections. Basically only way to get some sort of protection, would be to use encryption for the files, then at least you would notice the modifications done, as well the content could not be read, unless ir can be hacket, which is propably very likely.


  3. #3
    Nokia Developer Champion
    Join Date
    Jul 2004
    9.0 is an enabler release so you will actually have to get 9.1 to use data caging. I don't know what Nokia/UIQ's plans are for when an SDK based on 9.1 will be released but its going to be a while before any phones based on 9.1 appear I would guess.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts