autopilot-touch/apparmor/click.rules need a new home, but where?

Bug #1315200 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopilot (Ubuntu)
New
Undecided
Unassigned
click-apparmor (Ubuntu)
Invalid
Undecided
Unassigned
phablet-tools (Ubuntu)
Invalid
Undecided
Unassigned
ubuntu-meta (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

autopilot-touch/apparmor/click.rules need a new home, but where?

At the moment click.rules is executed by phablet-config on the touch image:

<xnox> def _handle_autopilot(adb, args):
<xnox> if args.dbus_probe == 'enable':
<xnox> rfile = '/usr/share/autopilot-touch/apparmor/click.rules'
<xnox> adb.shell('aa-clickhook -f --include=%s' % rfile)
<xnox> else:
<xnox> adb.shell('aa-clickhook -f')

The file itself is at the moment shipped by package autopilot-touch -> which is an unfortunate meta-package which really has no valid reasons to exist, e.g. all those dependencies are seeded in ubuntu-touch seed anyway.

The name of the rules file is also a bit missleading, it would be better named dbus-autopilot or some such.

Depending on what we choose to do autopilot, phablet-tools, click-apparmor, may need to change.

option1: move /usr/share/autopilot-touch/apparmor/click.rules to be shipped by apparmor-click package instead of autopilot-touch package

option2: ship a new rules file in click-apparmor package (e.g. usr/share/click-apparmor/dbus-autopilot.rules), add support in phablet tools to execute with both old and new name, eventually deprecate/drop autopilot-touch package

option3: have python-autopilot ship python-autopilot.rules & python3-autopilot ship python3-autopilot.rules & teach phablet-config to call/include either.

option4: simply make python3-autopilot ship that rules file, in that same location.

option5: use some other mechanism to ship equivalent click.rules, but disabled by default, and calls to enable/disable it.

Or any other options that you may suggest

for reference here is the contents of the click.rules:
dbus (receive, send)
     bus=session
     path=/com/canonical/Autopilot/**,

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Proposed option1

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

<jdstrand> xnox: you probably want me, though I am fine with going with sbeattie1's opinion
<jdstrand> xnox: so, the original point of shipping it in autopilot is because a) it is what needs it and b) if it changes its dbus accesses, it is in control of the file
<jdstrand> I don't really care though if someone wants to move it
<jdstrand> xnox: but can you explain why you want the change?
<xnox> jdstrand: at the moment it's shipped by a meta-package. we have two autopilot - python3-autopilot & python2-autopilot. I want to drop meta-package, as it's pointless, apart from that one file.
<xnox> jdstrand: i like reasoning that "it's in control of autopilot"
<xnox> i think i will move it to python3-autopilot

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

So given above, i think click.rules should stay in the package it is currently in, but arrange for autopilot-touch package to drop python2 dependencies.

Changed in phablet-tools (Ubuntu):
status: New → Invalid
Changed in click-apparmor (Ubuntu):
status: New → Invalid
Changed in ubuntu-meta (Ubuntu):
status: New → Fix Released
Revision history for this message
Sergio Schvezov (sergiusens) wrote : Re: [Bug 1315200] [NEW] autopilot-touch/apparmor/click.rules need a new home, but where?

On Thu, May 1, 2014 at 9:00 PM, Dimitri John Ledkov
<email address hidden>wrote:

> Public bug reported:
>
> autopilot-touch/apparmor/click.rules need a new home, but where?
>
> At the moment click.rules is executed by phablet-config on the touch
> image:
>
> <xnox> def _handle_autopilot(adb, args):
> <xnox> if args.dbus_probe == 'enable':
> <xnox> rfile = '/usr/share/autopilot-touch/apparmor/click.rules'
> <xnox> adb.shell('aa-clickhook -f --include=%s' % rfile)
> <xnox> else:
> <xnox> adb.shell('aa-clickhook -f')
>
> The file itself is at the moment shipped by package autopilot-touch ->
> which is an unfortunate meta-package which really has no valid reasons
> to exist, e.g. all those dependencies are seeded in ubuntu-touch seed
> anyway.
>
> The name of the rules file is also a bit missleading, it would be better
> named dbus-autopilot or some such.
>
> Depending on what we choose to do autopilot, phablet-tools, click-
> apparmor, may need to change.
>
> option1: move /usr/share/autopilot-touch/apparmor/click.rules to be
> shipped by apparmor-click package instead of autopilot-touch package
>
> option2: ship a new rules file in click-apparmor package (e.g. usr/share
> /click-apparmor/dbus-autopilot.rules), add support in phablet tools to
> execute with both old and new name, eventually deprecate/drop autopilot-
> touch package
>
> option3: have python-autopilot ship python-autopilot.rules &
> python3-autopilot ship python3-autopilot.rules & teach phablet-config to
> call/include either.
>
> option4: simply make python3-autopilot ship that rules file, in that
> same location.
>
> option5: use some other mechanism to ship equivalent click.rules, but
> disabled by default, and calls to enable/disable it.
>

option6: add to phablet-tools and have it push the rules file and rerun the
hooks?

>
> Or any other options that you may suggest
>
> for reference here is the contents of the click.rules:
> dbus (receive, send)
> bus=session
> path=/com/canonical/Autopilot/**,
>
> ** Affects: autopilot (Ubuntu)
> Importance: Undecided
> Status: New
>
> ** Affects: click-apparmor (Ubuntu)
> Importance: Undecided
> Status: New
>
> ** Affects: phablet-tools (Ubuntu)
> Importance: Undecided
> Status: New
>
> ** Also affects: click-apparmor (Ubuntu)
> Importance: Undecided
> Status: New
>
> ** Also affects: autopilot (Ubuntu)
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> phablet-tools in Ubuntu.
> https://bugs.launchpad.net/bugs/1315200
>
> Title:
> autopilot-touch/apparmor/click.rules need a new home, but where?
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/autopilot/+bug/1315200/+subscriptions
>

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

Other bug subscribers

Remote bug watches

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