Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

selinux login loop (custom init) [Solved]

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
Cheesyjuggler64
n00b
n00b
Posts: 64
Joined: Thu May 16, 2024 3:17 pm

selinux login loop (custom init) [Solved]

  • Quote

Post by Cheesyjuggler64 » Sat Aug 30, 2025 7:56 pm

I've been trying to get selinux working with dinit, the system boots fine when selinux is disabled however when I enable it even when it is in permissive mode the system just keeps sending me to the login screen i.e when I enter the correct credentials the screen just sends me back to input credentials (I'am logging in as the root user). To get selinux to work it needs to mounted otherwise it will just show up as disabled so I added this line to my init, it is set to run right after /sys is mounted.

Code: Select all

mount -t selinuxfs selinuxfs /sys/fs/selinux
when this line is added I get the login problem however when I remove it the system and run it after I've logged in it just seems to work. I believe that this is a problem to do with labeling and such but surely since its set to permissive it should just log the issues?
My selinux config is permissive and strict.
Help appreciated
Last edited by Cheesyjuggler64 on Wed Sep 03, 2025 1:42 am, edited 1 time in total.
Top
Cheesyjuggler64
n00b
n00b
Posts: 64
Joined: Thu May 16, 2024 3:17 pm

  • Quote

Post by Cheesyjuggler64 » Sun Aug 31, 2025 2:26 pm

so I somehwat fixed it when i ran sestatus after rebooting I noticed there was this line

Code: Select all

Policy deny_uknown status: denied
when I changed this to allowed by adding handle-unknown = allow in my /etc/selinux/semanage.conf and then rebuilt the policy with

Code: Select all

semodule -B
it works howvwer now everytime it reboots it runs semodule -B is there anyway to make the change persistent?
Top
Post Reply

2 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic