![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Security Discussions Discuss security flaws/updates/notices in the various Ubuntu releases. |
|
|
Thread Tools | Display Modes |
|
|
#21 | |
|
Way Too Much Ubuntu
![]() Join Date: Feb 2005
Location: ${HOME}
My beans are hidden!
Ubuntu 9.10 Karmic Koala
|
Re: AppArmor Support Thread
Quote:
Check out this post over at Novell's forums and see if that applies to you. null-complain-profile is used in learning mode, it complains about absolutely everything.
__________________
Joel Goguen Real-time help: #ubuntu-beginners on irc.ubuntu.com | How To IRC The Tao of Ubuntu Security | IPTables how-to AppArmor | AppArmor Support | AppArmor Profiles |
|
|
|
|
|
|
#22 |
|
Gee! These Aren't Roasted!
![]() Join Date: Jul 2008
Beans: 187
|
Re: AppArmor Support Thread
there is other message in log.
how to create profile for x server? as was said in this thread or "share your apparmor profiles" to limit/set rules for/confine/restrict video driver profile for x server should be created. |
|
|
|
|
|
#23 | |
|
Way Too Much Ubuntu
![]() Join Date: Feb 2005
Location: ${HOME}
My beans are hidden!
Ubuntu 9.10 Karmic Koala
|
Re: AppArmor Support Thread
Quote:
__________________
Joel Goguen Real-time help: #ubuntu-beginners on irc.ubuntu.com | How To IRC The Tao of Ubuntu Security | IPTables how-to AppArmor | AppArmor Support | AppArmor Profiles |
|
|
|
|
|
|
#24 |
|
Ubuntu Guru
![]() |
Re: AppArmor Support Thread
While I agree apparmor requires active monitoring, I would also suggest you file this as a bug report in Launchpad.
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999 ![]() |
|
|
|
|
|
#25 | |
|
Way Too Much Ubuntu
![]() Join Date: Feb 2005
Location: ${HOME}
My beans are hidden!
Ubuntu 9.10 Karmic Koala
|
Re: AppArmor Support Thread
Quote:
Code:
sudo aa-complain /path/to/profile Code:
sudo aa-enforce /path/to/profile To get an idea of the programs you'd need to have profiles for (or give execute permissions with 'ix') open a terminal and use this command: Code:
ps fax
__________________
Joel Goguen Real-time help: #ubuntu-beginners on irc.ubuntu.com | How To IRC The Tao of Ubuntu Security | IPTables how-to AppArmor | AppArmor Support | AppArmor Profiles |
|
|
|
|
|
|
#26 |
|
Ubuntu Guru
![]() |
Re: AppArmor Support Thread
Locking down X or GDM with apparmor will probably be impractical, to say the least.
The things, IMO, you should look at are network facing applications or deamons (firefox, ssh, etc) and not something big like X. If you need to lock down X or a shell (like bash) take a look at jdong's jailbash. http://www.friedcpu.net/?p=70 Just make jailbash the default, log in shell Or something like selinux.
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999 ![]() |
|
|
|
|
|
#27 |
|
Ubuntu Member
![]() Join Date: Oct 2008
Location: Tulsa,Ok
Beans: 275
Ubuntu 9.10 Karmic Koala
|
Re: AppArmor Support Thread
I just recently installed apparmor and I am fine tuning my profiles. I have got just one more message, related to Firefox, popping up in my log that I want to address.
Mar 20 20:01:08 my-computer kernel: [ 0000.000000] type=0000 audit(000000.000:0000): operation="inode_permission" requested_mask="r::" denied_mask="r::" fsuid=1000 name="/home/duanedesign/.icons/" pid=5664 profile="/usr/lib/firefox-3.0.7/firefox.sh" I have in my Firefox profile: @{HOME}/.icons/** r, adding the line above did fix five or six log messages like these: ~/.icons/hydroxygen/16x16/categories ~/.icons/hydroxygen/16x16/devices ~/.icons/hydroxygen/16x16/emblems ECT... So I get the feeling it is working on some level. I understand the colon's significance in showing (owner permissions:extended ownership tests: other permissions). Does this provide a clue to help me solve this. I thank you in advance for any help you can give me. UPDATE: funny I worked on this for over an hour and five minutes after i break down and ask for help I come up with a solution I added the following to my firefox profile: @{HOME}/.icons/ r, I started Firefox, and no message in my log. I guess I still have a question do I need both @{HOME}/.icons/ r, @{HOME}/.icons/** r, or is there a better way to get apparmor to allow firefox to access all my icons.
__________________
When you have ubuntu, you are generous, compassionate. It means that we are people through other people. We cannot be fully human alone. -Desmond Tutu Registered Linux User 481263 Last edited by duanedesign; March 20th, 2009 at 09:38 PM.. Reason: update situation |
|
|
|
|
|
#28 |
|
Way Too Much Ubuntu
![]() Join Date: Feb 2005
Location: ${HOME}
My beans are hidden!
Ubuntu 9.10 Karmic Koala
|
Re: AppArmor Support Thread
Short answer - yes, you do need both, but only if the application actually needs to read the directory
The issue is that using ** will match everything in the directory and its subdirectories - but not the directory itself. So using Code:
@{HOME}/.icons/** r,
Code:
@{HOME}/.icons/ r,
Similarly, but going further than needed to answer your question, if you only used Code:
@{HOME}/.icons/* r,
Hope that helps and doesn't raise more questions than it answers - but feel free to ask away if you have any more questions or if I wasn't clear enough
__________________
Joel Goguen Real-time help: #ubuntu-beginners on irc.ubuntu.com | How To IRC The Tao of Ubuntu Security | IPTables how-to AppArmor | AppArmor Support | AppArmor Profiles Last edited by jgoguen; March 20th, 2009 at 10:05 PM.. |
|
|
|
|
|
#29 |
|
Ubuntu Guru
![]() |
Re: AppArmor Support Thread
That was going to be my advice
Nice to see people learning apparmor. FYI: I have posted some apparmor profiles for your reference here : http://bodhizazen.net/aa-profiles/ I am looking for people willing to post their profiles, so if anyone is willing please send me a PM.
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999 ![]() |
|
|
|
|
|
#30 |
|
Way Too Much Ubuntu
![]() Join Date: Feb 2005
Location: ${HOME}
My beans are hidden!
Ubuntu 9.10 Karmic Koala
|
Re: AppArmor Support Thread
__________________
Joel Goguen Real-time help: #ubuntu-beginners on irc.ubuntu.com | How To IRC The Tao of Ubuntu Security | IPTables how-to AppArmor | AppArmor Support | AppArmor Profiles |
|
|
|
| Bookmarks |
| Tags |
| apparmor |
| Thread Tools | |
| Display Modes | |
|
|