Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

ENH,SEC: Enable selinux #5

Closed
westurner opened this issue Sep 13, 2020 · 8 comments · Fixed by #18
Closed

ENH,SEC: Enable selinux #5

westurner opened this issue Sep 13, 2020 · 8 comments · Fixed by #18

Comments

@westurner
Copy link
Contributor

It shouldn't be too difficult to get selinux=enforcing working.

"Inlined copy of /root/modules/*.te" in smithmcgriff/Fedora-on-pinebookpro#5 (comment) works but probably shouldn't be necessary.

@bengtfredh
Copy link
Owner

By now I use Manjaro kernel and SELINUX is not configured, they use apparmor. This is why I set selinux=disabled. I have no success with Fedora kernel. Have you tried Fedora kernel and been able to boot? I have tried to patch Fedora kernel, but still no success.

@westurner
Copy link
Contributor Author

So, this has neither AppArmor nor SELinux?

@westurner
Copy link
Contributor Author

It may be easier to merge the Fedora kernel config (from /boot but not /proc) for SELinux with and rebuild the manjaro kernel than to apply the Pinebook patch set to a Fedora [vanilla?] kernel?

@bengtfredh
Copy link
Owner

bengtfredh commented Oct 16, 2020

I am working with next release of the script and created a copr repo with extra packages to replace the overlay, and the Manjaro part of the script.
https://github.com/bengtfredh/pinebook-pro-copr.git
https://copr.fedorainfracloud.org/coprs/aptupdate/pinebook-pro/packages/
By now I have created a rpm with the prebuild Manjaro kernel. I have been trying to patch Fedora kernel with the patches for Pinebook Pro with no success.
Manjaro kernel have AppArmor enabled, but I think it will be hard to create/set functional policies on Fedora.
The better option is probably to enable SELINUX and build kernel from vanilla.
Good idea to try to build vanilla with patches and Fedora config, I will try that one.

@westurner
Copy link
Contributor Author

Just getting a chance to look at the source here but haven't a pbp in hand.
The kernel-pbp spec looks refreshingly easy to maintain:
https://github.com/bengtfredh/pinebook-pro-copr/blob/master/kernel-pbp/kernel-pbp.spec

https://github.com/nikhiljha/pp-fedora-sdsetup/blob/master/phone-scripts/02-install-packages.sh#L38-L44 has:

infecho "Making COPR higher priority for kernel updates..."
echo "priority=10" >> /etc/yum.repos.d/_copr\:copr.fedorainfracloud.org\:njha\:mobile.repo

Here are some packagesets for Gnome, KDE, Xfce, etc. on top of a minimal fedora install:
https://github.com/89luca89/ansible-fedora-minimal#installing-the-base-system

@bengtfredh
Copy link
Owner

Thanks, and copr works very well for building kernel.

There is no need to change priority as long as package is named kernel-pbp, you get no conflict with package kernel. For me it is a point to have both installed so I can test Fedora Kernel without to much hazzel.

I will have a look at the repo you posted if I proceed with my idea to start out with a Fedora-Container-Base.

@westurner
Copy link
Contributor Author

@bengtfredh bengtfredh linked a pull request Nov 16, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants