Re: [ptxdist] [PATCH] dnsmasq: optionally enable DBus support

2020-03-11 Thread Ladislav Michl
Hi,

On Wed, Mar 11, 2020 at 08:26:13AM +0100, Alexander Dahl wrote:
> Hei hei,
> 
> Am Dienstag, 10. März 2020, 23:16:55 CET schrieb Ladislav Michl:
> > Hi!
> > 
> > On Tue, Mar 10, 2020 at 10:18:48PM +0100, Alexander Dahl wrote:
> > > Hei hei,
> > > 
> > > On Tue, Mar 10, 2020 at 05:01:12PM +0100, Ladislav Michl wrote:
> > > > As projectroot's dnsmasq.conf is copied from example config and
> > > > needs to be modified to match BSP needs anyway, let's remove
> > > > config from projectroot altogether.
> > > 
> > > This does not really match the patch subject. Is this about changing
> > > the config or enabling dbus or both?
> > 
> > There is no config change, see commit message and bellow...
> 
> I see two changes: 1) enabling DBus support and 2) copying the config file 
> from source instead of having the same file in projectroot. What's the 
> connection between both?

I'll send v2 and separate patch for config file.

ladis 

___
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] dnsmasq: optionally enable DBus support

2020-03-11 Thread Alexander Dahl
Hei hei,

Am Dienstag, 10. März 2020, 23:16:55 CET schrieb Ladislav Michl:
> Hi!
> 
> On Tue, Mar 10, 2020 at 10:18:48PM +0100, Alexander Dahl wrote:
> > Hei hei,
> > 
> > On Tue, Mar 10, 2020 at 05:01:12PM +0100, Ladislav Michl wrote:
> > > As projectroot's dnsmasq.conf is copied from example config and
> > > needs to be modified to match BSP needs anyway, let's remove
> > > config from projectroot altogether.
> > 
> > This does not really match the patch subject. Is this about changing
> > the config or enabling dbus or both?
> 
> There is no config change, see commit message and bellow...

I see two changes: 1) enabling DBus support and 2) copying the config file 
from source instead of having the same file in projectroot. What's the 
connection between both?

