LKML Archive on
help / color / mirror / Atom feed
From: "Ahmed S. Darwish" <>
Subject: Rule parsing from a virtual FS write() syscall
Date: Wed, 24 Oct 2007 13:00:43 +0200	[thread overview]
Message-ID: <20071024110043.GA5297@Ahmed> (raw)

Hi all,

In SMACK, some rules are written to a virtual fs file named 

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() 

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?


Ahmed S. Darwish

                 reply	other threads:[~2007-10-24 11:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071024110043.GA5297@Ahmed \ \ \ \ \
    --subject='Re: Rule parsing from a virtual FS write() syscall' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
on how to clone and mirror all data and code used for this inbox