Bug 9848 - poor apparmor checks in postinstall
: poor apparmor checks in postinstall
Status: RESOLVED DUPLICATE of bug 9422
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 7.2.1
: PC Ubuntu Linux
: -- normal (vote)
: ---
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-29 21:25 UTC by M. LaPlante
Modified: 2008-10-29 22:29 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description M. LaPlante 2008-10-29 21:25:41 UTC
The Debian package postinstall does a poor job of checking for an apparmor installation, which ultimately can cause the install to fail.  The only check the script does is 

if [ -f /etc/apparmor.d/usr.sbin.mysqld ]

If this succeeds, it assumes apparmor is installed.  This is not the case, and when it tries to run 

/etc/init.d/apparmor restart

the installer will fail (assuming it doesn't exist).  It should be trivial to mod the installer to check for the existence of /etc/init.d/apparmor before actually trying to run it.
Comment 1 Mark Miksis 2008-10-29 22:27:00 UTC
I think this is a dupe of bug 9422.
Comment 2 M. LaPlante 2008-10-29 22:29:06 UTC

*** This bug has been marked as a duplicate of bug 9422 ***