> 
> > > Signed-off-by: Ladislav Michl 
> > > ---
> > > 
> > >  projectroot/etc/dnsmasq.conf | 679 ---
> > >  rules/dnsmasq.in |  10 +-
> > >  rules/dnsmasq.make   |  15 +
> > >  3 files changed, 20 insertions(+), 684 deletions(-)
> > >  delete mode 100644 projectroot/etc/dnsmasq.conf
> > > 
> > > diff --git a/projectroot/etc/dnsmasq.conf b/projectroot/etc/dnsmasq.conf
> > > deleted file mode 100644
> > > index 8548b43ed..0
> > > --- a/projectroot/etc/dnsmasq.conf
> > > +++ /dev/null
> > > @@ -1,679 +0,0 @@
> > > -# Configuration file for dnsmasq.
> > > -#
> > > -# Format is one option per line, legal options are the same
> > > -# as the long options legal on the command line. See
> > > -# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
> > > -
> > > -# Listen on this specific port instead of the standard DNS port
> > > -# (53). Setting this to zero completely disables DNS function,
> > > -# leaving only DHCP and/or TFTP.
> > > -#port=5353
> > > -
> > > -# The following two options make you a better netizen, since they
> > > -# tell dnsmasq to filter out queries which the public DNS cannot
> > > -# answer, and which load the servers (especially the root servers)
> > > -# unnecessarily. If you have a dial-on-demand link they also stop
> > > -# these requests from bringing up the link unnecessarily.
> > > -
> > > -# Never forward plain names (without a dot or domain part)
> > > -#domain-needed
> > > -# Never forward addresses in the non-routed address spaces.
> > > -#bogus-priv
> > > -
> > > -# Uncomment these to enable DNSSEC validation and caching:
> > > -# (Requires dnsmasq to be built with DNSSEC option.)
> > > -#conf-file=%%PREFIX%%/share/dnsmasq/trust-anchors.conf
> > > -#dnssec
> > > -
> > > -# Replies which are not DNSSEC signed may be legitimate, because the
> > > domain -# is unsigned, or may be forgeries. Setting this option tells
> > > dnsmasq to -# check that an unsigned reply is OK, by finding a secure
> > > proof that a DS -# record somewhere between the root and the domain
> > > does not exist. -# The cost of setting this is that even queries in
> > > unsigned domains will need -# one or more extra DNS queries to verify.
> > > -#dnssec-check-unsigned
> > > -
> > > -# Uncomment this to filter useless windows-originated DNS requests
> > > -# which can trigger dial-on-demand links needlessly.
> > > -# Note that (amongst other things) this blocks all SRV requests,
> > > -# so don't use it if you use eg Kerberos, SIP, XMMP or Google-talk.
> > > -# This option only affects forwarding, SRV records originating for
> > > -# dnsmasq (via srv-host= lines) are not suppressed by it.
> > > -#filterwin2k
> > > -
> > > -# Change this line if you want dns to get its upstream servers from
> > > -# somewhere other that /etc/resolv.conf
> > > -#resolv-file=
> > > -
> > > -# By  default,  dnsmasq  will  send queries to any of the upstream
> > > -# servers it knows about and tries to favour servers to are  known
> > > -# to  be  up.  Uncommenting this forces dnsmasq to try each query
> > > -# with  each  server  strictly  in  the  order  they   appear   in
> > > -# /etc/resolv.conf
> > > -#strict-order
> > > -
> > > -# If you don't want dnsmasq to read /etc/resolv.conf or any other
> > > -# file, getting its servers from this file instead (see below), then
> > > -# uncomment this.
> > > -#no-resolv
> > > -
> > > -# If you don't want dnsmasq to poll /etc/resolv.conf or other resolv
> > > -# files for changes and re-read them then uncomment this.
> > > -#no-poll
> > > -
> > > -# Add other name servers here, with domain specs if they are for
> > > -# non-public domains.
> > > -#server=/localnet/192.168.0.1
> > > -
> > > -# Example of routing PTR queries to nameservers: this will send all
> > > -# address->name queries for 192.168.3/24 to nameserver 10.1.2.3
> > > -#server=/3.168.192.in-addr.arpa/10.1.2.3
> > > -
> > > -# Add local-only domains here, queries in these domains are answered
> > > -# from /etc/hosts or DHCP only.
> > > -#local=/localnet/
> > > -
> > > -# Add domains which you want to force to an IP address here.
> > > -# The example below send any host in double-click.net to a

Re: [ptxdist] [PATCH] dnsmasq: optionally enable DBus support

2020-03-10 Thread Ladislav Michl
Hi!

On Tue, Mar 10, 2020 at 10:18:48PM +0100, Alexander Dahl wrote:
> Hei hei,
> 
> On Tue, Mar 10, 2020 at 05:01:12PM +0100, Ladislav Michl wrote:
> > As projectroot's dnsmasq.conf is copied from example config and
> > needs to be modified to match BSP needs anyway, let's remove
> > config from projectroot altogether.
> 
> This does not really match the patch subject. Is this about changing
> the config or enabling dbus or both?

There is no config change, see commit message and bellow...

