Public bug reported:

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

** Affects: apparmor
     Importance: Undecided
         Status: New

** Affects: apparmor (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: apparmor
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor in Ubuntu.
https://bugs.launchpad.net/bugs/1741584

Title:
  comments in variables

Status in AppArmor:
  New
Status in apparmor package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/apparmor/+bug/1741584/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to