Cloning into 'selinux-policy'...
The authenticity of host 'pkgs.fedoraproject.org (38.145.60.17)' can't be established.
RSA key fingerprint is SHA256:Q12OTyTeOHWlS54dTzy2BNu7wB8UKNf18+7WHIDsORc.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'pkgs.fedoraproject.org' (RSA) to the list of known hosts.
root@pkgs.fedoraproject.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Could not execute clone: Failed to execute command.
The instruction linked above relies on the Fedora infrastructure and requires pre-configured authentication, but you can also build it locally like this:
fedpkg build
Kerberos authentication is used, but you do not have a valid credential.
Please use kinit to get credential with a principal that has realm FEDORAPROJECT.ORG
Could not execute build: Could not login to https://koji.fedoraproject.org/kojihub
Using the second method:
RPM build errors:
Directory not found: /home/richiedaze/rpmbuild/BUILDROOT/selinux-policy-41.14-1.fc40.x86_64/var/lib/selinux/targeted/active
File not found: /home/richiedaze/rpmbuild/BUILDROOT/selinux-policy-41.14-1.fc40.x86_64/var/lib/selinux/targeted/semanage.read.LOCK
File not found: /home/richiedaze/rpmbuild/BUILDROOT/selinux-policy-41.14-1.fc40.x86_64/var/lib/selinux/targeted/semanage.trans.LOCK
Directory not found: /home/richiedaze/rpmbuild/BUILDROOT/selinux-policy-41.14-1.fc40.x86_64/var/lib/selinux/targeted/active/modules
File not found: /home/richiedaze/rpmbuild/BUILDROOT/selinux-policy-41.14-1.fc40.x86_64/var/lib/selinux/targeted/active/modules/100/base
File not found: /home/richiedaze/rpmbuild/BUILDROOT/selinux-policy-41.14-1.fc40.x86_64/var/lib/selinux/targeted/active/commit_num
File not found: /home/richiedaze/rpmbuild/BUILDROOT/selinux-policy-41.14-1.fc40.x86_64/var/lib/selinux/targeted/active/users_extra
etc...
@vgaetera, the selinux-policy.spec does not mention anything about these files?
The method above works to build the the selinux policy from source on workstation.
NOTE:
This method currently does not work on atomic desktops using toolboxes. Further testing is necessary to figure out why the build fails on toolboxes.