[Apparmor-dev] [rfr] apparmor_status: report more detailed
information
Mathias Gug
mathiaz at ubuntu.com
Wed May 30 13:01:55 MDT 2007
On Tue, May 29, 2007 at 11:48:06AM -0700, jesse michael wrote:
> > + $profiles{$1} = $2 if m/(\S+)\s+\((\w+)\)$/;
>
> One thing that should be noted is that profile names can currently have
> whitespace in them. So if you profile "/usr/bin/my silly program", that
> \S+ in the m// won't match things correctly.
>
I've updated the regex to m/^([^\(]+)\s+\((\w+)\)$/, which should take
care of the white space problem.
I've attached an updated diff.
--
Mathias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apparmor_status.diff
Type: text/x-diff
Size: 5372 bytes
Desc: not available
Url : http://forge.novell.com/pipermail/apparmor-dev/attachments/20070530/ce3e1f45/apparmor_status.bin
More information about the Apparmor-dev
mailing list