SELinux (Security-Enhanced Linux) is an implementation of a flexible mandatory, role-based access control architecture on Linux. It is primarily used to confine system processes.

learn more… | top users | synonyms

1
vote
0answers
10 views

Recreating local selinux contexts after OS Reinstallation

We have added a few specific contexts to our SELinux via the "semanage fcontext ..." command. The patterns are stored in /etc/selinux/targetd/contexts/files/file_contexts.local. Assuming that we ...
1
vote
0answers
17 views

apply proper security labels during filesystem restore

When restoring a filesystem on a separate system (i.e., possibly a different system than the one where the filesystem was originally mounted and in use), I would like to apply the correct security ...
5
votes
1answer
19 views

What are SELinux “.lst” files under /usr/share/selinux/targeted on CentOS 7?

I can see several ".lst" file under /usr/share/selinux/targeted on CentOS 7: base.lst modules-base.lst modules-contrib.lst nonbasemodules.lst ".lst" files contain a list of SELinux policy ...
0
votes
1answer
1k views

chcon: failed to change context of `/etc/oddjobd.conf.d' to `unconfined_u:object_r:oddjob_t:s0': Permission denied

A friend of mine had trouble with SELinux. The server is configured with SELinux in enforcing mode, using the targeted policy. When using Puppet, restorecon or chcon, he had errors like this, even if ...
0
votes
1answer
17 views

SELinux is not logging anywhere

I have SELinux in permissive mode enabled on CentOS7 system. But it doesn't seem to produce any logs. No new files in /var/log/audit, grep -i selinux /var/log/messages* finds nothing. sestatus ...
3
votes
0answers
38 views

Can using chcon to essentially bypass selinux be less secure than setting selinux to permissive?

I was wondering if it is possible to make a CentOS 7 server less secure by using chcon than it would be if SELinux were in Permissive mode. I am essentially trying to set up Phusion Passenger with ...
3
votes
1answer
655 views

GDM will not start on boot, unable to login into graphical interface

I am running RHEL 5.8 . SELinux is enabled but in permissive mode. Here are some snippets from /var/log/messages on boot. kernel: type=1400 audit(1360613500.551:6): avc: denied { write } for ...
2
votes
1answer
27 views

User cron jobs are not being executed any more (perhaps SELinux)

I have the following output as a user running crontab -l: #Ansible: backup-external chaos */20 * * * * flock --nonblock /home/mu/.cache/backup-external.lock backup-external chaos */20 * * * * ...
2
votes
5answers
3k views

How to configure SELinux to print date and time in each entry in audit log?

I'm using CentOS 5.5 and by default my /var/log/audit/audit.log looks like this: type=USER_AUTH msg=audit(1331897657.359:8435): user pid=15610 uid=0 auid=4294967295 ...
1
vote
5answers
251 views

Can I stop SElinux from working?

I suspect that SElinux is backdoor and I want to stop it from working on my system. I want to stop it and delete it from the system also if that is possible. Questions How can I delete it without ...
0
votes
1answer
35 views

no iptables, no selinux, port 81 in virtualhost still not working

I try to open port 81 as a virtualhost. after setting apache, I can CURL localhost:81 from local machine and get response(yes it was listening port 81). However, when visit the same address from ...
0
votes
0answers
34 views

nginx server never resolves

I have set up an nginx server which is a proxy for port 80 to http://127.0.0.1:3000, but the request never gets through. It just infinitely loads. I have tried sudo /sbin/iptables -I INPUT -p tcp -m ...
0
votes
0answers
27 views