> > Signed-off-by: Ladislav Michl 
> > ---
> >  projectroot/etc/dnsmasq.conf | 679 ---
> >  rules/dnsmasq.in |  10 +-
> >  rules/dnsmasq.make   |  15 +
> >  3 files changed, 20 insertions(+), 684 deletions(-)
> >  delete mode 100644 projectroot/etc/dnsmasq.conf
> > 
> > diff --git a/projectroot/etc/dnsmasq.conf b/projectroot/etc/dnsmasq.conf
> > deleted file mode 100644
> > index 8548b43ed..0
> > --- a/projectroot/etc/dnsmasq.conf
> > +++ /dev/null
> > @@ -1,679 +0,0 @@
> > -# Configuration file for dnsmasq.
> > -#
> > -# Format is one option per line, legal options are the same
> > -# as the long options legal on the command line. See
> > -# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
> > -
> > -# Listen on this specific port instead of the standard DNS port
> > -# (53). Setting this to zero completely disables DNS function,
> > -# leaving only DHCP and/or TFTP.
> > -#port=5353
> > -
> > -# The following two options make you a better netizen, since they
> > -# tell dnsmasq to filter out queries which the public DNS cannot
> > -# answer, and which load the servers (especially the root servers)
> > -# unnecessarily. If you have a dial-on-demand link they also stop
> > -# these requests from bringing up the link unnecessarily.
> > -
> > -# Never forward plain names (without a dot or domain part)
> > -#domain-needed
> > -# Never forward addresses in the non-routed address spaces.
> > -#bogus-priv
> > -
> > -# Uncomment these to enable DNSSEC validation and caching:
> > -# (Requires dnsmasq to be built with DNSSEC option.)
> > -#conf-file=%%PREFIX%%/share/dnsmasq/trust-anchors.conf
> > -#dnssec
> > -
> > -# Replies which are not DNSSEC signed may be legitimate, because the domain
> > -# is unsigned, or may be forgeries. Setting this option tells dnsmasq to
> > -# check that an unsigned reply is OK, by finding a secure proof that a DS
> > -# record somewhere between the root and the domain does not exist.
> > -# The cost of setting this is that even queries in unsigned domains will 
> > need
> > -# one or more extra DNS queries to verify.
> > -#dnssec-check-unsigned
> > -
> > -# Uncomment this to filter useless windows-originated DNS requests
> > -# which can trigger dial-on-demand links needlessly.
> > -# Note that (amongst other things) this blocks all SRV requests,
> > -# so don't use it if you use eg Kerberos, SIP, XMMP or Google-talk.
> > -# This option only affects forwarding, SRV records originating for
> > -# dnsmasq (via srv-host= lines) are not suppressed by it.
> > -#filterwin2k
> > -
> > -# Change this line if you want dns to get its upstream servers from
> > -# somewhere other that /etc/resolv.conf
> > -#resolv-file=
> > -
> > -# By  default,  dnsmasq  will  send queries to any of the upstream
> > -# servers it knows about and tries to favour servers to are  known
> > -# to  be  up.  Uncommenting this forces dnsmasq to try each query
> > -# with  each  server  strictly  in  the  order  they   appear   in
> > -# /etc/resolv.conf
> > -#strict-order
> > -
> > -# If you don't want dnsmasq to read /etc/resolv.conf or any other
> > -# file, getting its servers from this file instead (see below), then
> > -# uncomment this.
> > -#no-resolv
> > -
> > -# If you don't want dnsmasq to poll /etc/resolv.conf or other resolv
> > -# files for changes and re-read them then uncomment this.
> > -#no-poll
> > -
> > -# Add other name servers here, with domain specs if they are for
> > -# non-public domains.
> > -#server=/localnet/192.168.0.1
> > -
> > -# Example of routing PTR queries to nameservers: this will send all
> > -# address->name queries for 192.168.3/24 to nameserver 10.1.2.3
> > -#server=/3.168.192.in-addr.arpa/10.1.2.3
> > -
> > -# Add local-only domains here, queries in these domains are answered
> > -# from /etc/hosts or DHCP only.
> > -#local=/localnet/
> > -
> > -# Add domains which you want to force to an IP address here.
> > -# The example below send any host in double-click.net to a local
> > -# web-server.
> > -#address=/double-click.net/127.0.0.1
> > -
> > -# --address (and --server) work with IPv6 addresses too.
> > -#address=/www.thekelleys.org.uk/fe80::20d:60ff:fe36:f83
> > -
> > -# Add the IPs of all queries to yahoo.com, google.com, and their
> > -# subdomains to the vpn and search ipsets:
> > -#ipset=/yahoo.com/google.com/vpn,search
> > -
> > -# You can control how dnsmasq talks to a server: this forces
> > -# queries to 10.1.2.3

Re: [ptxdist] [PATCH] dnsmasq: optionally enable DBus support

2020-03-10 Thread Alexander Dahl
Hei hei,

On Tue, Mar 10, 2020 at 05:01:12PM +0100, Ladislav Michl wrote:
> As projectroot's dnsmasq.conf is copied from example config and
> needs to be modified to match BSP needs anyway, let's remove
> config from projectroot altogether.

This does not really match the patch subject. Is this about changing
the config or enabling dbus or both?

> 
> Signed-off-by: Ladislav Michl 
> ---
>  projectroot/etc/dnsmasq.conf | 679 ---
>  rules/dnsmasq.in |  10 +-
>  rules/dnsmasq.make   |  15 +
>  3 files changed, 20 insertions(+), 684 deletions(-)
>  delete mode 100644 projectroot/etc/dnsmasq.conf
> 
> diff --git a/projectroot/etc/dnsmasq.conf b/projectroot/etc/dnsmasq.conf
> deleted file mode 100644
> index 8548b43ed..0
> --- a/projectroot/etc/dnsmasq.conf
> +++ /dev/null
> @@ -1,679 +0,0 @@
> -# Configuration file for dnsmasq.
> -#
> -# Format is one option per line, legal options are the same
> -# as the long options legal on the command line. See
> -# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
> -
> -# Listen on this specific port instead of the standard DNS port
> -# (53). Setting this to zero completely disables DNS function,
> -# leaving only DHCP and/or TFTP.
> -#port=5353
> -
> -# The following two options make you a better netizen, since they
> -# tell dnsmasq to filter out queries which the public DNS cannot
> -# answer, and which load the servers (especially the root servers)
> -# unnecessarily. If you have a dial-on-demand link they also stop
> -# these requests from bringing up the link unnecessarily.
> -
> -# Never forward plain names (without a dot or domain part)
> -#domain-needed
> -# Never forward addresses in the non-routed address spaces.
> -#bogus-priv
> -
> -# Uncomment these to enable DNSSEC validation and caching:
> -# (Requires dnsmasq to be built with DNSSEC option.)
> -#conf-file=%%PREFIX%%/share/dnsmasq/trust-anchors.conf
> -#dnssec
> -
> -# Replies which are not DNSSEC signed may be legitimate, because the domain
> -# is unsigned, or may be forgeries. Setting this option tells dnsmasq to
> -# check that an unsigned reply is OK, by finding a secure proof that a DS
> -# record somewhere between the root and the domain does not exist.
> -# The cost of setting this is that even queries in unsigned domains will need
> -# one or more extra DNS queries to verify.
> -#dnssec-check-unsigned
> -
> -# Uncomment this to filter useless windows-originated DNS requests
> -# which can trigger dial-on-demand links needlessly.
> -# Note that (amongst other things) this blocks all SRV requests,
> -# so don't use it if you use eg Kerberos, SIP, XMMP or Google-talk.
> -# This option only affects forwarding, SRV records originating for
> -# dnsmasq (via srv-host= lines) are not suppressed by it.
> -#filterwin2k
> -
> -# Change this line if you want dns to get its upstream servers from
> -# somewhere other that /etc/resolv.conf
> -#resolv-file=
> -
> -# By  default,  dnsmasq  will  send queries to any of the upstream
> -# servers it knows about and tries to favour servers to are  known
> -# to  be  up.  Uncommenting this forces dnsmasq to try each query
> -# with  each  server  strictly  in  the  order  they   appear   in
> -# /etc/resolv.conf
> -#strict-order
> -
> -# If you don't want dnsmasq to read /etc/resolv.conf or any other
> -# file, getting its servers from this file instead (see below), then
> -# uncomment this.
> -#no-resolv
> -
> -# If you don't want dnsmasq to poll /etc/resolv.conf or other resolv
> -# files for changes and re-read them then uncomment this.
> -#no-poll
> -
> -# Add other name servers here, with domain specs if they are for
> -# non-public domains.
> -#server=/localnet/192.168.0.1
> -
> -# Example of routing PTR queries to nameservers: this will send all
> -# address->name queries for 192.168.3/24 to nameserver 10.1.2.3
> -#server=/3.168.192.in-addr.arpa/10.1.2.3
> -
> -# Add local-only domains here, queries in these domains are answered
> -# from /etc/hosts or DHCP only.
> -#local=/localnet/
> -
> -# Add domains which you want to force to an IP address here.
> -# The example below send any host in double-click.net to a local
> -# web-server.
> -#address=/double-click.net/127.0.0.1
> -
> -# --address (and --server) work with IPv6 addresses too.
> -#address=/www.thekelleys.org.uk/fe80::20d:60ff:fe36:f83
> -
> -# Add the IPs of all queries to yahoo.com, google.com, and their
> -# subdomains to the vpn and search ipsets:
> -#ipset=/yahoo.com/google.com/vpn,search
> -
> -# You can control how dnsmasq talks to a server: this forces
> -# queries to 10.1.2.3 to be routed via eth1
> -# server=10.1.2.3@eth1
> -
> -# and this sets the source (ie local) address used to talk to
> -# 10.1.2.3 to 192.168.1.1 port 55 (there must be an interface with that
> -# IP on the machine, obviously).
> -# server=10.1.2.3@192.168.1.1#55
> -
> -# If you want dnsmasq to change uid and gid to something other
> -# than the default