]> git.ipfire.org Git - thirdparty/systemd.git/commit
ima-setup: write policy one line at a time 167/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Jun 2015 19:19:03 +0000 (15:19 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 11 Jun 2015 13:05:02 +0000 (09:05 -0400)
commit92994160afa888255a7ede525dd16e3f1e2ed10d
treee791b97bf7c1f985cad2b7fc103d6a1448bcb5eb
parent4aa2764cade3e6d5233f2e390d64931d5cff1410
ima-setup: write policy one line at a time

ima_write_policy() expects data to be written as one or more
rules, no more than PAGE_SIZE at a time. Easiest way to ensure
that we are not splitting rules is to read and write one line at
a time.

https://bugzilla.redhat.com/show_bug.cgi?id=1226948
src/core/ima-setup.c