Cannot access server outside of server`

I have a node server listening on port 80. If I send a request to it like this: request('http://127.0.0.1:80',function(err,res,data) {console.log(data)}) It works. It returns what I would expect. ...
2
votes
1answer
5k views

SELinux Write access for vsftpd and samba

This should be easy enough I think, but I'm new to SELinux. I have a CentOS 6 file server. I have some LVM file systems at /var/media and I want to use both Samba and FTP to share them with a Windows ...
2
votes
1answer
24 views

Why does audit2why have nothing to do?

I know I have an issue with SElinux. So I am following a tutorial that will help me understand the nature of the file access problems I am having. That was I can still have SElinux enforce as supposed ...
4
votes
0answers
31 views

Wrong role and type on login

I'm on an Ubuntu 14.04 derivative, elementary OS Freya. I have installed and configured SELinux using the selinux-policy-default package, which contains a lot of modules. I've also added my user to ...
0
votes
1answer
42 views

Suitable permissions for owncloud /data directory using nginx under centos

Having the following software: nginx web server centos 7.1 OS owncloud 8 Application https Web Browsing Protocol PHP-FPM After resolving the issue of /config directory permissions, we reached ...
5
votes
3answers
18k views

httpd cant write to folder/file because of selinux

Does anyone know which sebool it is to allow httpd write access to /home/user/html? When I disable selinux echo 0 > /selinux/enforce I can write, so definitely selinux. Just don't know which one is ...
1
vote
0answers
31 views

Unable to emerge SystemD on Hardened/SELinux

I'm on the hardened/linux/amd64/selinux profile on a recent Stage 3 of Gentoo amd64. I'm trying to install SystemD, and I see the following: > emerge -aq sys-apps/ The following mask changes are ...
3
votes
1answer
16 views

SELinux error while installing Awesome WM packages

After installing Awesome wm packages: awesome.x86_64 rancid.x86_64 vicious.noarch I'm getting an error in SELinux Troubleshooter: The source process: useradd Attempted this access: create ...
1
vote
1answer
25 views

Do I need to create a module for a new program or just use an existing one?

We have been developing a program at work to be run on a CentOS image. This program is very critical for us, so we need it to run in a very secure context. So, I was thinking of using SELinux to ...
1
vote
0answers
20 views

Where does samba_share_t come from

I have samba installed, selinux in enforcing mode, samba shares works fine. But I am not sure where samba_share_t is defined? semanage fcontext -l | grep samba_share_t does not return anything. ...
1
vote
2answers
11k views

Redhat “httpd” can not start anymore. Showing “suEXEC” and “SELinux” notices

I'm on RHEL 6.5 and Apache 2.2.15. When I restart the httpd, I can not start that httpd anymore. Showing following things in the /var/log/httpd/error_log: [Fri Aug 01 18:31:48 2014] [notice] suEXEC ...
5
votes
1answer
998 views

SELinux is preventing /opt/google/chrome/nacl_helper from getattr access on the file /etc/passwd

Is this a bug or a real security concern? It appears to have been discussed but I still don't understand why this is happening and what is being done to address the root cause (I am not going to ...
0
votes
1answer
32 views

crontab and selinux

I have Drupal 7 on RHEL 7 and it looks like SELinux blocks crontab. aureport -a showes 90. 11/27/2015 01:32:35 httpd system_u:system_r:httpd_t:s0 87 file unlink system_u:object_r:httpd_log_t:s0 ...
0
votes
1answer
46 views

HOWTO: Fix “Cannot parse sensitivity level in s0” error when attempting to start a KVM VM after a major OS upgrade

I have a Lenovo ThinkPad T430 running Red Hat Enterprise Linux 6.7 with kernel 2.6.32-573.8.1.el6.x86_64. This is a work computer, corporate policy states that I must keep my operating system up to ...
3
votes
1answer
35 views

Benchmarking With SELinux

I've been performing some benchmarking tasks on freshly installed CentOS machines with SELinux enabled and disabled. The tasks include copying files of various sizes, sending variable amounts of data ...
3
votes
1answer
136 views

SELinux and chroot system call

TL; DR: This is a question about the final step, in a portable, developer-oriented rooting process, that works across all Android machines. It is not based on any exploit - it is something that we are ...
1
vote
0answers
38 views

Need help deciphering a particular SELinux/AVC error

As a SELinux newbie this avc error ( as generated by ausearch ) has me confused. time->Fri Nov 13 16:04:49 2015 type=PROCTITLE msg=audit(1447452289.136:242): proctitle="/opt/firefox/firefox" ...
0
votes
2answers
108 views

why isn't .htaccess redirecting requests on CentOS 7?

A web app running on CentOS 7 with Apache 2.4 recently changed its domain name from olddomain.com to newdomain.com. The structure of the app at the newdomain.com is different than on the ...
4
votes
2answers
72 views

How to change service type of well defined ports in SElinux (centOS 6.5)

I need to be able to run SSH on port 23 instead of 22 on CentOS 6.5. SElinux won't allow that, as it has it as tcp/23 defined in policy. Any steps on how can I go about changing service type from ...
5
votes
1answer
120 views

how to remove SELinux label?

I added the SELinux label svirt_sandbox_file_t to /home chcon -Rt svirt_sandbox_file_t /home The label is shown using: [user@localhost ~]$ ls -Z unconfined_u:object_r:svirt_sandbox_file_t:s0 ...
3
votes
0answers
71 views

How to create an SELinux exception for individual files

I use a monitoring tool and on one of my systems that is checked remotely, it calls up a script, which in turn runs systemctl to check the status of a service. This was not working until I put SELinux ...
9
votes
1answer
3k views

What is the safe way to allow Java 7 to run on SELinux

Short version: What is the most secure way to allow Java 7 to run on (with?) SELinux? Long version: Sorry in advance if I use incorrect terminology. I'm really just a Java developer with a meager ...
2
votes
1answer
75 views

Create an RPM to distribute a custom SELinux policy

I have created two custom SELinux Policy modules to allow rsyslog to parse audit.log. Can I create an RPM of these two policies to distribute to 300+ clients? Is there a better way to go about this? ...
1
vote
0answers
18 views

RHEL / SELinux - Apache unable to write to a directory it can write to [duplicate]

I have a RHEL 7 machine running an Apache web server with multiple virtual hosts on it. I've recently run into an issue where I am unable to upload media, e.g. images / pictures / video, to my machine ...
0
votes
1answer
76 views

Executing command in a script as other user takes 10-15 seconds before execution

I start a bash script (synchronously from java as a glassfish user) which starts a command as another user (let's say myUser): #!/bin/bash echo myPassword | su -c "command" myUser & When I ...
0
votes
0answers
19 views

Error while building libxcrypt

I am building the libxcrypt package on my OBS and I am getting the following error: [ 37s] crypt_util.c:268:1: error: type defaults to 'int' in type name [-Werror=implicit-int] [ 37s] ...
2
votes
1answer
153 views

Listing and editing the content of /sepolicy

I am in a position to create my own boot image for my Android tablet - which means I can in theory modify the /sepolicy file to, for example, give the shell account that is used by adb shell sessions, ...
1
vote
2answers
529 views

Configure vsftpd allow access to mounted ISO file

I am having problems to allow anonymous FTP access to a directory that mounted a ISO file. No change to /etc/vsftpd/vsftpd.conf RHEL 6.5 DVD ISO file saved to /var/ftp/pub/ISO/rhel6_5.iso ...
4
votes
3answers
2k views

Prevent creating directories but allow creating files

I have a directory shared through Samba. I want users to be able to create/modify/delete files but not create/erase directories. I haven't found a way to do it. Maybe with SELinux? But how?
13
votes
2answers
26k views

How to disable SELinux without restart?

I need to disable SELinux but cannot restart the machine i followed this link where i get bellow command setenforce 0 But after running this command i checked for that sestatus SELinux status: ...
2
votes
0answers
63 views

Relocation in a docker volume: svirt_sandbox_file_t and texrel_shlib_t

I run a Docker container with a volume that contains a executable and shared library which requires relocation. I get: error while loading shared libraries: /opt/J9/bin/libj9thr24.so: cannot restore ...
3
votes
2answers
212 views

How do I remedy SELinux not allowing legit programs in use access to my system?

I have a system where some programs are getting access denied in SELinux when performing their duties. These programs are ClamAV, fail2ban and Logwatch. I think I've managed to allow all the access ...
0
votes
0answers
17 views

SELinux policy for ifplugd and udev in Raspbian

I've recently enabled SELinux on my RaspberryPi and recieved some AVCs denials. I'm reading SEL documentation and have resolved a few of them. But I'm not sure if I did it right. So please review my ...
2
votes
2answers
78 views

Does it make sense to use SELinux inside a chroot jail?

Does it make sense to use SELinux inside a chroot jail? I am thinking that since in the chroot jail there should only be the bare minimum, not much else could be compromised. Is there still a benefit ...
1
vote
3answers
150 views

What is the difference between lhome and home, and is it causing my SSH key authentication to fail?

I have RHEL running on a system with my account having the root privilege. My home directory is in /lhome/myusername. If I try to add any user their home directory is created in /home/newuser. What ...
3
votes
2answers
585 views

SELinux is preventing /opt/google/chrome/chrome-sandbox from write access on which file?

I keep getting the following error ever since upgrading to Chrome google-chrome-stable-42.0.2311.90-1.x86_64. SELinux is preventing /opt/google/chrome/chrome-sandbox from write access on the ...
14
votes
3answers
982 views

Myth or reality: SELinux can confine the root user?

I read or heard somewhere (maybe in LinuxCBT's SELinux course; but I'm not sure) that there are online Linux servers, for which the password of the root user is also given. The Linux server is ...
3
votes
0answers
66 views

Sandboxing a binary on linux

I am trying to understand various options I have to restrict/sandbox a binary in Linux. I see that I can use namespaces and cgroups like docker does. I could use SELinux like this link suggests. Which ...