Skip to contentSkip to conversation

Fedora COPR repositories with builds of latest code

DISCUSSION Petr Lautrbach 4 participants 8 messages May 24, 2017 – May 25, 2017 SELinux security module

lore
Share & tools
lore
#0 lore raw

For the motivation see
https://marc.info/?l=selinux&m=149435307518336&w=2

I've restarted building of Fedora packages based on latest SELinux userspace code in Fedora COPR. Packages are built using the https://gitlab.com/bachradsusi/selinux-rpm project.

There is a new selinux.spec [1] file which allows to build all Fedora packages from one src.rpm and Makefile which makes the process simple.

Currently there are two COPR projects:

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-fedora/

This is built with Python3 support based on Fedora patches which are rebased against latest upstream code.

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-SELinuxProject/

This is based on pure upstream sources and without Python 3.

Currently I run copr builds manually but the plan is to make it fully automated.

Let me know if you find it useful or if you have ideas, comments and so on.

[1] https://gitlab.com/bachradsusi/selinux-rpm/blob/master/selinux.spec

Thanks,

Petr

#1 lore raw
Quoted 2 lines · Petr Lautrbach

For the motivation see
https://marc.info/?l=selinux&m=149435307518336&w=2

Thanks! I enabled the one with Fedora patches because i need python3 support for setools4

This should allow me to enable extended_socket_class functionality and test it.

I hope this repository will be maintained consistently so that it can be useful

Quoted 35 lines

I've restarted building of Fedora packages based on latest SELinux userspace code in Fedora COPR. Packages are built using the https://gitlab.com/bachradsusi/selinux-rpm project.

There is a new selinux.spec [1] file which allows to build all Fedora packages from one src.rpm and Makefile which makes the process simple.

Currently there are two COPR projects:

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-fedora/

This is built with Python3 support based on Fedora patches which are rebased against latest upstream code.

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-SELinuxProject/

This is based on pure upstream sources and without Python 3.

Currently I run copr builds manually but the plan is to make it fully automated.

Let me know if you find it useful or if you have ideas, comments and so on.

[1] https://gitlab.com/bachradsusi/selinux-rpm/blob/master/selinux.spec

Thanks,

Petr

Signature · 3 lines
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
Dominick Grift
#2 lore raw
Quoted 9 lines · Dominick Grift
Quoted 2 lines · Petr Lautrbach

For the motivation see
https://marc.info/?l=selinux&m=149435307518336&w=2

Thanks! I enabled the one with Fedora patches because i need python3 support for setools4

This should allow me to enable extended_socket_class functionality and test it.

I hope this repository will be maintained consistently so that it can be useful

I just enabled the extended_socket_class capability and in seinfo --polcap -x it currently shows up as "redhat1":

# seinfo --polcap -x

Polcap: 3
policycap network_peer_controls;
policycap open_perms;
policycap redhat1;

I know the redhat1 polcap is re-used but not sure if this expected to return like that...

Quoted 41 lines
Quoted 36 lines

I've restarted building of Fedora packages based on latest SELinux userspace code in Fedora COPR. Packages are built using the https://gitlab.com/bachradsusi/selinux-rpm project.

There is a new selinux.spec [1] file which allows to build all Fedora packages from one src.rpm and Makefile which makes the process simple.

Currently there are two COPR projects:

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-fedora/

This is built with Python3 support based on Fedora patches which are rebased against latest upstream code.

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-SELinuxProject/

This is based on pure upstream sources and without Python 3.

Currently I run copr builds manually but the plan is to make it fully automated.

Let me know if you find it useful or if you have ideas, comments and so on.

[1] https://gitlab.com/bachradsusi/selinux-rpm/blob/master/selinux.spec

Thanks,

Petr

Signature · 3 lines
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
Dominick Grift
Signature · 3 lines
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
Dominick Grift
#3 lore raw
Quoted 19 lines · Dominick Grift
Quoted 4 lines · Dominick Grift
Quoted 2 lines · Petr Lautrbach

For the motivation see
https://marc.info/?l=selinux&m=149435307518336&w=2

Quoted 8 lines

Thanks! I enabled the one with Fedora patches because i need python3 support for setools4

This should allow me to enable extended_socket_class functionality and test it.

I hope this repository will be maintained consistently so that it can be useful

