/etc/apparmor/logprof.conf has invalid repository url

Bug #258818 reported by antage
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apparmor (Ubuntu)
Fix Released
Wishlist
Kees Cook

Bug Description

Binary package hint: apparmor-utils

/etc/apparmor/logprofile.conf from apparmor-utils 2.1+1075-0ubuntu9.1 (Ubuntu Hardy) contains following lines:
....
[repository]
  distro = ubuntu-gutsy
  url = http://apparmor.test.opensuse.org/backend/api
  preferred_user = ubuntu
....

wget http://apparmor.test.opensuse.org/backend/api returns "404: Not Found".

May need change to?
....
[repository]
  distro = ubuntu-hardy
  url = http://apparmor.opensuse.org/backend/api
  preferred_user = ubuntu
....

Revision history for this message
Kees Cook (kees) wrote :

Updated for Intrepid.

Changed in apparmor:
assignee: nobody → kees
importance: Undecided → Wishlist
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apparmor - 2.3+1289-0ubuntu3

---------------
apparmor (2.3+1289-0ubuntu3) intrepid; urgency=low

  * add locking permission to /var/log/wtmp abstraction, thanks to
    Martin Pitt (LP: #253328).
  * utils/logprof.conf: repository updated for Intrepid (LP: #258818).
  * profiles/apparmor.d/usr.sbin.nscd: added cache directory (LP: #144383).
  * parser/rc.apparmor.functions: redirect stderr (LP: #244013).
  * parser/Makefile: blacklist "AF_ISDN".

 -- Kees Cook <email address hidden> Wed, 30 Jul 2008 09:29:03 -0700

Changed in apparmor:
status: Fix Committed → Fix Released
Revision history for this message
thosjo (thomas-sjogren) wrote :

The new repo doesnt seem to work that well either.
Besides that, aa-logprof doesn't respect when you choose N on the "Create New User?" question, perhaps a seperate bug report?

aa-logprof output:

= Changed Local Profiles =

The following local profiles were changed. Would you like to save them?

 [1 - /sbin/syslogd]
  2 - /usr/lib/firefox-3.0.3/firefox.sh
  3 - /usr/lib/sm.bin/sendmail

(S)ave Changes / [(V)iew Changes] / Abo(r)t
Writing updated profile for /sbin/syslogd.
Writing updated profile for /usr/lib/firefox-3.0.3/firefox.sh.
Writing updated profile for /usr/lib/sm.bin/sendmail.

Create New User?

(Y)es / [(N)o]
Username: REMOVED
Password: REMOVED
Email Addr: REMOVED
Save Configuration?

[(Y)es] / (N)o

Login Error
RPC::XML::Client::send_request: HTTP server error: Not Found

Create New User?

(Y)es / [(N)o]

~# cat /etc/apparmor/repository.conf
[repository]
  enabled = yes
  upload = yes
  url = http://apparmor.opensuse.org/backend/api

# wget http://apparmor.opensuse.org/backend/api
--2008-11-07 14:14:16-- http://apparmor.opensuse.org/backend/api
Resolving apparmor.opensuse.org... 195.135.221.140
Connecting to apparmor.opensuse.org|195.135.221.140|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2008-11-07 14:14:16 ERROR 500: Internal Server Error.

~# lsb_release -a && dpkg -l |grep apparmor
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid
ii apparmor 2.3+1289-0ubuntu5 User-space parser utility for AppArmor
ii apparmor-docs 2.3+1289-0ubuntu5 Documentation for AppArmor
ii apparmor-profiles 2.3+1289-0ubuntu5 Profiles for AppArmor Security policies
ii apparmor-utils 2.3+1289-0ubuntu5 Utilities for controlling AppArmor
ii libapache2-mod-apparmor 2.3+1289-0ubuntu5 changehat AppArmor library as an Apache modu
ii libapparmor-dev 2.3+1289-0ubuntu5 AppArmor development libraries and header fi
ii libapparmor-perl 2.3+1289-0ubuntu5 AppArmor library Perl bindings
ii libapparmor1 2.3+1289-0ubuntu5 changehat AppArmor library
ii libpam-apparmor 2.3+1289-0ubuntu5 changehat AppArmor library as a PAM module

Revision history for this message
Bremm (bremm) wrote :

Same problem in lucid using apparmor up-to-date (2.5-0ubuntu3) in /etc/apparmor/logprof.conf

[repository]
  distro = ubuntu-intrepid
  url = http://apparmor.test.opensuse.org/backend/api
  preferred_user = ubuntu

I noticed this repo, but I don't know if it could be used in Lucid (probably not, since it lacks some stuff to plug apparmor client).

http://bazaar.launchpad.net/~ubuntu-core-dev/apparmor/profiles-devel/files

Some instructions can be read and are pretty easy to understand here:

http://sman.informatik.htw-dresden.de/doc/manual.11.1/sec.apparmor.repo.html

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.