Questions tagged [libselinux]

libselinux is the SELinux runtime shared libraries.

libselinux is the SELinux runtime shared libraries.

http://userspace.selinuxproject.org/

http://mirror.yandex.ru/debian/pool/main/libs/libselinux/

26 questions
4
votes
2 answers

ld failed because libselinux has undefined reference to gettid@GLIBC_2.30

I'm trying to build glibc 2.24 from source. The host OS is WSL Ubuntu 20.04, the compiler is gcc 9. The ld utility failed when trying to link the nss module of glibc: /usr/bin/ld:…
Lancern
  • 403
  • 2
  • 9
4
votes
5 answers

CentOS - yum install - Fails: Protected Multilib versions: problems found libselinux

I have CentOS 6.5 I'm trying to intsall git via yum but getting an error while installing the pre-requisite packages. I don't need to but it doesn't hurt running sudo with root. Error message: --> Finished Dependency Resolution Error: Multilib…
AKS
  • 16,482
  • 43
  • 166
  • 258
2
votes
2 answers

libselinux-python bindings and ansible

Sorry for answering my own question, but I've seen this crop up in multiple forums, so I wanted to post this in hope it helps someone else. The basic problem occurs when trying to run Ansible against older Python interpreters -- particularly…
CrankyElderGod
  • 403
  • 4
  • 10
2
votes
1 answer

Podman (libpod) fails to run while mounting shm with SELinux context

I am currently trying out Podman on Gentoo Linux: # grep -i selinux…
duxsco
  • 331
  • 2
  • 17
2
votes
0 answers

Why does the SELinux policy say /init is unlabeled on Android Things?

I'm trying to port Android Things to a binary code compatible hardware platform. What I've done so far is to convert the system.img sparse file to an ext4 partition which I copied to an SD card. Now I'm stuck at the point where /init is starting…
JohnnyFromBF
  • 9,873
  • 10
  • 45
  • 59
2
votes
1 answer

yum install mysql-devel.x86_64 error Centos5

I use yum install mysql-devel.x86_64 on centos5, but error like this: Transaction Check Error: package libselinux-1.33.4-5.7.el5.centos.x86_64 (which is newer than libselinux-1.33.4-5.7.el5.i386) is already installed Error…
Huey Zhang
  • 131
  • 1
  • 9
2
votes
1 answer

how to add libselinux into the openwrt build system?

I am building an openwrt system with selinux support. First I meet the bug that cannot find , during busybox compiling. And then I know that there is a libselinux library needed to build busybox with selinux support. As I am not very familiar with…
roMoon
  • 91
  • 10
1
vote
2 answers

How to add "ProcessLabel" in a docker container

For my Docker container Selinux is enabled and set to "Enforcing" mode. We have 2 container running in our system. But for one container both "MountLabel" and "ProcessLabel" is configured , as shown below : docker inspect | grep…
1
vote
2 answers

OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"xxxx\": executable file not found in $PATH": unknown

I am using CentOS 7.4.1708. Current environment have no internet access. So I installed docker (and docker-compose) from binaries. At first, I encounter below error, found that is related to selinux with docker. So I disable selinux. [root@DB1…
ronald8192
  • 5,003
  • 2
  • 14
  • 23
1
vote
0 answers

Building a SELinux image - RPM Package compilation Error

I've enabled the SELinux by doing the below changes, Added meta-selinux path to BUILDDIR/conf/bblayers.conf file. Set DISTRO_FEATURES_append=" pam selinux" in in BUILDDIR/conf/local.conf file. I've executed the below command to generate a default…
nullbyte91
  • 161
  • 2
  • 9
1
vote
1 answer

Map SELinux requested permission to string representing System Call

I am trying to map the requested access control vector to the corresponding textual representation of the system call in the following function: int avc_has_perm(security_id_t ssid, security_id_t tsid, security_class_t tclass,…
Giuseppe
  • 447
  • 2
  • 5
  • 14
1
vote
1 answer

Build libraries in external folder of AOSP source code

I noticed that a simple $ . build/envsetup.sh $ lunch $ aosp_hammerhead-eng $ make -j16 Would not build also the external libraries in the ./external folder. How am I supposed to build source code in such folder? In particular, I am modifying…
Giuseppe
  • 447
  • 2
  • 5
  • 14
1
vote
0 answers

Denied issues remain even selinux policies are created

The selinux mechanism is deployed on android 7.1, so I must fix selinux denied issues. Now there are only two denied issues remained, but I have write these two accesses in selinux policies in policy file. That are denied issues' log below: avc:…
alexunder
  • 2,793
  • 3
  • 15
  • 18
1
vote
1 answer

Why SELinux policy in /sepolicy and /sys/fs/selinux/policy do not match?

I'm using Android SELinux enforced device and doing the following: adb pull /sepolicy sepolicy1 adb pull /sys/fs/selinux/policy sepolicy2 diff sepolicy1 sepolicy2 I get: Binary files sepolicy1 and sepolicy2 differ From examining with a hex viewer…
skoperst
  • 2,259
  • 1
  • 23
  • 35
1
vote
1 answer

Selinux must need auditing support? Can audit2allow be used instead?

I have seen that selinux need to enable auditing support. I want to know the difference between audit and audit2allow, can I just use audit2allow instead of audit? It seems that no audit support in android code, only audit2allow. For the audit, I…
roMoon
  • 91
  • 10
1
2