Merge lp:~intrigeri/apparmor/add-firefox-esr-to-ubuntu-browsers into lp:apparmor/2.12

Proposed by intrigeri
Status: Merged
Merged at revision: 3487
Proposed branch: lp:~intrigeri/apparmor/add-firefox-esr-to-ubuntu-browsers
Merge into: lp:apparmor/2.12
Diff against target: 11 lines (+1/-0)
1 file modified
profiles/apparmor.d/abstractions/ubuntu-browsers (+1/-0)
To merge this branch: bzr merge lp:~intrigeri/apparmor/add-firefox-esr-to-ubuntu-browsers
Reviewer Review Type Date Requested Status
AppArmor Developers Pending
Review via email: mp+292725@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Christian Boltz (cboltz) wrote :

Just a sidenote: I'm not sure about the reason why the rule was about firefox*.sh (the bzr log r1905.1.5 doesn't explain it - Jamie, do you still remember?), so someone should double-check why it was restricted to *.sh.

On openSUSE, /usr/lib64/firefox/ contains firefox, firefox-bin and firefox.sh (and some files not matching firefox*)

Anyway - you can simplify your rule to /usr/lib/firefox*/firefox* - the additional {,.sh} isn't needed thanks to the * ;-)

3442. By intrigeri

ubuntu-browsers abstraction: simplify rule.

Thanks to Christian Boltz <email address hidden> for the suggestion!

Revision history for this message
intrigeri (intrigeri) wrote :

> Anyway - you can simplify your rule to /usr/lib/firefox*/firefox* - the additional {,.sh} isn't needed thanks to the * ;-)

Thanks, now done in my branch :)

Revision history for this message
intrigeri (intrigeri) wrote :

Two months later: ping?

Revision history for this message
Steve Beattie (sbeattie) wrote :

On Thu, Jun 23, 2016 at 06:51:14PM -0000, intrigeri wrote:
> Two months later: ping?

Sorry about that.

> === modified file 'profiles/apparmor.d/abstractions/ubuntu-browsers'
> --- profiles/apparmor.d/abstractions/ubuntu-browsers 2012-04-25 19:13:15 +0000
> +++ profiles/apparmor.d/abstractions/ubuntu-browsers 2016-04-24 14:26:52 +0000
> @@ -30,7 +30,7 @@
> # this should cover all firefox browsers and versions (including shiretoko
> # and abrowser)
> /usr/bin/firefox Cxr -> sanitized_helper,
> - /usr/lib/firefox*/firefox*.sh Cx -> sanitized_helper,
> + /usr/lib/firefox*/firefox*{,.sh} Cx -> sanitized_helper,

The problem with this is that firefox*{,.sh} is equivalent to firefox*.
Furthermore it matches the firefox binary /usr/lib/firefox/firefox as
shipped in ubuntu, which the original pattern did not.

But (and this is what prevented me from replying when the original merge
request was proposed), I'm not sure what the implications of that change
are, if any. The shipped firefox profile in ubuntu (16.04 LTS at least)
has "/usr/lib/firefox/firefox{,*[^s][^h]}" as it's profile match, so
potentially this could cause interference.

Is there a more tightly bound pattern for the esr firefoxes that debian
is shipping?

--
Steve Beattie
<email address hidden>
http://NxNW.org/~steve/

3443. By intrigeri

ubuntu-browsers abstraction: re-implement Debian's firefox-esr support in a way that does not affect other Firefox browsers.

Revision history for this message
intrigeri (intrigeri) wrote :

Hi,

Steve Beattie wrote (23 Jun 2016 21:34:46 GMT):
> The problem with this is that firefox*{,.sh} is equivalent to firefox*.

Right (and since Christian noted this I've already changed the line to
firefox*).

> Furthermore it matches the firefox binary /usr/lib/firefox/firefox as
> shipped in ubuntu, which the original pattern did not.

> But (and this is what prevented me from replying when the original merge
> request was proposed), I'm not sure what the implications of that change
> are, if any. The shipped firefox profile in ubuntu (16.04 LTS at least)
> has "/usr/lib/firefox/firefox{,*[^s][^h]}" as it's profile match, so
> potentially this could cause interference.

OK. Let's avoid diving into this, if possible.

> Is there a more tightly bound pattern for the esr firefoxes that debian
> is shipping?

Yes, done in my updated branch :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'profiles/apparmor.d/abstractions/ubuntu-browsers'
2--- profiles/apparmor.d/abstractions/ubuntu-browsers 2012-04-25 19:13:15 +0000
3+++ profiles/apparmor.d/abstractions/ubuntu-browsers 2016-06-24 15:35:53 +0000
4@@ -31,6 +31,7 @@
5 # and abrowser)
6 /usr/bin/firefox Cxr -> sanitized_helper,
7 /usr/lib/firefox*/firefox*.sh Cx -> sanitized_helper,
8+ /usr/lib/firefox-esr/firefox* Cx -> sanitized_helper,
9
10 # Iceweasel
11 /usr/bin/iceweasel Cxr -> sanitized_helper,

Subscribers

People subscribed via source and target branches