* [Buildroot] [PATCH] busybox: disable PAM in the config if linux-pam is not selected
@ 2018-03-26 12:00 Arnout Vandecappelle
2018-03-26 12:49 ` Matthew Weber
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2018-03-26 12:00 UTC (permalink / raw)
To: buildroot
Currently there is only logic to enable PAM when linux-pam is selected.
However, busybox will fail to build with PAM enabled if the linux-pam
package has not been built before. So we should forcibly disable PAM in
busybox in that case.
Normally this is not an issue since our default busybox config doesn't
have PAM enabled. However, if you enable linux-pam, then save the
busybox config to a custom configuration file, then disable linux-pam
again, and then do a "make clean; make", the build will fail. A more
practical situation where this can occur is when the same custom
busybox config is used in a Buildroot config with and without
linux-pam.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
Resend, patchwork missed the first send.
---
package/busybox/busybox.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index bc0c661754..7009f6a675 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -248,6 +248,10 @@ define BUSYBOX_LINUX_PAM
$(call KCONFIG_ENABLE_OPT,CONFIG_PAM,$(BUSYBOX_BUILD_CONFIG))
endef
BUSYBOX_DEPENDENCIES += linux-pam
+else
+define BUSYBOX_LINUX_PAM
+ $(call KCONFIG_DISABLE_OPT,CONFIG_PAM,$(BUSYBOX_BUILD_CONFIG))
+endef
endif
# Telnet support
--
2.16.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] busybox: disable PAM in the config if linux-pam is not selected
2018-03-26 12:00 [Buildroot] [PATCH] busybox: disable PAM in the config if linux-pam is not selected Arnout Vandecappelle
@ 2018-03-26 12:49 ` Matthew Weber
2018-03-26 12:51 ` Peter Korsgaard
2018-04-07 15:38 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Matthew Weber @ 2018-03-26 12:49 UTC (permalink / raw)
To: buildroot
Arnout,
On Mon, Mar 26, 2018 at 7:00 AM, Arnout Vandecappelle (Essensium/Mind)
<arnout@mind.be> wrote:
> Currently there is only logic to enable PAM when linux-pam is selected.
> However, busybox will fail to build with PAM enabled if the linux-pam
> package has not been built before. So we should forcibly disable PAM in
> busybox in that case.
>
> Normally this is not an issue since our default busybox config doesn't
> have PAM enabled. However, if you enable linux-pam, then save the
> busybox config to a custom configuration file, then disable linux-pam
> again, and then do a "make clean; make", the build will fail. A more
> practical situation where this can occur is when the same custom
> busybox config is used in a Buildroot config with and without
> linux-pam.
I've observed that fun behaviour when we've gone between basic builds
and configurations with STIG/SELinux requirements.
Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] busybox: disable PAM in the config if linux-pam is not selected
2018-03-26 12:00 [Buildroot] [PATCH] busybox: disable PAM in the config if linux-pam is not selected Arnout Vandecappelle
2018-03-26 12:49 ` Matthew Weber
@ 2018-03-26 12:51 ` Peter Korsgaard
2018-04-07 15:38 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-03-26 12:51 UTC (permalink / raw)
To: buildroot
>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> writes:
> Currently there is only logic to enable PAM when linux-pam is selected.
> However, busybox will fail to build with PAM enabled if the linux-pam
> package has not been built before. So we should forcibly disable PAM in
> busybox in that case.
> Normally this is not an issue since our default busybox config doesn't
> have PAM enabled. However, if you enable linux-pam, then save the
> busybox config to a custom configuration file, then disable linux-pam
> again, and then do a "make clean; make", the build will fail. A more
> practical situation where this can occur is when the same custom
> busybox config is used in a Buildroot config with and without
> linux-pam.
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> Resend, patchwork missed the first send.
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] busybox: disable PAM in the config if linux-pam is not selected
2018-03-26 12:00 [Buildroot] [PATCH] busybox: disable PAM in the config if linux-pam is not selected Arnout Vandecappelle
2018-03-26 12:49 ` Matthew Weber
2018-03-26 12:51 ` Peter Korsgaard
@ 2018-04-07 15:38 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-04-07 15:38 UTC (permalink / raw)
To: buildroot
>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> writes:
> Currently there is only logic to enable PAM when linux-pam is selected.
> However, busybox will fail to build with PAM enabled if the linux-pam
> package has not been built before. So we should forcibly disable PAM in
> busybox in that case.
> Normally this is not an issue since our default busybox config doesn't
> have PAM enabled. However, if you enable linux-pam, then save the
> busybox config to a custom configuration file, then disable linux-pam
> again, and then do a "make clean; make", the build will fail. A more
> practical situation where this can occur is when the same custom
> busybox config is used in a Buildroot config with and without
> linux-pam.
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> Resend, patchwork missed the first send.
Committed to 2018.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-04-07 15:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-26 12:00 [Buildroot] [PATCH] busybox: disable PAM in the config if linux-pam is not selected Arnout Vandecappelle
2018-03-26 12:49 ` Matthew Weber
2018-03-26 12:51 ` Peter Korsgaard
2018-04-07 15:38 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox