Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

selinux

Configure SELinux to allow daemons to use files in non-default locations

August 10, 2022 by Magenaut

I have a daemon (apache/samba/vsftpd/…) running on SELinux enabled system and I need to allow it to use files in a non-default location. The standard file permissions are configured to allow access.

Categories Q&A, Unix & Linux Tags linux, permissions, selinux Leave a comment

How do I edit a file and preserve its access control list / SELinux security context?

August 9, 2022 by Magenaut

I’m on CentOS 6.2, and have a file with the alternate access method character displayed as a dot.

Categories Q&A, Unix & Linux Tags acl, selinux Leave a comment

httpd can’t write to folder/file because of SELinux

August 9, 2022 by Magenaut

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 my problem is definitely related to SELinux. I just don’t know which one is the right one without opening a big hole and Google isn’t being much help.

Categories Q&A, Unix & Linux Tags apache-httpd, selinux Leave a comment

How to prevent a process from writing files

August 8, 2022 by Magenaut

I want to run a command on Linux in a way that it cannot create or open any files to write. It should still be able to read files as normal (so an empty chroot is not an option), and still be able to write to files already open (especially stdout).

Categories Q&A, Unix & Linux Tags apparmor, capabilities, linux, security, selinux Leave a comment

how to create a custom SELinux label

August 6, 2022 by Magenaut

I wrote a service/single binary app that I’m trying to run on Fedora 24, it runs using systemd, the binary is deployed to /srv/bot

Categories Q&A, Unix & Linux Tags fedora, linux, security, selinux Leave a comment

How to copy SELinux context from one directory and apply it to another directory?

August 6, 2022 by Magenaut

How can I copy SELinux context from one directory and apply it to another?

Categories Q&A, Unix & Linux Tags centos, rhel, selinux Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress