diff mbox series

build: install iwd-decrypt-profile

Message ID 20231003192456.4038590-1-prestwoj@gmail.com (mailing list archive)
State New
Headers show
Series build: install iwd-decrypt-profile | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-alpine-ci-fetch success Fetch PR
prestwoj/iwd-ci-gitlint success GitLint
prestwoj/iwd-ci-fetch success Fetch PR
prestwoj/iwd-alpine-ci-makedistcheck fail Make Distcheck Make FAIL: make[2]: *** No rule to make target 'ell/sysctl.h', needed by 'distdir-am'. Stop. make[1]: *** [Makefile:3220: distdir] Error 2 make: *** [Makefile:3300: dist] Error 2
prestwoj/iwd-alpine-ci-incremental_build success Incremental build not run PASS
prestwoj/iwd-alpine-ci-build success Build - Configure
prestwoj/iwd-alpine-ci-makecheckvalgrind fail Make FAIL: make[1]: *** No rule to make target 'ell/sysctl.c', needed by 'ell/sysctl.lo'. Stop. make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1712: all] Error 2
prestwoj/iwd-alpine-ci-makecheck pending makecheck SKIP
prestwoj/iwd-ci-incremental_build success Incremental build not run PASS
prestwoj/iwd-ci-build success Build - Configure
prestwoj/iwd-ci-makecheckvalgrind fail Make FAIL: make[1]: *** No rule to make target 'ell/sysctl.c', needed by 'ell/sysctl.lo'. Stop. make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1711: all] Error 2
prestwoj/iwd-ci-makecheck pending makecheck SKIP
prestwoj/iwd-ci-clang fail Clang IWD - make FAIL: make[1]: *** No rule to make target 'ell/sysctl.c', needed by 'ell/sysctl.lo'. Stop. make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1711: all] Error 2
prestwoj/iwd-ci-makedistcheck fail Make Distcheck Make FAIL: make[2]: *** No rule to make target 'ell/sysctl.h', needed by 'distdir-am'. Stop. make[1]: *** [Makefile:3219: distdir] Error 2 make: *** [Makefile:3299: dist] Error 2
prestwoj/iwd-ci-testrunner pending testrunner SKIP

Commit Message

James Prestwood Oct. 3, 2023, 7:24 p.m. UTC
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(-)

Comments

Marcel Holtmann Oct. 4, 2023, 1:07 p.m. UTC | #1
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
James Prestwood Oct. 20, 2023, 12:52 p.m. UTC | #2
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 \
Denis Kenzior Oct. 20, 2023, 3:19 p.m. UTC | #3
Hi James,

On 10/20/23 07:52, James Prestwood wrote:
> Resending in case this got missed.
> 

Didn't Marcel reply to this:
https://lore.kernel.org/iwd/F6D1FD48-E7AC-404B-936A-E4D5E3519FA2@holtmann.org/

Regards,
-Denis
James Prestwood Oct. 20, 2023, 3:25 p.m. UTC | #4
On 10/20/23 8:19 AM, Denis Kenzior wrote:
> Hi James,
> 
> On 10/20/23 07:52, James Prestwood wrote:
>> Resending in case this got missed.
>>
> 
> Didn't Marcel reply to this:
> https://lore.kernel.org/iwd/F6D1FD48-E7AC-404B-936A-E4D5E3519FA2@holtmann.org/

Sure enough... it must have got filtered to spam. Thanks.

> 
> Regards,
> -Denis
James Prestwood Oct. 20, 2023, 3:49 p.m. UTC | #5
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
>
diff mbox series

Patch

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 \