[Touch-packages] [Bug 1435452] Re: dh_apparmor has no dh sequencer support

2022-02-12 Thread Bug Watch Updater
** Changed in: apparmor (Debian)
   Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1435452

Title:
  dh_apparmor has no dh sequencer support

Status in apparmor package in Ubuntu:
  Confirmed
Status in apparmor package in Debian:
  New

Bug description:
  As dh_apparmor timing is critical (it must run before services are
  started with dh_installinit), it makes sense to provide direct dh
  sequencer support so that maintainers don't have to remember to run it
  directly, and cannot mistakenly call it at the wrong point, as
  happened with MySQL in bug 1421303).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1435452/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1435452] Re: dh_apparmor has no dh sequencer support

2022-02-12 Thread intrigeri
** Bug watch added: Debian Bug tracker #934735
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=934735

** Also affects: apparmor (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=934735
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1435452

Title:
  dh_apparmor has no dh sequencer support

Status in apparmor package in Ubuntu:
  Confirmed
Status in apparmor package in Debian:
  Unknown

Bug description:
  As dh_apparmor timing is critical (it must run before services are
  started with dh_installinit), it makes sense to provide direct dh
  sequencer support so that maintainers don't have to remember to run it
  directly, and cannot mistakenly call it at the wrong point, as
  happened with MySQL in bug 1421303).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1435452/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1435452] Re: dh_apparmor has no dh sequencer support

2019-02-14 Thread Steve Langasek
FWIW I went hunting for bug reports about this issue in response to
https://github.com/snapcore/snapd/pull/6508 - if this were solved
centrally in dh-apparmor, I expect that would benefit a number of
packages over the long term.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1435452

Title:
  dh_apparmor has no dh sequencer support

Status in apparmor package in Ubuntu:
  Confirmed

Bug description:
  As dh_apparmor timing is critical (it must run before services are
  started with dh_installinit), it makes sense to provide direct dh
  sequencer support so that maintainers don't have to remember to run it
  directly, and cannot mistakenly call it at the wrong point, as
  happened with MySQL in bug 1421303).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1435452/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1435452] Re: dh_apparmor has no dh sequencer support

2015-04-03 Thread Steve Beattie
** Changed in: apparmor (Ubuntu)
   Importance: Undecided = Wishlist

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1435452

Title:
  dh_apparmor has no dh sequencer support

Status in apparmor package in Ubuntu:
  Confirmed

Bug description:
  As dh_apparmor timing is critical (it must run before services are
  started with dh_installinit), it makes sense to provide direct dh
  sequencer support so that maintainers don't have to remember to run it
  directly, and cannot mistakenly call it at the wrong point, as
  happened with MySQL in bug 1421303).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1435452/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1435452] Re: dh_apparmor has no dh sequencer support

2015-03-24 Thread Robie Basak
How about:

debian/apparmor/usr.sbin.mysqld: actual profile

debian/mysql-server-5.6.apparmor:

debian/apparmor/usr.sbin.mysqld usr.sbin.mysqld

OR (both would work)

debian/apparmor/usr.sbin.mysqld

(profile name defaults to basename of path provided)

then, in debian/rules:

dh --with apparmor

OR (both would work)

dh_installapparmor at the appropriate time

OR (for backwards compatilibity)

dh_install # arranges /etc/apparmor.d/usr.sbin.mysqld to exist
dh_apparmor --profile=usr.sbin.mysqld

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1435452

Title:
  dh_apparmor has no dh sequencer support

Status in apparmor package in Ubuntu:
  Confirmed

Bug description:
  As dh_apparmor timing is critical (it must run before services are
  started with dh_installinit), it makes sense to provide direct dh
  sequencer support so that maintainers don't have to remember to run it
  directly, and cannot mistakenly call it at the wrong point, as
  happened with MySQL in bug 1421303).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1435452/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1435452] Re: dh_apparmor has no dh sequencer support

2015-03-24 Thread Robie Basak
Thanks Steve.

Yes - I was thinking about something like a .apparmor file that tells
dh_apparmor what it needs.

Without the dh sequencer, we're requiring two things:

1) For the packager to understand *where* to put the override
2) For the packager to specify information needed by dh_apparmor (the profile 
name)

Traditionally the dh sequencer eliminates the first, and the maintainer
supplies the second via package.dh_name files.

Consider that if every dh_ helper worked in this current way, we'd be
back to not having a dh sequencer.

For backwards compatiblity, how about falling back to the old behaviour
on some combination of --profile-name and --manifest not being specified
and the .apparmor file not being present?

And while we're talking of changing things, how about arranging it so
that adding the profile to the .install file for dh_install is also not
required? An example is dh_installinit - we don't install the init.d
file and then give it to dh_installinit; it does the whole thing. Though
that does get implied by install in the name. Maybe we should have
dh_installapparmor which combines the two operations, and retain
dh_apparmor for backwards compatibility and eventual deprecation?

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1435452

Title:
  dh_apparmor has no dh sequencer support

Status in apparmor package in Ubuntu:
  Confirmed

Bug description:
  As dh_apparmor timing is critical (it must run before services are
  started with dh_installinit), it makes sense to provide direct dh
  sequencer support so that maintainers don't have to remember to run it
  directly, and cannot mistakenly call it at the wrong point, as
  happened with MySQL in bug 1421303).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1435452/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1435452] Re: dh_apparmor has no dh sequencer support

2015-03-23 Thread Steve Beattie
Hey Robie,

I'm not particularly clueful when it comes to debhelper, but I don't
really see how to accomplish this given what knowledge dh_apparmor
has/doesn't have. It needs to know what profile(s) to create a local
file for, as well as to reload; this is why the --profile-name argument
is required to be passed to dh_apparmor.

I guess one possible way to do it would be to have an expected
environment variable to look for, and have the function automatically
inserted into the dh sequencer apply the profile based on that, but that
wouldn't help the mysql case, as the sequenced dh_apparmor function
wouldn't know to only apply the profile to the mysql-server-X.X package.
Well, unless we got into complicated environment variables names or
representations, which is even less appealing.

I guess another option would be some sort of profile manifest file(s)
(not easyprof json manifests, but something akin to the .install, .docs,
or .manpages manifests). But I'm also not sure how to do so in a
backwards compatible way.

I'll give it some more thought.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1435452

Title:
  dh_apparmor has no dh sequencer support

Status in apparmor package in Ubuntu:
  New

Bug description:
  As dh_apparmor timing is critical (it must run before services are
  started with dh_installinit), it makes sense to provide direct dh
  sequencer support so that maintainers don't have to remember to run it
  directly, and cannot mistakenly call it at the wrong point, as
  happened with MySQL in bug 1421303).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1435452/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1435452] Re: dh_apparmor has no dh sequencer support

2015-03-23 Thread Steve Beattie
To clarify, I mean that the existing dh_apparmor needs to be passed the
profile name and potentially the package name as well as it has no means
currently of discerning what those might be, which means there's no
current way to get around requiring the packager to manually add the
dh_apparmor call to the override_dh_install: target.

** Changed in: apparmor (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1435452

Title:
  dh_apparmor has no dh sequencer support

Status in apparmor package in Ubuntu:
  Confirmed

Bug description:
  As dh_apparmor timing is critical (it must run before services are
  started with dh_installinit), it makes sense to provide direct dh
  sequencer support so that maintainers don't have to remember to run it
  directly, and cannot mistakenly call it at the wrong point, as
  happened with MySQL in bug 1421303).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1435452/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1435452] Re: dh_apparmor has no dh sequencer support

2015-03-23 Thread Robie Basak
To be clear, I'm expecting that a debian/rules file that calls dh should
not need to explicitly call dh_apparmor at all, and that AppArmor
profiles will end up loaded before any corresponding service installed
with dh_installinit is started.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1435452

Title:
  dh_apparmor has no dh sequencer support

Status in apparmor package in Ubuntu:
  New

Bug description:
  As dh_apparmor timing is critical (it must run before services are
  started with dh_installinit), it makes sense to provide direct dh
  sequencer support so that maintainers don't have to remember to run it
  directly, and cannot mistakenly call it at the wrong point, as
  happened with MySQL in bug 1421303).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1435452/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp