* [PATCH] build: install iwd-decrypt-profile
@ 2023-10-03 19:24 James Prestwood
2023-10-04 13:07 ` Marcel Holtmann
2023-10-20 12:52 ` James Prestwood
0 siblings, 2 replies; 6+ messages in thread
From: James Prestwood @ 2023-10-03 19:24 UTC (permalink / raw)
To: iwd; +Cc: James Prestwood
If profile encryption is enabled its not out of the question that
somebody might need to decrypt it. This isn't a problem building
from source but IWD as a package likely won't include the decrypt
tool unless its specifically copied out. Add iwd-decrypt-profile
to the list of installed programs like iwctl, iwmon, etc
This also fixes a minor bug in Makefile.am which was building both
iwd-profile-decrypt and probe-req if DAEMON was true. This should
be TOOLS.
---
Makefile.am | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 2e962153..ebabcf1c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -378,8 +378,9 @@ man_MANS += wired/ead.8
endif
endif
-if DAEMON
-noinst_PROGRAMS += tools/probe-req tools/iwd-decrypt-profile
+if TOOLS
+noinst_PROGRAMS += tools/probe-req
+bin_PROGRAMS += tools/iwd-decrypt-profile
tools_probe_req_SOURCES = tools/probe-req.c src/mpdu.h src/mpdu.c \
src/ie.h src/ie.c \
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] build: install iwd-decrypt-profile
2023-10-03 19:24 [PATCH] build: install iwd-decrypt-profile James Prestwood
@ 2023-10-04 13:07 ` Marcel Holtmann
2023-10-20 15:49 ` James Prestwood
2023-10-20 12:52 ` James Prestwood
1 sibling, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2023-10-04 13:07 UTC (permalink / raw)
To: James Prestwood; +Cc: iwd
Hi James,
> If profile encryption is enabled its not out of the question that
> somebody might need to decrypt it. This isn't a problem building
> from source but IWD as a package likely won't include the decrypt
> tool unless its specifically copied out. Add iwd-decrypt-profile
> to the list of installed programs like iwctl, iwmon, etc
>
> This also fixes a minor bug in Makefile.am which was building both
> iwd-profile-decrypt and probe-req if DAEMON was true. This should
> be TOOLS.
> ---
> Makefile.am | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index 2e962153..ebabcf1c 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -378,8 +378,9 @@ man_MANS += wired/ead.8
> endif
> endif
>
> -if DAEMON
> -noinst_PROGRAMS += tools/probe-req tools/iwd-decrypt-profile
> +if TOOLS
> +noinst_PROGRAMS += tools/probe-req
> +bin_PROGRAMS += tools/iwd-decrypt-profile
>
> tools_probe_req_SOURCES = tools/probe-req.c src/mpdu.h src/mpdu.c \
> src/ie.h src/ie.c \
I really prefer not installing that tool. If someone shoots themselves in the foot and need to recover, they can install it from the source. In addition, I do not want distributions cluster packages with random tools. That is going to get messy. If we ever think such a recover is needed, then it be better suited to be included in iwctl.
I moved both tools in DAEMON since once you disable iwd binary, none of them should be build either.
Regards
Marcel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] build: install iwd-decrypt-profile
2023-10-04 13:07 ` Marcel Holtmann
@ 2023-10-20 15:49 ` James Prestwood
0 siblings, 0 replies; 6+ messages in thread
From: James Prestwood @ 2023-10-20 15:49 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: iwd
Hi Marcel,
On 10/4/23 6:07 AM, Marcel Holtmann wrote:
> Hi James,
>
>> If profile encryption is enabled its not out of the question that
>> somebody might need to decrypt it. This isn't a problem building
>> from source but IWD as a package likely won't include the decrypt
>> tool unless its specifically copied out. Add iwd-decrypt-profile
>> to the list of installed programs like iwctl, iwmon, etc
>>
>> This also fixes a minor bug in Makefile.am which was building both
>> iwd-profile-decrypt and probe-req if DAEMON was true. This should
>> be TOOLS.
>> ---
>> Makefile.am | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/Makefile.am b/Makefile.am
>> index 2e962153..ebabcf1c 100644
>> --- a/Makefile.am
>> +++ b/Makefile.am
>> @@ -378,8 +378,9 @@ man_MANS += wired/ead.8
>> endif
>> endif
>>
>> -if DAEMON
>> -noinst_PROGRAMS += tools/probe-req tools/iwd-decrypt-profile
>> +if TOOLS
>> +noinst_PROGRAMS += tools/probe-req
>> +bin_PROGRAMS += tools/iwd-decrypt-profile
>>
>> tools_probe_req_SOURCES = tools/probe-req.c src/mpdu.h src/mpdu.c \
>> src/ie.h src/ie.c \
>
> I really prefer not installing that tool. If someone shoots themselves in the foot and need to recover, they can install it from the source. In addition, I do not want distributions cluster packages with random tools. That is going to get messy. If we ever think such a recover is needed, then it be better suited to be included in iwctl.
>
> I moved both tools in DAEMON since once you disable iwd binary, none of them should be build either.
This is fine, but it means --enable-tools has no function, just FYI.
If adding to iwctl is acceptable then I can go that route. This is a
tool we need as far as debugging and potential recovery goes so I'd like
it to be installed. I could also just keep this patch applied but I'd
prefer upstreaming what I can.
I just wonder about the semantics using iwctl in this way. It doesn't
seem like it would fit very well.
Thanks,
James
>
> Regards
>
> Marcel
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] build: install iwd-decrypt-profile
2023-10-03 19:24 [PATCH] build: install iwd-decrypt-profile James Prestwood
2023-10-04 13:07 ` Marcel Holtmann
@ 2023-10-20 12:52 ` James Prestwood
2023-10-20 15:19 ` Denis Kenzior
1 sibling, 1 reply; 6+ messages in thread
From: James Prestwood @ 2023-10-20 12:52 UTC (permalink / raw)
To: iwd
Resending in case this got missed.
On 10/3/23 12:24 PM, James Prestwood wrote:
> If profile encryption is enabled its not out of the question that
> somebody might need to decrypt it. This isn't a problem building
> from source but IWD as a package likely won't include the decrypt
> tool unless its specifically copied out. Add iwd-decrypt-profile
> to the list of installed programs like iwctl, iwmon, etc
>
> This also fixes a minor bug in Makefile.am which was building both
> iwd-profile-decrypt and probe-req if DAEMON was true. This should
> be TOOLS.
> ---
> Makefile.am | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index 2e962153..ebabcf1c 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -378,8 +378,9 @@ man_MANS += wired/ead.8
> endif
> endif
>
> -if DAEMON
> -noinst_PROGRAMS += tools/probe-req tools/iwd-decrypt-profile
> +if TOOLS
> +noinst_PROGRAMS += tools/probe-req
> +bin_PROGRAMS += tools/iwd-decrypt-profile
>
> tools_probe_req_SOURCES = tools/probe-req.c src/mpdu.h src/mpdu.c \
> src/ie.h src/ie.c \
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-10-20 15:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-03 19:24 [PATCH] build: install iwd-decrypt-profile James Prestwood
2023-10-04 13:07 ` Marcel Holtmann
2023-10-20 15:49 ` James Prestwood
2023-10-20 12:52 ` James Prestwood
2023-10-20 15:19 ` Denis Kenzior
2023-10-20 15:25 ` James Prestwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox