• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to run SELinux on Ubuntu

 
Marshal
Posts: 69847
278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Earlier this week, I was reading about permissions and security. And I started thinking about SELinux, which Tim Holloway menetioned. I have seen SELinux only on Fedora/RedHat boxes, but I run Ubuntu too, so I was wondering how to install SELinux on Ubuntu. If you search you find out about things like setenforce, but I don't appear to have got off to a good start:-

sudo apt-get install selinux
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package selinux
...
sudo setenforce
[sudo] password for campbell: ABCD1234XYZ
usage:  setenforce [ Enforcing | Permissive | 1 | 0 ]
sudo setenforce Enforcing
setenforce: SELinux is disabled

So I don't even know whether I have got it installed; which selinux returns nothing.
 
Campbell Ritchie
Marshal
Posts: 69847
278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It says here you should uninstall AppArmor before using SELinux on Ubuntu.
 
Marshal
Posts: 3149
466
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a bit surprised that it isn't installed by default.  Is that just only for Ubuntu, or all Debian derivatives?

I mainly used Redhat/CentOS and SELinux is installed and running by default - you have to intentionally disable it is you don't want is active.

 
Campbell Ritchie
Marshal
Posts: 69847
278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not tried any other Debian derivatives. Yes, it runs “enforcing” by default on all the RH/Fedora boxes I have used. The link in my second post suggests that AppArmor performs an analogous function on Ubuntu/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic