exit code of "/etc/init.d/apparmor status" not useful
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Fix Released
|
Medium
|
Jamie Strandboge | ||
Lucid |
Fix Released
|
Medium
|
Jamie Strandboge | ||
Maverick |
Fix Released
|
Medium
|
Jamie Strandboge | ||
Natty |
Fix Released
|
Medium
|
Jamie Strandboge |
Bug Description
SRU
1. Impact: affects monitoring systems that depend on the exit code of status
2. Bug has not been fixed in the development branch (natty is not open)
3. Patch is a 2 character patch to adjust the path to aa-status from /usr/bin to /usr/sbin in two places
4. TEST CASE
$ sudo /etc/init.
$ sudo /etc/init.
5. Regression potential is extremely low, as the patch only adjusts the path for a command in the initscript that is not used as part of the boot or shutdown process
Binary package hint: apparmor
# lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04
# apt-cache policy apparmor apparmor-utils
apparmor:
Installed: 2.5-0ubuntu3
Candidate: 2.5-0ubuntu3
[...]
apparmor-utils:
Installed: 2.5-0ubuntu3
Candidate: 2.5-0ubuntu3
Expected Results:
Running "/etc/init.
Actual Results:
Running "/etc/init.
Looks like this is caused by a simple error in /etc/init.
If the init script correctly calls aa-status, the status function has a more useful exit status.
Changed in apparmor (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in apparmor (Ubuntu Maverick): | |
status: | New → In Progress |
Changed in apparmor (Ubuntu Natty): | |
status: | Confirmed → Triaged |
Changed in apparmor (Ubuntu Maverick): | |
importance: | Undecided → Medium |
assignee: | nobody → Jamie Strandboge (jdstrand) |
Changed in apparmor (Ubuntu Natty): | |
assignee: | nobody → Jamie Strandboge (jdstrand) |
Changed in apparmor (Ubuntu Maverick): | |
milestone: | none → maverick-updates |
Changed in apparmor (Ubuntu Lucid): | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Jamie Strandboge (jdstrand) |
milestone: | none → lucid-updates |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
tags: |
added: verification-done removed: verification-needed |
tags: | added: testcase |
SRU
1. Impact: affects monitoring systems that depend on the exit code of status
2. Bug has not been fixed in the development branch (natty is not open)
3. Patch is a 2 character patch to adjust the path to aa-status from /usr/bin to /usr/sbin in two places
4. TEST CASE d/apparmor teardown d/apparmor status && echo "FAIL (exited with $?)"
$ sudo /etc/init.
$ sudo /etc/init.
5. Regression potential is extremely low, as the patch only adjusts the path for a command in the initscript that is not used as part of the boot or shutdown process