Re: Deleting tables from included files causes a kernel BUG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 16, 2019 at 08:29:12PM +0100, Florian Westphal wrote:
> Mikhail Morfikov <mmorfikov@xxxxxxxxx> wrote:
> > # nft -f rules.nft
> > rules.nft:21:1-26: Error: Could not process rule: No such file or directory
> > delete table ip testtable
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^
> > 
> > I have a question. Basically, when you create a table or a chain
> > you can use "add" or "create", and only the second option will 
> > return an error if the table/chain you wanted to create already 
> > exists. But in the case of deleting tables/chains, which don't 
> > exist, there's only one option -- return an error.
> 
> Good point.
> 
> Pablo, do you think we should NOT abort/error in case of -ENOENT
> on table delete?

We can find a way to introduce this new semantics, eg. "destroy table"
vs.  "delete table", where destroy ignores ENOENT, but we'll need to
explore how to express this in netlink, because so far it is not
possible IIRC.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux