Capabilities, a short intro
by Sven Vermeulen, post on Thu 02 May 2013Capabilities. You probably have heard of them already, but when you start developing SELinux policies, you'll notice that you come in closer contact with them than before. This is because SELinux, when applications want to do something "root-like", checks the capability of that application. Without SELinux, this either requires the …
SELinux mount options
by Sven Vermeulen, post on Wed 01 May 2013When you read through the Gentoo Hardened SELinux
handbook,
you'll notice that we sometimes update /etc/fstab
with some
SELinux-specific settings. So, what are these settings about and are
there more of them?
First of all, let's look at a particular example from the installation instructions so you see what …
Qemu-KVM monitor tips and tricks
by Sven Vermeulen, post on Tue 30 April 2013When running KVM guests, the Qemu/KVM
monitor is a nice interface
to interact with the VM and do specific maintenance tasks on. If you run
the KVM guests with VNC, then you can get to this monitor through
Ctrl-Alt-2
(and Ctrl-Alt-1
to get back to the VM display). I …
photorec to the rescue
by Sven Vermeulen, post on Mon 29 April 2013Once again PhotoRec has been able to save files from a corrupt FAT USB drive. The application scans the partition, looking for known files (based on the file magic) and then restores those files. The files are not named as they were though, so there is still some manual work …
Securely handling libffi
by Sven Vermeulen, post on Sun 28 April 2013I've recently came across libffi again.
No, not because it was mentioned during the Gentoo
Hardened online meeting, but
because my /var/tmp
wasn't mounted correctly, and emerge (actually
python) uses libffi. Most users won't notice this, because libffi works
behind the scenes. But when it fails, it fails bad …
How logins get their SELinux user context
by Sven Vermeulen, post on Sat 27 April 2013Sometimes, especially when users are converting their systems to be
SELinux-enabled, their user context is wrong. An example would be when,
after logon (in permissive mode), the user is in the
system_u:system_r:local_login_t
domain instead of a user domain like
staff_u:staff_r:staff_t
.
So, how does a login get …
New SELinux userspace release
by Sven Vermeulen, post on Fri 26 April 2013A new release of the SELinux userspace utilities was recently announced. I have made the packages for Gentoo available and they should now be in the main tree (\~arch of course). During the testing of the packages however, I made a stupid mistake of running the tests on the wrong …
Gentoo protip: using buildpkgonly
by Sven Vermeulen, post on Thu 25 April 2013If you don't want to have the majority of builds run in the background while you are busy on the system, but you don't want to automatically install software in the background when you are not behind your desk, then perhaps you can settle for using binary packages. I'm not …
Using strace to troubleshoot SELinux problems
by Sven Vermeulen, post on Wed 24 April 2013When SELinux is playing tricks on you, you can just "allow" whatever it wants to do, but that is not always an option: sometimes, there is no denial in sight because the problem lays within SELinux-aware applications (applications that might change their behavior based on what the policy sais or …
SLOT'ing the old swig-1
by Sven Vermeulen, post on Tue 23 April 2013The SWIG tool helps developers in building interfaces/libraries that can be accessed from many other languages than the ones the library is initially written in or for. The SELinux userland utility setools uses it to provide Python and Ruby interfaces even though the application itself is written in C …