I am building libselinux on openwrt, and need auditing support.
But I have really open the aduditing support in the linux kernel menuconfig, why still this error happen?
error: libaudit.h: No such file or directory.
Any sort of help is greatly…
I am using fedora 22. I have used a predifined type lets say a_t in .fc file. When I load the policy
and run restorecon -v . I get the following
restorecon reset context b_t -> a_t
where b_t is the default context of .
but when I run ls -Z over…
I am using fedora 21
I have written a selinux policy moudle for an application. I have defined new types is .te file and created a .fc file in which defines the labelling of files with the types I have created. i can successfully load the policy…
I am using Debian 6 with SELinux enabled.
Now, I just want to change default policy and make my-policy as a active policy. For that I have downloaded debian's refpolicy and tried to compile it.
It seems rolemap file is not found. But rolemap is…
I need a 32-bit compat libselinux.so.1 on my x86-64 Centos system to run some non-open source software from Xilinx. I tried installing with yum:
$ sudo yum install libselinux-devel.i686
However, I found that the package is apparently broken as the…
I want to learn to create a role based on user_r for my custom motion daemon. The daemon works fine as unconstrained, but I want to lock it down further. I am on fedora 38 coreos.
Selinux tutorials and docs are a bit thin on the ground, but I have…
The getfilecon() API call is declared to return a security_context_t as follows:
int getfilecon(const char *path, security_context_t *con);
What is the formal definition of a security_context_t?
Anecdotally a security_context_t appears to be a…
I wrote a new policy contains new type definition (.te) and interface method (.if):
.te file:
policy_module(dummy, 1.0.0)
type dummy_t;
files_type(dummy_t)
.if file:
##
## Do Bla bla
##
##
## …
I'm trying to compile selinux in a private directory as drescribed here:
https://github.com/SELinuxProject/selinux
For the compilation to work I also compiled xmlto and added it's bin-dir to $PATH.
The compilation fails with the following…
I'm on a Linux System and recently enabled SELinux in permissive and enforcing mode.
While executing the login command in a shell with correct username and password I get a "Permission denied" error message on execve() system call.
Debugging all…
I couldnt find the answer to this question before reading: getenforce source code. I just wanted to get the mode of selinux so I would know in runtime if selinux is enforcing and spamming avc denials because gdb is reading: gdb avc denial bug. I…