[apparmor] [patch] fix disabling printk_ratelimit in aa-genprof
Christian Boltz
apparmor at cboltz.de
Mon Jun 9 18:33:28 UTC 2014
Hello,
aa-genprof failed to set /proc/sys/kernel/printk_ratelimit to 0
(unlimited) because the "if not value:" check matches 0.
This patch replaces the check with "... is None".
=== modified file 'utils/aa-genprof'
--- utils/aa-genprof 2014-05-21 19:42:43 +0000
+++ utils/aa-genprof 2014-06-09 18:31:07 +0000
@@ -33,7 +33,7 @@
return value
def sysctl_write(path, value):
- if not value:
+ if value is None:
return
with open(path, 'w') as f_out:
f_out.write(str(value))
Regards,
Christian Boltz
--
Re. "mailing lists are too hard to use", people who can't follow simple
instructions to join (send an e-mail to... to subscribe, send an e-mail
to... to unsubscribe) probably won't be helped by the message content
in any case. [Glenn Holmer in opensuse]
More information about the AppArmor
mailing list