-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PACKAGING] Provides a dedicated AppArmor profile #119
Conversation
92720cf
to
77775c0
Compare
77775c0
to
90d62ac
Compare
90d62ac
to
ce010b8
Compare
ce010b8
to
42940ab
Compare
Hi, only seeing your mastodon message now. Here are my comments on your profile:
Regarding the |
42940ab
to
6746780
Compare
b9eabb9
to
0c1a9a8
Compare
Hey @ingrinder ! Could you take a look to this PR ? Bye, thanks again 👋 |
0c1a9a8
to
fa81111
Compare
I'm a touch busy at the moment, but I can certainly take a proper look in a few weeks (unless you want to push this soon?) Just let me know. |
It's okay to postpone this a bit, we are ready for a new release 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @HorlogeSkynet!
Finally I have taken a look over this PR, for now just manually reading through the code. I have left a few inline comments, some other thoughts:
- We need to add
Distributions
file access permissions - e.g. the/etc/*release
files (and maybe anythingdistro
accesses?) - Also need to add the screenshot tools in
Screenshot
. Is there an established way in AppArmor to get permission to write to a file to somewhere sensible, e.g. a screenshots folder in the home directory (or at least create one in cwd?) or does it have to be hard-coded like@{HOME}/specific/path
? - We should probably add a
README.md
notice for theCustom
entries for anyone running AA instructing them to make an additional profile for their command.
I'll test it out for real soon on my system - when I get around to finally rebooting 😜
See you!
fa81111
to
e0075d1
Compare
Thanks for this complete review Michael !
I've not tested everything (yet), keep me posted, bye 🙏 |
e0075d1
to
55c2c20
Compare
It's me again ! So about the remaining points :
Bye, many thanks 👋 |
Hey @ingrinder, do you think we could/should include this in the next release ? 🙂 |
@HorlogeSkynet sure! I think there might be a couple of additions to make first. Here's what I noticed from
Did you find a solution to the symlinks e.g. with import on your system? I'm not sure how you could account for them aside from adding all the known locations manually! |
55c2c20
to
ae3142d
Compare
Thanks again for this feedback !
Indeed, maybe an oversight of the tool itself ?
You're absolutely right, 'just (rebased and) added
None ! Upstream issue is still opened, and it doesn't appear there is an easy way to deal with it. Bye 👋 |
ae3142d
to
ad45ce2
Compare
Is it called Other than that those changes seem to make it work great for me! |
ad45ce2
to
0a389b4
Compare
Nice catch, sorry for the typo. I've just force-pushed again to fix this issue and opted for a relatively simple wildcard for Bye, thanks again 👋 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then, this LGTM now, as long as it's working on your end! 🚀
a845a12
to
7e0d0cd
Compare
You were right about |
Co-Authored-By: Alexandre Pujol <alexandre@pujol.io> Co-Authored-By: Michael Bromilow <developer@bromilow.uk>
7e0d0cd
to
25854d7
Compare
dh_apparmor
for Debian (see here) ?/etc/apparmor.d/usr.bin.archey4
marked as a configuration file ?dig
opens UDP sockets (under its own profile) : removenetwork
related permissionsWarning from /etc/apparmor.d (/etc/apparmor.d/usr.bin.archey4 line 7): /sbin/apparmor_parser: Profile abi not supported, falling back to system abi.
Description
This patch provides a first AppArmor profile candidate to be included in Archey GNU/Linux distribution packages.
Reason and / or context
See https://apparmor.net/.
How has this been tested ?
Debian 11.
Types of changes :
Checklist :