Results 1 to 6 of 6

Thread: not understanding jailbash/apparmor

  1. #1
    Join Date
    Nov 2010
    Beans
    35

    not understanding jailbash/apparmor

    I made a link to /bin/bash , /usr/local/bin/jailbash , and set it as the shell for my guest account.

    I then created the appropriate apparmor app, and threw it into the /etc/apparmor.d/usr.local.bin.jailbash

    I reloaded all the profiles, and ended up restarting.

    If I log into the desktop as my guest user, none of the profile restrictions are in effect

    If I open up a terminal and do "su guest"

    All of the appropriate profile restrictions are in place.

    Does jailbash only work for command line interface? is there anyway to completely limit that user from those areas of the computer regardless of how they log on?

    thanks

  2. #2
    Join Date
    May 2007
    Location
    Nova Scotia, Canada
    Beans
    423
    Distro
    Ubuntu

    Re: not understanding jailbash/apparmor

    How does the user logon ? Remotely or at the computer scree ?

    You could setup a chroot jail. If it's remotely, you could bypass the chroot jail and just use rssh (assuming they login to get a shell that is).

  3. #3
    Join Date
    Nov 2010
    Beans
    35

    Re: not understanding jailbash/apparmor

    Quote Originally Posted by smurphy_it View Post
    How does the user logon ? Remotely or at the computer scree ?

    You could setup a chroot jail. If it's remotely, you could bypass the chroot jail and just use rssh (assuming they login to get a shell that is).
    at the desktop ...

    when i'm logged in as my administrator account, and I do su in the commandline, all the jailbash restrictions are in effect...

    i just don't understand why the jailbash profile doesn't restrict them when that user logs in as a regular desktop user.

    commandline it all seems to work fine... its just when unity opens a program it doesn't seem to have the jailbash restrictions at all...

    im just really confused because I thought the apparmor profile on jailbash completely limited the access a user had to the computer, regardless of how they are logged in....

    could I have set it up incorrectly? or am i missing something conceptually?

    thanks for helping
    Last edited by judderwocky; June 10th, 2011 at 08:58 PM.

  4. #4
    Join Date
    May 2007
    Location
    Nova Scotia, Canada
    Beans
    423
    Distro
    Ubuntu

    Re: not understanding jailbash/apparmor

    I would assume you are referring to logging into the desktop, via xwindows. In which case, I can't see how that user would be restricted. They would have to be restricted within xwindows, and potentially within the application(s).

    The bash (restrictions) shouldn't come into play until you open a command prompt.

    The apparmor configuration (which I haven't played with much) is typically per application. So you would have to limit each application you want restricted.

  5. #5
    Join Date
    Nov 2010
    Beans
    35

    Re: not understanding jailbash/apparmor

    Quote Originally Posted by smurphy_it View Post
    I would assume you are referring to logging into the desktop, via xwindows. In which case, I can't see how that user would be restricted. They would have to be restricted within xwindows, and potentially within the application(s).

    The bash (restrictions) shouldn't come into play until you open a command prompt.

    The apparmor configuration (which I haven't played with much) is typically per application. So you would have to limit each application you want restricted.
    thanks, I think I see now...

  6. #6
    Join Date
    Dec 2008
    Location
    43° 7' 41" 131° 54' 3"
    Beans
    Hidden!

    Re: not understanding jailbash/apparmor

    If you want to restrict a user to certain applications only, you could by the usage of permissions and groups restrict them to only those groups you assign them and the permissions within that group.
    Last edited by jtarin; June 17th, 2011 at 01:14 AM.
    EasyBCD.
    PrintersDatabase
    Boot Info Script: How to
    The post above and the post below suffer from the Rashomon effect!

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
  •