comments in variables

Bug #1741584 reported by Seth Arnold
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
AppArmor
New
Undecided
Unassigned
apparmor (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Nibaldo González discovered that AppArmor parses variable assignments differently than many other lines and includes #comments if they are on the same line in a surprising fashion:

https://lists.ubuntu.com/archives/apparmor/2018-January/011418.html

> 24| @{libreoffice_ext} = [tT][xX][tT] #.txt
> 25| @{libreoffice_ext} += {,f,F}[oO][dDtT][tTsSpPbBgGfF] #All the open
> document format
...

$ apparmor_parser -Qd < foo | grep '#'
Warning from stdin (line 1): apparmor_parser: cannot use or update cache, disable, or force-complain via stdin
Mode: rwak: Name: ({/home//*,/root,/mnt,/media}/**.{[tT][xX][tT],#.txt,{,f,F}[oO][dDtT][tTsSpPbBgGfF],#All,the,open,document,format,[xX][mMsS][lL],#.xml,and,xsl,[pP][dD][fF],#.pdf,[uU][oO][fFtTsSpP],#Unified,office,format,{,x,X}[hH][tT][mM]{,l,L},#(x)htm(l),[jJ][pP][gG],[jJ][pP][eE][gG],[pP][nN][gG],[sS][vV][gG],[sS][vV][gG][zZ]99251,[tT][iI][fF],[tT][iI][fF][fF],[dD][oO][cCtT]{,x,X},[rR][tT][fF],[xX][lL][sSwWtT]{,x,X},[dD][iIbB][fF],#.dif,dbf,[cCtT][sS][vV],#.tsv,.csv,[sS][lL][kK],[pP][pP][tTsS]{,x,X},[pP][oO][tT]{,m,M},[sS][wW][fF],#Flash,[pP][sS][dD],#Photoshop,[mM][mM][lL]})

I've filed a bug for this profile but perhaps the solution should be to modify the AppArmor parser instead:

https://bugs.launchpad.net/ubuntu/+source/libreoffice-l10n/+bug/1741581

Thanks

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apparmor (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.