Advanced Plus Security Victor M Fedora 44 KDE Configuration

Last updated
Jun 6, 2026
How it's used?
For work or educational use
Operating system
Linux
On-device encryption
Other full-disk drive encryption software
Log-in security
    • Hardware security key
    • Basic account password (insecure)
Security updates
Allow security updates
Update channels
Allow stable updates only
User Access Control
N/A - Linux / Mac / Other operating system
Smart App Control
N/A - Linux / Mac / Other operating system
Network firewall
Enabled
Real-time security
SELinux daemon & browser & user profiles
Systemd hardening
Firewall-cmd
Firewall security
Built-in Firewall for Mac/Linux
About custom security
SELinux daemon & browser & user profiles
Systemd hardening
Blacklisted unused network protocols
Firewall-cmd set to zone=drop
Browser can only touch Downloads dir
Seperate user_u account for daily use
Procedural security control forbids admin acc browser use.
Sudo command and logins require Yubikey
Periodic malware scanners
clamav
Malware sample testing
I do not participate in malware testing
Environment for malware testing
n/a
Browser(s) and extensions
SafeToOpen
Ublock Origin
Privacy Badger
Secure DNS
quad9
Desktop VPN
ProtonVPN
Password manager
keepass
File and Photo backup
file copy
Subscriptions
    • Google One Premium 2TB
System recovery
Clonezilla
Risk factors
    • Browsing to popular websites
    • Working from home
    • Making audio/video calls
    • Buying from online stores, entering banks card details
Computer specs
Dell Latitude
What I'm looking for?

Looking for maximum feedback.

Victor M

Level 25
Thread author
Verified
Top Poster
Well-known
Oct 3, 2022
1,497
5,574
2,369
Have just "finished" preparing my Fedora 44 KDE Plasma machine. It's not that I like KDE; my red team sorta made me rebuild the OS because they were incrementally hacking it. And I lacked detailed steps to re-create Fedora 44 Gnome's SELinux configuration. Since the forum is saying KDE is sleek, much improved, and so forth; I decided to take a look. This time I documented the configuration steps :)

Out of the box, Fedora makes user accounts with the unconfined profile. It has no restrictions. Just like Windows' first user account.

I confined the admin account to the staff_u profile, and confined my second daily use user account to the user_u profile. The staff_u can do admin things, and can sudo. But there should be some limitations that I haven't experienced yet. The user_u cannot do admin things.
sudo semanage login -a -s staff_u <admin acc name>
sudo restorecon -RFv /home/<admin account name>/

sudo semanage login -a -s user_u <user acc name>
sudo restorecon -RFv /home/<user account name>/
The semanage command changes the profile, and the restorecon command relabels the directories. Simplistically speaking, SELinux labels everything and enforce whitelist rules that says what can interact with what.

These profiles are pre-made; comes with SELinux. However, some things aren't fully working. ChatGPT says these profiles are fully supported on Red Hat Linux. But on Fedora it has some rough edges.

Then I made sudo require Yubikey, and sign in also requires Yubikey. This is a important part that foils remote hacking. One needs to touch the Yubikey as 2FA to complete a sudo command. This is configured via modification to PAM.

Done hardening it similar to what I did for Ubuntu: Setup Idea - Ubuntu Hardening

Except I cannot use Firejail, because it thinks SELinux profiles are a kind of virtualization and it exits.

Instead of firejail, SELinux has a mozilla_t profile. So instead of firejail's very minimized containment environment, I now have SELinux rules that whitelists allowed tasks.

Also, one has to make staff_u and user_u transition Firefox into mozilla_t. (That's the rough edges I was talking about) Ask your AI on how to do that. It needs a small rule file which you then apply.

There is also a SELinux boolean that can be turned off with 'setsebool -P' unconfined_mozilla_plugin_transition off' ChatGPT explains that it is only needed for old browser plugins like Flash.
 
Last edited:

You may also like...