×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    23

    Question Problem with DBMS and Platform Security

    Hi,
    I am trying to manage various DBMS operations in my application. I got this link and trying to custom it:
    http://wiki.forum.nokia.com/index.ph...ith_Navigation

    But my application is just exiting without any errors.
    While debugging I got that the if stmt viz.
    if(KErrNone == PrivFolder.FindByDir(DBFileName, KNullDesC))
    is evaluating to FALSE. I get the following debug msgs (If there is no TCB capability added):

    PlatSecEnforcement OFF
    PlatSecDiagnostics ON
    PlatSecProcessIsolation ON
    PlatSecEnforceSysBin ON
    PlatSecDisabledCaps NONE

    And dont get those debug msgs when TCB capability is present. But either way the app just exits. Is it some thing to do with the Platform Security or am I missing out any thing?
    Last edited by shrads; 2008-08-29 at 12:55.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Problem with DBMS and Platform Security

    Since data caging affects only a few folders (search for data caging in the SDK Help), you may consider moving your database to some legal location.

  3. #3
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    23

    Question Re: Problem with DBMS and Platform Security

    Thank you wizard_hu_ for the reply. But what if I want my DBMS to be stored in a secure location (The Private directory depending on the UID3 as specified in the referred link). In my case no such directory is getting created for my application's UID3.

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Re: Problem with DBMS and Platform Security

    If you do not have any file supplied or created in your private directory then there is no such private path created.

    Check for CreatePrivatePath and MkDirAll. You would find such an example in *AppUi.cpp file in HelloWorld type GUI application created by Carbide.c++.

    Kiran.
    Nokia Developer Wiki Moderation team

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Problem with DBMS and Platform Security

    That example seems to be wrong: the create-file-branch depends on the existence of the file which is obviously a bad idea (that Close also looks wrong).
    Experiment with re-arranging the if-s, and use RFs::CreatePrivatePath for making sure that your private folder exists.

  6. #6
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    23

    Re: Problem with DBMS and Platform Security

    Thank you wizard_hu_ the CreatePrivatePath() worked.

Similar Threads

  1. DBMS problem
    By sandy_zeng in forum Symbian
    Replies: 9
    Last Post: 2007-12-03, 04:41

Posting Permissions

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