I just enabled the extended_socket_class capability and in seinfo -- polcap -x it currently shows up as "redhat1":

# seinfo --polcap -x
Quoted 7 lines

Polcap: 3
   policycap network_peer_controls;
   policycap open_perms;
   policycap redhat1;

I know the redhat1 polcap is re-used but not sure if this expected to return like that...

Maybe setools4 hasn't been rebuilt to use the updated libsepol, or has its own internal table of the policy capability string names?

Quoted 51 lines
Quoted 48 lines
Quoted 34 lines

I've restarted building of Fedora packages based on latest SELinux userspace code in Fedora COPR. Packages are built using the https://gitlab.com/bachradsusi/selinux-rpm project.

There is a new selinux.spec [1] file which allows to build all Fedora packages from one src.rpm and Makefile which makes the process simple.

Currently there are two COPR projects:

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-fedora
/

This is built with Python3 support based on Fedora patches which are rebased against latest upstream code.

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-SELinu
xProject/

This is based on pure upstream sources and without Python 3.

Currently I run copr builds manually but the plan is to make it fully automated.

Let me know if you find it useful or if you have ideas, comments and so on.

Quoted 7 lines

[1] https://gitlab.com/bachradsusi/selinux-rpm/blob/master/selinu
x.spec

Thanks,

Petr

--
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6
B02
Dominick Grift

#4 lore raw
Quoted 25 lines · Stephen Smalley
Quoted 24 lines · Dominick Grift
Quoted 4 lines · Dominick Grift
Quoted 2 lines · Petr Lautrbach

For the motivation see
https://marc.info/?l=selinux&m=149435307518336&w=2

Quoted 8 lines

Thanks! I enabled the one with Fedora patches because i need python3 support for setools4

This should allow me to enable extended_socket_class functionality and test it.

I hope this repository will be maintained consistently so that it can be useful

I just enabled the extended_socket_class capability and in seinfo -- polcap -x it currently shows up as "redhat1":

# seinfo --polcap -x

Polcap: 3
   policycap network_peer_controls;
   policycap open_perms;
   policycap redhat1;

Quoted 5 lines
Quoted 2 lines

I know the redhat1 polcap is re-used but not sure if this expected to return like that...

Maybe setools4 hasn't been rebuilt to use the updated libsepol, or has its own internal table of the policy capability string names?

thanks , yes thats the case (former)

Quoted 52 lines
Quoted 52 lines
Quoted 49 lines
Quoted 35 lines

I've restarted building of Fedora packages based on latest SELinux userspace code in Fedora COPR. Packages are built using the https://gitlab.com/bachradsusi/selinux-rpm project.

There is a new selinux.spec [1] file which allows to build all Fedora packages from one src.rpm and Makefile which makes the process simple.

Currently there are two COPR projects:

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-fedora
/

This is built with Python3 support based on Fedora patches which are rebased against latest upstream code.

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-SELinu
xProject/

This is based on pure upstream sources and without Python 3.

Currently I run copr builds manually but the plan is to make it fully automated.

Let me know if you find it useful or if you have ideas, comments and so on.

Quoted 7 lines

[1] https://gitlab.com/bachradsusi/selinux-rpm/blob/master/selinu
x.spec

Thanks,

Petr

--
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6
B02
Dominick Grift

Signature · 3 lines
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
Dominick Grift
#5 lore raw
Quoted 26 lines · Dominick Grift
Quoted 25 lines · Stephen Smalley
Quoted 24 lines · Dominick Grift
Quoted 4 lines · Dominick Grift
Quoted 2 lines · Petr Lautrbach

For the motivation see
https://marc.info/?l=selinux&m=149435307518336&w=2

Quoted 8 lines

Thanks! I enabled the one with Fedora patches because i need python3 support for setools4

This should allow me to enable extended_socket_class functionality and test it.

I hope this repository will be maintained consistently so that it can be useful

I just enabled the extended_socket_class capability and in seinfo -- polcap -x it currently shows up as "redhat1":

# seinfo --polcap -x

Polcap: 3

    policycap network_peer_controls;
    policycap open_perms;
    policycap redhat1;
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

I know the redhat1 polcap is re-used but not sure if this expected to return like that...

Maybe setools4 hasn't been rebuilt to use the updated libsepol, or has its own internal table of the policy capability string names?

