View previous topic :: View next topic |
Author |
Message |
0x4d6165 n00b
Joined: 14 May 2024 Posts: 2
|
Posted: Tue May 14, 2024 9:15 pm Post subject: Selinux (targeted?) On Laptop |
|
|
I was wondering if Selinux (in targeted mode probably) is possible on Gentoo on a laptop/workstation? I'm having trouble getting basic things like the display manager and sudo to reflect properly and I'm wondering if anyone else has done this who can provide pointers or if this is a bad idea and i'm better off using apparmor? I know I'll have to learn a little to get selinux working on a desktop, but I'm wondering if it's even worth doing/possible on gentoo. |
|
Back to top |
|
|
0x4d6165 n00b
Joined: 14 May 2024 Posts: 2
|
Posted: Wed May 15, 2024 3:33 pm Post subject: |
|
|
I'm doing a little test to see if it's possible and most things are working except firefox-bin crashes when enforce is on. The selinux-mozilla package is installed so I assume there's an issue with that policy being applied to firefox-bin? Is this a known issue? |
|
Back to top |
|
|
Dr. Banana n00b
Joined: 04 Aug 2021 Posts: 48
|
Posted: Sun May 19, 2024 1:05 pm Post subject: |
|
|
Can you please keep us updated on this topic? I would like to know as well. _________________ Haters gonna hate,
Potatoes gonna potate. |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 450
|
Posted: Sun May 19, 2024 8:27 pm Post subject: |
|
|
Why do you need (or want) SeLinux on a laptop or workstation? Usually it is a security model for administrators to be used on servers to manage access controls for multiple users of a system. If you are just using it as your personal laptop, I don't know that it would be a benefit if you are just managing restrictions for yourself. Please explain what are you trying to achieve? |
|
Back to top |
|
|
Dr. Banana n00b
Joined: 04 Aug 2021 Posts: 48
|
Posted: Mon May 20, 2024 4:28 am Post subject: |
|
|
rab0171610 wrote: | Why do you need (or want) SeLinux on a laptop or workstation? Usually it is a security model for administrators to be used on servers to manage access controls for multiple users of a system. If you are just using it as your personal laptop, I don't know that it would be a benefit if you are just managing restrictions for yourself. Please explain what are you trying to achieve? |
Well I run some programs under a different user but a MAC would give me extra peace of mind. Plus if I'm not wrong SELinux can restrict even root from doing some things, which is enticing.
That being said I don't think it's worth my time, setting up 'simple sandbox' as explained in the wiki was time consuming enough. _________________ Haters gonna hate,
Potatoes gonna potate. |
|
Back to top |
|
|
BurningMemory n00b
Joined: 17 Jan 2023 Posts: 54
|
Posted: Tue May 21, 2024 1:23 am Post subject: Re: Selinux (targeted?) On Laptop |
|
|
0x4d6165 wrote: | I was wondering if Selinux (in targeted mode probably) is possible on Gentoo on a laptop/workstation? I'm having trouble getting basic things like the display manager and sudo to reflect properly and I'm wondering if anyone else has done this who can provide pointers or if this is a bad idea and i'm better off using apparmor? I know I'll have to learn a little to get selinux working on a desktop, but I'm wondering if it's even worth doing/possible on gentoo. |
Hello there.
It is possible, but requires configuration before it's actually usable. For daily-driving targeted policy is the most benefitial.
Having that said, benefits aren't guaranteed. It depends on your use-case and threat model. Before doing anything
it is best to read the documentation for the project, on Gentoo you can refer to the selinux project wiki page.
And after reading it, please then decide if you really need selinux. |
|
Back to top |
|
|
BurningMemory n00b
Joined: 17 Jan 2023 Posts: 54
|
Posted: Tue May 21, 2024 1:28 am Post subject: |
|
|
0x4d6165 wrote: | I'm doing a little test to see if it's possible and most things are working except firefox-bin crashes when enforce is on. The selinux-mozilla package is installed so I assume there's an issue with that policy being applied to firefox-bin? Is this a known issue? |
The firefox thing isn't really an issue with loading the selinux-mozilla module. I've noticed that all mozilla
software dies if it is not allowed execmem perms (which allows software to make their memory executable,
that's dangerous). I'm not sure if it really is a bug or if it's specific to gentoo even. |
|
Back to top |
|
|
|