[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20071024110043.GA5297@Ahmed>
Date: Wed, 24 Oct 2007 13:00:43 +0200
From: "Ahmed S. Darwish" <darwish.07@...il.com>
To: linux-kernel@...r.kernel.org
Cc: casey@...aufler-ca.com, viro@...iv.linux.org.uk
Subject: Rule parsing from a virtual FS write() syscall
Hi all,
In SMACK, some rules are written to a virtual fs file named
"cipso".
Rule format is
label level[/cat[,cat]]
Under high I/O load we don't recieve the whole rule in one shot.
This means that sometimes the write() operation begins from the
middle of the rule. Under some conditions, the first rule _letter_
was only recieved while others were recieved in remaining write()
calls.
Current SMACK versions don't assume fragmented input like above
cases. This means that sometimes bogus rules that does not
represent users' intent got created.
What is the best way to parse a rule in such hard coditions?
Regards,
--
Ahmed S. Darwish
HomePage: http://darwish.07.googlepages.com
Blog: http://darwish-07.blogspot.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists