sosreport doesn't collect all data from /etc/apparmor.d/

Bug #1366103 reported by Michael Cunningham on 2014-09-05
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sosreport (Ubuntu)
Undecided
Unassigned
Trusty
Medium
Unassigned
Vivid
Undecided
Unassigned
Xenial
Undecided
Unassigned
Yakkety
Undecided
Unassigned
Zesty
Undecided
Unassigned

Bug Description

[SRU justification]
All the apparmor data needs to be collected

[Impact]
Problem in investigating AppArmor related issue without the data

[Fix]
Enhance the apparmor plugin to collect all the necessary data

[Test Case]
Without the fix, sosreport will only collect the following files :

./etc/apparmor.d/sbin.dhclient
./etc/apparmor/subdomain.conf
./etc/apparmor/init/network-interface-security/sbin.dhclient

With the fix, it will collect all of
./apparmor.d
./apparmor

and run :
ls -alh /etc/apparmor.d/libvirt
ls -alh /etc/apparmor.d/abstractions

[Regression]
Minimal, this plugin already runs on Yakkety, Xenial & Zesty

[Original description of the problem]
Sosreport appears to collect only sbin.dhclient from /etc/apparmor.d and ignores all other files/dirs.

I have observed this on 12.04, 13.10 and 14.04.

I would expect that it grabs all files/dirs from that directory.

Bryan Quigley (bryanquigley) wrote :

It also doesn't grab sudo apparmor_status

Bryan Quigley (bryanquigley) wrote :

Changing the plugin to:
    def setup(self):
        self.add_copy_specs([
            "/etc/apparmor*",
        ])

 self.add_cmd_outputs([
     "apparmor_status",
])

Does most of it, unfortunately, /etc/apparmor.d/cache looks like it will just waste our space.. (Aside, shouldn't cache not be stored in /etc?)

Bryan Quigley (bryanquigley) wrote :
Changed in sosreport (Ubuntu):
status: New → Triaged
Louis Bouchard (louis) on 2017-01-17
Changed in sosreport (Ubuntu Yakkety):
status: New → Fix Released
Changed in sosreport (Ubuntu Xenial):
status: New → Fix Released
Changed in sosreport (Ubuntu Vivid):
status: New → Won't Fix
Changed in sosreport (Ubuntu Trusty):
status: New → Triaged
Changed in sosreport (Ubuntu Zesty):
status: Triaged → Fix Released
Changed in sosreport (Ubuntu Trusty):
importance: Undecided → Medium
assignee: nobody → Louis Bouchard (louis-bouchard)
Louis Bouchard (louis) on 2017-01-17
description: updated
Louis Bouchard (louis) on 2017-01-17
Changed in sosreport (Ubuntu Trusty):
status: Triaged → In Progress
Louis Bouchard (louis) on 2017-01-17
tags: added: sts-sru
tags: added: sts-sru-needed
removed: sts-sru
Louis Bouchard (louis) on 2017-05-10
Changed in sosreport (Ubuntu Trusty):
assignee: Louis Bouchard (louis) → nobody
tags: removed: sts-sru-needed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers