Skip to content
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

[apparmor] Capture AppArmor profiles and status #538

Closed
wants to merge 1 commit into from

Conversation

BryanQuigley
Copy link
Contributor

Captures /etc/apparmor.d for profiles

Excludes /cache - because it's not config
Excludes libvirt/libvirt because it can grow
quite large and the TEMPLATE file should usually
be enough.
Excludes abstractions because they are usually
not modified by user and are quite big

For both libvirt and abstractions capture an ls,
just to be sure permissions, etc aren't messed up.

Captures apparmor_status to get the effective profiles.

Signed-off-by: Bryan Quigley bryan.quigley@canonical.com

@bmr-cymru
Copy link
Member

Word wrapping in the commit message seems a bit odd - 72 chars hard wrap is recommended (the lines currently get longer down the message body.. :-).

Ack modulo that & the add_cmd_output change.

@adam-stokes
Copy link

ACK once those changes are made

Captures /etc/apparmor.d for profiles

Excludes /cache - because it's not config.  Excludes libvirt/libvirt
because it can grow quite large and the TEMPLATE file should usually
be enough. Excludes abstractions because they are usually not
modified and are large.

For both libvirt and abstractions capture an ls just to be sure
permissions are correct.

Captures apparmor_status to get the effective profiles.

Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
@adam-stokes
Copy link

Hmm am I missing where the suggested changes were made in the commit? @BryanQuigley what's the status of this PR?

@adam-stokes adam-stokes self-assigned this Apr 1, 2015
@BryanQuigley
Copy link
Contributor Author

odd, it looks like by force pushing we lost the previous "code" comments.

The current 6e4c85c should have everything.. (note the longer lines and use of add_cmd_output([ )

@adam-stokes
Copy link

@BryanQuigley cool thanks I thought this PR was missing something and I'm not going crazy :)

@adam-stokes
Copy link

ack on my end, @bmr-cymru this still look OK to you?

@bmr-cymru
Copy link
Member

Yeah - there seem to be bugs in the github force push handling. We noticed it earlier in the week with one of the Red Hat PRs - your initial comments remained under a "battlemidget commented on an outdated version of this patch" but my later review comments all vanished when the branch was re-pushed.

Not sure if this relates to PR vs. commit/line comments or something else.

@bmr-cymru
Copy link
Member

Yep, looks good to me - thanks!

@adam-stokes adam-stokes closed this Apr 1, 2015
@BryanQuigley BryanQuigley deleted the apparmor branch June 17, 2015 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants