sudo -s
cd /usr/lib/python3/dist-packages/
patch --dry-run -p1
<paste the diff, from the === line to the "def get_profile..." line -- including both>
hit ^D
If that worked, re-run the patch command without --dry-run, then start testing.
If it didn't work, then edit /usr/lib/python3/dist-packages/apparmor/aa.py, look about 583 lines into the file, and try making the edits by hand. Note that Python is very picky about whitespace, it'd be best to use something like vim's :set list feature to make sure you use the same tabs or spaces as surrounding code. (Which is why I suspect the patch will fail. Web browsers aren't very good at whitespace.)
Try this:
sudo -s python3/ dist-packages/
cd /usr/lib/
patch --dry-run -p1
<paste the diff, from the === line to the "def get_profile..." line -- including both>
hit ^D
If that worked, re-run the patch command without --dry-run, then start testing.
If it didn't work, then edit /usr/lib/ python3/ dist-packages/ apparmor/ aa.py, look about 583 lines into the file, and try making the edits by hand. Note that Python is very picky about whitespace, it'd be best to use something like vim's :set list feature to make sure you use the same tabs or spaces as surrounding code. (Which is why I suspect the patch will fail. Web browsers aren't very good at whitespace.)
Thanks