Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have an application which is developed C to work on Solaris. I am working on porting this application to Linux (CentOS). I have this feature of role based ...
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    0

    Role Based Access Control

    Hi,

    I have an application which is developed C to work on Solaris. I am working on porting this application to Linux (CentOS). I have this feature of role based access control which I am doing it through my application. For which I have library Security Attributes Database Library. "libsecdb.so" available on Solaris. Which give me calls ensure the role based access control ( basing on the user and their profile the user is given certain previleges like System Administrator has certain previleges a normal user has certain previleges...) some of the calls which help me achieve these are "getpfornam", "setprofattr", "getuserattr", "setuserattr". These calls inturn use these files available on solaris "/etc/security/prof_attr" , "/etc/user_attr". I could not find any equivalent calls and similar functionality in Linux( CentOS). Please suggest and help

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    are you looking for setxattr() ? Check
    man 2 setxattr
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

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