[apparmor] [patch] fix logprof handling of var declarations
Steve Beattie
steve at nxnw.org
Sat Feb 5 01:14:46 UTC 2011
This patch fixes a logprof bug (that I sadly never filed) such that
when variable declarations are written out in profiles, a trailing
comma is not appended to them, which is invalid syntax and causes
the parser to fail when loading the policy.
The patch is against the 2.5.x branch and is nominated for the 2.5.2
release and trunk.
=== modified file 'utils/SubDomain.pm'
--- a/utils/SubDomain.pm 2011-01-24 23:09:08 +0000
+++ b/utils/SubDomain.pm 2011-02-05 00:37:56 +0000
@@ -5616,7 +5616,7 @@
sub writelistvars ($$) {
my ($prof_data, $depth) = @_;
- return write_pair($prof_data, $depth, '', 'lvar', "", " = ", ",", \&var_transform);
+ return write_pair($prof_data, $depth, '', 'lvar', "", " = ", "", \&var_transform);
}
sub writecap_rules ($$$) {
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20110204/8d699918/attachment.pgp>
More information about the AppArmor
mailing list