Results 1 to 5 of 5

Thread: Help with apparmor

Hybrid View

  1. #1
    Join Date
    May 2011
    Beans
    42
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question Help with apparmor

    I would like to know what the "owner" code in the profiles does, since I've read some different explanations for it. I'm confused about what it really does and when you should use it and not.

    Thanks in advance for help!

  2. #2
    Join Date
    May 2007
    Location
    USA
    Beans
    318
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Help with apparmor

    Quote Originally Posted by man 5 apparmor.d
    Rule Qualifiers
    There are several rule qualifiers that can be applied to permission
    rules. Rule qualifiers can modify the rule and/or permissions within
    the rule.

    audit
    Specifies that permissions requests that match the rule should be
    recorded to the audit log.

    deny
    Specifies that permissions requests that match the rule should be
    denied without logging. Can be combined with 'audit' to enable
    logging.

    owner
    Specifies that the task must have the same euid/fsuid as the object
    being referenced by the permission check.
    Is that what you want to know about?

  3. #3
    Join Date
    May 2011
    Beans
    42
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Help with apparmor

    I'm new to apparmor, and English isn't my native language, so I would prefer a simple explanation. Thanks in advance.

  4. #4
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Help with apparmor

    Do you understand Linux permissions ? Every file and process has an owner.

    So in apparmor you can allow access to a file

    /path_to/file rw,

    And furter restrict access in apparmor to the owner of the file

    owner /path_to/file rw

    With the second only the owner of the file can rw the file.

    Typically this option is applied to files in your home directory.
    Last edited by bodhi.zazen; May 9th, 2011 at 05:48 PM. Reason: typos
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  5. #5
    Join Date
    May 2011
    Beans
    42
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Help with apparmor

    Thank you, bodhi.zazen! Now I understand it much better!

Tags for this Thread

Bookmarks

Posting Permissions

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