LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-14-2021, 03:45 AM   #1
notooth
Member
 
Registered: Apr 2005
Posts: 192

Rep: Reputation: 15
How to install system-config-selinux?


Hello,

Can anyone tell me how to install system-config-selinux on Debian?
 
Old 01-14-2021, 03:59 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
system-config-selinux is Fedora/RHEL-specific. On Debian, install policycoreutils-gui and run sepolicy gui.

Or install policycoreutils-python-utils and run semanage from the command line.

Last edited by shruggy; 01-14-2021 at 04:07 AM.
 
Old 01-14-2021, 04:24 AM   #3
notooth
Member
 
Registered: Apr 2005
Posts: 192

Original Poster
Rep: Reputation: 15
I failed to run it:
Code:
$ sudo apt install system-config-selinux policycoreutils-python-utils

$ sepolicy gui
org.freedesktop.DBus.Python.OSError: OSError: [Errno Failed to read SELinux configuration: %s] ('', 'Traceback (most recent call last):\n  File "/usr/sbin/semanage", line 28, in <module>\n    import seobject\n  File "/usr/lib/python3/dist-packages/seobject.py", line 1045, in <module>\n    class portRecords(semanageRecords):\n  File "/usr/lib/python3/dist-packages/seobject.py", line 1047, in portRecords\n    valid_types = list(list(sepolicy.info(sepolicy.ATTRIBUTE, "port_type"))[0]["types"])\n  File "/usr/lib/python3/dist-packages/sepolicy/__init__.py", line 197, in <genexpr>\n    return ({\n  File "/usr/lib/python3/dist-packages/setools/typeattrquery.py", line 65, in results\n    for attr in self.policy.typeattributes():\nAttributeError: \'NoneType\' object has no attribute \'typeattributes\'\n')

$ semanage
bash: semanage: command not found
 
Old 01-14-2021, 05:06 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Pay attention, I've said there's no system-config-selinux in Debian.
Code:
sudo apt install policycoreutils-{gui,python-utils} setools-gui
semanage is an admin tool.
Code:
/usr/sbin/semanage -h
apol -h

Last edited by shruggy; 01-14-2021 at 05:07 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix and selinux [selinux updates broke postfix?] rjcroasdale Linux - Server 59 12-03-2019 11:17 PM
Implementing SeLinux on Debian 5 (Lenny) -- can't install "selinux-basics" bashFUL Linux - Security 3 10-17-2011 01:16 AM
SELinux errors, SELinux and wine ziphem Linux - Security 10 01-27-2011 04:15 PM
Selinux-how do i find out what domains have permissions on what type?(selinux policy) vishyc88 Linux - Security 2 11-22-2010 04:27 AM
"../system.h :selinux/selinux.h:no such file or directory" ashmita04 Linux From Scratch 4 02-05-2009 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration