[Bug 457098] New: typo in /usr/share/vim/vim72/syntax/apparmor. vim and missing pieces
https://bugzilla.novell.com/show_bug.cgi?id=457098 Summary: typo in /usr/share/vim/vim72/syntax/apparmor.vim and missing pieces Product: openSUSE 11.1 Version: RC 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: AppArmor AssignedTo: jjohansen@novell.com ReportedBy: felix@derklecks.de QAContact: qa@suse.de CC: suse-beta@cboltz.de Found By: --- I am just playing with AppArmor and found a little problem with the vim syntax highlighting. There somehow got garbage character in /usr/share/vim/vim72/syntax/apparmor.vim therefore net_bind_service and sys_resource are not highlighting. In addition deny rules are red and the "capability audit_control," is not highlighted. Otherwise really nice! CCing Christian Boltz as he is in the header of the file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457098 User felix@derklecks.de added comment https://bugzilla.novell.com/show_bug.cgi?id=457098#c1 --- Comment #1 from Felix Möller <felix@derklecks.de> 2008-12-07 06:49:32 MST --- Created an attachment (id=258480) --> (https://bugzilla.novell.com/attachment.cgi?id=258480) to make the first point clear here a patch -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457098 User jeffm@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457098#c3 --- Comment #3 from Jeff Mahoney <jeffm@novell.com> 2009-02-11 12:58:24 MST --- Created an attachment (id=272033) --> (https://bugzilla.novell.com/attachment.cgi?id=272033) Replacement vim-7.2-filetype_apparmor.patch This patch adds audit_control and fixes net_bind_service and sys_resource. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457098 User jeffm@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457098#c4 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeffm@novell.com AssignedTo|jeffm@novell.com |mkoenig@novell.com --- Comment #4 from Jeff Mahoney <jeffm@novell.com> 2009-02-11 12:59:33 MST --- I've added the patch and am assigning to vim maintainer for inclusion. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457098 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457098#c6 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |werner@novell.com Resolution| |FIXED --- Comment #6 from Dr. Werner Fink <werner@novell.com> 2009-02-17 04:00:04 MST --- included -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457098 User suse-beta@cboltz.de added comment https://bugzilla.novell.com/show_bug.cgi?id=457098#c7 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #7 from Christian Boltz <suse-beta@cboltz.de> 2009-02-26 14:17:51 MST --- Just some comments on this (and sorry for the late reaction): Preamble: I'm reopening this bug to make sure everybody involved (Jeff and Werner or Henne [whoever is the current vim maintainer]) reads this. You can close it again after both of you have added a "seen" sign ;-) a) most important: bug handling in apparmor.vim Jeff, please assign all bugs related to apparmor.vim directly to me instead of patching it. See b) for the reason ;-) b) technical stuff: - apparmor.vim is generated from a apparmor.vim.in and a script that replaces about 10 placeholders (like @@FILE@@) with the actual rule. The reason for this: Maintaining the final apparmor.vim directly would cause lots of headache - currently it uses about 60 placeholders, which are often used multiple times (for example, @@FILE@@ appears 14 times). Besides the headache, it would also be error prone - I can tell you a thing or two (or "sing some songs" as we german say) about code duplication (with different bugs in each copy!) since I started to cleanup the postfixadmin code... BTW: The only thing that is worse than code duplication is code multiplication ;-) - the .in and the script only exist on my machine (in a local CVS). - if you want to have these files in a public CVS or SVN somewhere, just send me the location and give me write permissions ;-) c) audit_control capability Should the audit_control capability be in the sdKapDanger color (darkred) like sys_admin instead of being highlighted as "normal" capability? (The reason for asking: controlling auditing means someone is probably able to bypass apparmor logging etc.) d) filetype.vim patch / packaging adding au BufNewFile,BufRead */etc/apparmor.d/* setf apparmor au BufNewFile,BufRead */etc/apparmor/profiles/* setf apparmor to filetype.vim is a really good idea. It would even be a better idea to make this section a separate patch - I usually provide a new apparmor.vim after apparmor changes (or after fixing bugs ;-) , and this happens more often than the changes needed for filetype.vim. You should also consider to add apparmor.vim as %sourceX and installing it via %{__INSTALL} instead of "converting" it to a patch. e) finally: the strange characters The strange characters reported in this bug were probably caused by copy&paste when I edited the script that generates apparmor.vim - it's the same character I use as "line continues" character in vim ("»" in iso-8859-15). Looks like I should use "yy" instead of the mouse when copying text in vim... ;-) I fixed my local files, so this bug shouldn't re-appear. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457098 Hendrik Vogelsang <hvogel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=457098 User swamp@suse.com added comment https://bugzilla.novell.com/show_bug.cgi?id=457098#c8 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:10.3:22732 | |maint:released:11.0:22732 | |maint:released:11.1:22732 --- Comment #8 from Swamp Workflow Management <swamp@suse.com> 2009-03-10 10:18:10 MST --- Update released for: gvim, vim, vim-base, vim-data, vim-enhanced Products: openSUSE 10.3 (i386, ppc, x86_64) openSUSE 11.0 (debug, i386, ppc, x86_64) openSUSE 11.1 (debug, i586, ppc, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com