* [Buildroot] [PATCH 1/2] package/openssh: enable selinux ssh module for refpolicy
@ 2021-12-03 18:01 Adam Duskett
2021-12-03 18:01 ` [Buildroot] [PATCH 2/2] package/coreutils: enable selinux support Adam Duskett
2021-12-27 20:20 ` [Buildroot] [PATCH 1/2] package/openssh: enable selinux ssh module for refpolicy Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Adam Duskett @ 2021-12-03 18:01 UTC (permalink / raw)
To: buildroot; +Cc: Adam Duskett
This is needed for ssh to work with SELinux.
Signed-off-by: Adam Duskett <aduskett@gmail.com>
---
package/openssh/openssh.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index 75c4a0128b..4145bfd8dc 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -27,6 +27,8 @@ OPENSSH_CONF_OPTS = \
--disable-wtmpx \
--disable-strip
+OPENSSH_SELINUX_MODULES = ssh
+
define OPENSSH_PERMISSIONS
/var/empty d 755 root root - - - - -
endef
--
2.33.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] package/coreutils: enable selinux support
2021-12-03 18:01 [Buildroot] [PATCH 1/2] package/openssh: enable selinux ssh module for refpolicy Adam Duskett
@ 2021-12-03 18:01 ` Adam Duskett
2021-12-27 20:21 ` Thomas Petazzoni
2021-12-27 20:20 ` [Buildroot] [PATCH 1/2] package/openssh: enable selinux ssh module for refpolicy Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Adam Duskett @ 2021-12-03 18:01 UTC (permalink / raw)
To: buildroot; +Cc: Adam Duskett
Enable SELinux support if libselinux is selected. This allows utilities such as
ls to read and display extended attributes with ls -lZ
Signed-off-by: Adam Duskett <aduskett@gmail.com>
---
package/coreutils/coreutils.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/coreutils/coreutils.mk b/package/coreutils/coreutils.mk
index 6822c58a32..78bafb635b 100644
--- a/package/coreutils/coreutils.mk
+++ b/package/coreutils/coreutils.mk
@@ -98,6 +98,13 @@ else
COREUTILS_CONF_OPTS += --disable-libcap
endif
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+COREUTILS_DEPENDENCIES += libselinux
+COREUTILS_CONF_OPTS += --with-selinux
+else
+COREUTILS_CONF_OPTS += --without-selinux
+endif
+
ifeq ($(BR2_PACKAGE_OPENSSL),y)
COREUTILS_CONF_OPTS += --with-openssl=yes
COREUTILS_DEPENDENCIES += openssl
--
2.33.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/openssh: enable selinux ssh module for refpolicy
2021-12-03 18:01 [Buildroot] [PATCH 1/2] package/openssh: enable selinux ssh module for refpolicy Adam Duskett
2021-12-03 18:01 ` [Buildroot] [PATCH 2/2] package/coreutils: enable selinux support Adam Duskett
@ 2021-12-27 20:20 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2021-12-27 20:20 UTC (permalink / raw)
To: Adam Duskett; +Cc: buildroot
On Fri, 3 Dec 2021 10:01:04 -0800
Adam Duskett <aduskett@gmail.com> wrote:
> This is needed for ssh to work with SELinux.
>
> Signed-off-by: Adam Duskett <aduskett@gmail.com>
> ---
> package/openssh/openssh.mk | 2 ++
> 1 file changed, 2 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 2/2] package/coreutils: enable selinux support
2021-12-03 18:01 ` [Buildroot] [PATCH 2/2] package/coreutils: enable selinux support Adam Duskett
@ 2021-12-27 20:21 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2021-12-27 20:21 UTC (permalink / raw)
To: Adam Duskett; +Cc: buildroot
On Fri, 3 Dec 2021 10:01:05 -0800
Adam Duskett <aduskett@gmail.com> wrote:
> Enable SELinux support if libselinux is selected. This allows utilities such as
> ls to read and display extended attributes with ls -lZ
>
> Signed-off-by: Adam Duskett <aduskett@gmail.com>
> ---
> package/coreutils/coreutils.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-27 20:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-03 18:01 [Buildroot] [PATCH 1/2] package/openssh: enable selinux ssh module for refpolicy Adam Duskett
2021-12-03 18:01 ` [Buildroot] [PATCH 2/2] package/coreutils: enable selinux support Adam Duskett
2021-12-27 20:21 ` Thomas Petazzoni
2021-12-27 20:20 ` [Buildroot] [PATCH 1/2] package/openssh: enable selinux ssh module for refpolicy Thomas Petazzoni
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.