DevHeads.net

libselinux golang bindings will be dropped from Rawhide

Hi,

libselinux golang bindings [1] haven't been touched since 2014, have
never been upstreamed, nothing requires/uses them in Fedora and since
there's another SELinux golang bindings maintained by opencontainers [2]
I'm going to drop them from Fedora Rawhide.

[1] <a href="https://github.com/fedora-selinux/selinux/tree/master/libselinux/golang" title="https://github.com/fedora-selinux/selinux/tree/master/libselinux/golang">https://github.com/fedora-selinux/selinux/tree/master/libselinux/golang</a>
[2] <a href="https://github.com/opencontainers/selinux" title="https://github.com/opencontainers/selinux">https://github.com/opencontainers/selinux</a>

Thanks,

Petr

Comments

Re: libselinux golang bindings will be dropped from R

By King InuYasha at 10/10/2017 - 08:10

On Tue, Oct 10, 2017 at 5:49 AM, Petr Lautrbach < ... at redhat dot com> wrote:
Why not merge that implementation into libselinux itself and make that
available?

For what it's worth, Zygmunt (CC'd to this email) has been working on
adding SELinux support to snapd, which necessitates using Go bindings
for libselinux. It'd be great if there was an officially supported set
of Go bindings that can be leveraged and enhanced as needed.

Re: libselinux golang bindings will be dropped from R

By Zygmunt Krynicki at 10/10/2017 - 10:06

As it's too early to tell which way we'll go with SELinux and golang I
think it's okay to drop this. Once we start to make some progress into
making any policy work in snapd we'll either revive this or use a
maintained package.

Best regards
ZK

Re: libselinux golang bindings will be dropped from R

By Petr Lautrbach at 10/11/2017 - 05:40

On Tue, Oct 10, 2017 at 05:06:02PM +0200, Zygmunt Krynicki wrote:

According to selinux.go [1] the initial motivation for this
implementation was to add selinux support to docker but this is
maintained by opencontainers now.

Because there are python and ruby bindings in libselinux already, it
would make sense to have also golang bindings if there's any demand.
However, the current implementation needs to be updated and reviewed
before it can be proposed upstream. But I'm not familiar with GO.

So for now, I moved golang bindings to golang-bindings branch [2]
and I will drop it from master branch. It will not be part of the next
libselinux-devel build in Rawhide.

[1] <a href="https://github.com/fedora-selinux/selinux/blob/golang-bindings/libselinux/golang/selinux.go" title="https://github.com/fedora-selinux/selinux/blob/golang-bindings/libselinux/golang/selinux.go">https://github.com/fedora-selinux/selinux/blob/golang-bindings/libselinu...</a>
[2] <a href="https://github.com/fedora-selinux/selinux/tree/golang-bindings" title="https://github.com/fedora-selinux/selinux/tree/golang-bindings">https://github.com/fedora-selinux/selinux/tree/golang-bindings</a>

Petr