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]          
                                                                                
                                                                                
                               

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to