All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel Gröber" <dxld@darkboxed.org>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nftables] Allow resetting the include search path
Date: Tue, 28 Jun 2022 21:01:01 +0200	[thread overview]
Message-ID: <20220628190101.76cmatthftrsxbja@House> (raw)
In-Reply-To: <Yrs2nn/amfnaUDk8@salvia> <Yrs3kkbc4z5AMF+W@salvia>

Hi Pablo,

On Tue, Jun 28, 2022 at 07:13:02PM +0200, Pablo Neira Ayuso wrote:
> You can do
> 
> # cat x.nft
> include "./z.nft"
> # cat z.nft
> add table x
> 
> then:
> 
> # nft -f x.nft
> 
> using ./ at the beginning of the path overrides DEFAULT_INCLUDE_PATH.
> 
> Is this what you are searching for?

While that could work its rather a hassle. On my (Debian) system
nftables.service runs in the root directory so I'd have to do ugly stuff
like `include "./etc/nftables/foo.conf"` which I'd rather not. For one the
config would then depend on where `nft -f ...` is run exactly which sucks.

I think my patch is a much cleaner and general solution.

--Daniel

  reply	other threads:[~2022-06-28 19:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27 22:23 [PATCH nftables] Allow resetting the include search path Daniel Gröber
2022-06-28 17:13 ` Pablo Neira Ayuso
2022-06-28 17:17   ` Pablo Neira Ayuso
2022-06-28 19:01     ` Daniel Gröber [this message]
2022-06-29 17:20       ` Pablo Neira Ayuso
2022-06-30 20:56         ` Daniel Gröber
2022-07-01  1:31           ` Peter Tirsek
2022-07-04 18:03             ` Daniel Gröber

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20220628190101.76cmatthftrsxbja@House \
    --to=dxld@darkboxed.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.