lp://staging/~intrigeri/apparmor/moved-gnome-mimeapps

Created by intrigeri and last modified
Get this branch:
bzr branch lp://staging/~intrigeri/apparmor/moved-gnome-mimeapps
Only intrigeri can upload to this branch. If you are intrigeri please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
intrigeri
Project:
AppArmor
Status:
Merged

Recent revisions

3504. By intrigeri

gnome abstraction: allow reading file type associations from another place where it can live on Debian.

In Debian, gnome-session (3.20.1-2)'s changelog reads:

    If /etc/gnome/defaults.list was modified by the system administrator,
    the file is moved to /etc/xdg/gnome-mimeapps.list during the upgrade.

So we want to at least support /etc/xdg/gnome-mimeapps.list. And while
we're at it, let's support *-mimeapps.list instead of just gnome-mimeapps.list,
in case other desktop environments or derivatives need such customizations.

3503. By Christian Boltz

Fix aa-logprof "add hat" endless loop

This turned out to be a simple case of misinterpreting the promptUser()
result - it returns the answer and the selected option, and
"surprisingly" something like
    ('CMD_ADDHAT', 0)
never matched
    'CMD_ADDHAT'
;-)

I also noticed that the new hat doesn't get initialized as
profile_storage(), and that the changed profile doesn't get marked as
changed. This is also fixed by this patch.

References: https://bugs.launchpad.net/apparmor/+bug/1538306

Acked-by: Steve Beattie <email address hidden> for trunk, 2.10 and 2.9

3502. By Christian Boltz

type_is_str(): make pyflakes3 happy

pyflakes3 doesn't check sys.version and therefore complains about
'unicode' being undefined.

This patch defines unicode as alias of str to make pyflakes3 happy, and
as a side effect, simplifies type_is_str().

Acked-by: Seth Arnold <email address hidden> for trunk and 2.10.

3501. By Christian Boltz

delete_duplicates(): don't modify self.rules while looping over it

By calling self.delete() inside the delete_duplicates() loop, the
self.rules list was modified. This resulted in some rules not being
checked and therefore (some, not all) superfluous rules not being
removed.

This patch switches to a temporary variable to loop over, and rebuilds
self.rules with the rules that are not superfluous.

This also fixes some strange issues already marked with a "Huh?" comment
in the tests.

Acked-by: Seth Arnold <email address hidden> for trunk and 2.10.

Note that in 2.10 cleanprof_test.* doesn't contain a ptrace rule,
therefore the cleanprof_test.out change doesn't make sense for 2.10.

3500. By Christian Boltz

winbindd profile: allow dac_override

This is needed to delete kerberos ccache files, for details see
https://bugzilla.opensuse.org/show_bug.cgi?id=990006#c5

Acked-by: Seth Arnold <email address hidden> for trunk, 2.10 and 2.9.
Acked-by: Steve Beattie <email address hidden> for trunk, 2.10 and 2.9.

3499. By Christian Boltz

logparser: store network-related params if an event looks like network

Network events can come with an operation= that looks like a file event.
Nevertheless, if the event has a typical network parameter (like
net_protocol) set, make sure to store the network-related flags in ev.

This fixes the test failure introduced in my last commit.

Acked-by: Kshitij Gupta <email address hidden> for trunk, 2.10 and 2.9

3498. By Christian Boltz

logparser.py: ignore network events with 'send receive'

We already ignore network events that look like file events (based on
the operation keyword) if they have a request_mask of 'send' or
'receive' to avoid aa-logprof crashes because of "unknown" permissions.
It turned out that both can happen at once, so we should also ignore
this case.

Also add the now-ignored log event as test_multi testcase.

References: https://bugs.launchpad.net/apparmor/+bug/1577051 #13

Acked-by: Tyler Hicks <email address hidden> for trunk, 2.10 and 2.9.

3497. By Seth Arnold

add ld.so.preload to <abstractions/base>, thanks to Uzair Shamim

3496. By John Johansen

Add 4.4 kernel patches

Signed-off-by: John Johansen <email address hidden>

3495. By John Johansen

Add 4.5 out of tree kernel patches

Signed-off-by: John Johansen <email address hidden>

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://staging/apparmor/2.12
This branch contains Public information 
Everyone can see this information.

Subscribers