[pkg-apparmor] Bug#882047: Bug#882047: Bug#882047: apparmor-utils: aa-complain thunderbird fails

Christian Boltz debian-bugs at cboltz.de
Sun Nov 19 20:38:08 UTC 2017


Hello,

Am Samstag, 18. November 2017, 22:25:40 CET schrieb Ben Caradoc-Davies:
> On 19/11/17 07:47, Christian Boltz wrote:
> > Can you please send (to me or the bugreport) your
> > /etc/apparmor.d/usr.bin.thunderbird profile so that I have the
> > correct profile to test?
> 
> Attached.

Thanks, but unfortunately I still can't reproduce the problem :-(

Can you add a bit of debugging code in aa.py, please?

Search for

    def get_profile_flags(filename, program):

and add the lines marked with "# added" (or just replace the function 
with the code below)


def get_profile_flags(filename, program):
    # To-Do
    # XXX If more than one profile in a file then second one is being ignored XXX
    # Do we return flags for both or
    print('looking for', filename, program)  # added
    flags = ''
    with open_file_read(filename) as f_in:
        print('reading file %s' % filename)  # added
        for line in f_in:
            if RE_PROFILE_START.search(line):
                matches = parse_profile_start_line(line, filename)
                profile = matches['profile']
                flags = matches['flags']
                print('found RE_PROFILE_START in %s' % line)  # added
                print(profile, flags)  # added

                if profile == program or program is None:
                    print('match, returning flags')  # added
                    return flags

    print('no profile', filename, program)  # added
    raise AppArmorException(_('%s contains no profile') % filename)


Then run   aa-complain thunderbird   again and send the output.


Regards,

Christian Boltz
-- 
> +1. sysvinit vs systemd is the new emacs vs vim.                                                                                                                                                                                                                             
heh, the difference is that systemd still doesnt implement a whole OS                                                                                                                                                                                                          
yet :-D [> Will Stephenson and Cristian Rodríguez in opensuse-factory]                                                                                                                                                                                                         
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-apparmor-team/attachments/20171119/1988c9aa/attachment.sig>


More information about the pkg-apparmor-team mailing list