thanks , yes thats the case (former)

I will update scripts to rebuild setools together with selinux sources and provide setools builds in copr repos

Quoted 54 lines
Quoted 53 lines
Quoted 53 lines
Quoted 50 lines
Quoted 43 lines

I've restarted building of Fedora packages based on latest SELinux userspace code in Fedora COPR. Packages are built using the https://gitlab.com/bachradsusi/selinux-rpm project.

There is a new selinux.spec [1] file which allows to build all Fedora packages from one src.rpm and Makefile which makes the process simple.

Currently there are two COPR projects:

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-fedora
/

This is built with Python3 support based on Fedora patches which are rebased against latest upstream code.

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-SELinu
xProject/

This is based on pure upstream sources and without Python 3.

Currently I run copr builds manually but the plan is to make it fully automated.

Let me know if you find it useful or if you have ideas, comments and so on.

[1] https://gitlab.com/bachradsusi/selinux-rpm/blob/master/selinu
x.spec

Thanks,

Petr

Signature · 5 lines
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B
6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6
B02
Dominick Grift
#6 lore raw
Quoted 30 lines · Petr Lautrbach
Quoted 29 lines · Dominick Grift
Quoted 28 lines · Stephen Smalley
Quoted 26 lines · Dominick Grift
Quoted 4 lines · Dominick Grift
Quoted 2 lines · Petr Lautrbach

For the motivation see
https://marc.info/?l=selinux&m=149435307518336&w=2

Quoted 8 lines

Thanks! I enabled the one with Fedora patches because i need python3 support for setools4

This should allow me to enable extended_socket_class functionality and test it.

I hope this repository will be maintained consistently so that it can be useful

I just enabled the extended_socket_class capability and in seinfo -- polcap -x it currently shows up as "redhat1":

# seinfo --polcap -x

Polcap: 3

    policycap network_peer_controls;
    policycap open_perms;
    policycap redhat1;

I know the redhat1 polcap is re-used but not sure if this expected to return like that...

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Maybe setools4 hasn't been rebuilt to use the updated libsepol, or has its own internal table of the policy capability string names?

thanks , yes thats the case (former)

I will update scripts to rebuild setools together with selinux sources and provide setools builds in copr repos

Thank you

Quoted 56 lines
Quoted 55 lines
Quoted 54 lines
Quoted 54 lines
Quoted 51 lines
Quoted 44 lines

I've restarted building of Fedora packages based on latest SELinux userspace code in Fedora COPR. Packages are built using the https://gitlab.com/bachradsusi/selinux-rpm project.

There is a new selinux.spec [1] file which allows to build all Fedora packages from one src.rpm and Makefile which makes the process simple.

Currently there are two COPR projects:

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-fedora
/

This is built with Python3 support based on Fedora patches which are rebased against latest upstream code.

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-SELinu
xProject/

This is based on pure upstream sources and without Python 3.

Currently I run copr builds manually but the plan is to make it fully automated.

Let me know if you find it useful or if you have ideas, comments and so on.

[1] https://gitlab.com/bachradsusi/selinux-rpm/blob/master/selinu
x.spec

Thanks,

Petr

Signature · 5 lines
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B
6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6
B02
Dominick Grift
Signature · 3 lines
Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8  02D5 3B6C 5F1D 2C7B 6B02
https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02
Dominick Grift
maintainer
#7 lore raw
In reply to Petr Lautrbach
Quoted 10 lines · Petr Lautrbach

For the motivation see
https://marc.info/?l=selinux&m=149435307518336&w=2

I've restarted building of Fedora packages based on latest SELinux userspace code in Fedora COPR. Packages are built using the
https://gitlab.com/bachradsusi/selinux-rpm project.

There is a new selinux.spec [1] file which allows to build all Fedora packages from one src.rpm and Makefile which makes the process simple.

Quoted 6 lines

Currently there are two COPR projects:

* https://copr.fedorainfracloud.org/coprs/plautrba/selinux-fedora/

This is built with Python3 support based on Fedora patches which are rebased against latest upstream code.

Thanks Petr!

FWIW, I've been using the plautrba/selinux-fedora COPR on my test system for the past ~week and it has been working well.

Signature · 2 lines
paul moore
www.paul-moore.com