mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #3231] [MERGED] Add support for SELinux labeling #4689
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#4689
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/3231
Author: @topimiettinen
Created: 2/18/2020
Status: ✅ Merged
Merged: 2/22/2020
Merged by: @topimiettinen
Base:
master← Head:selinux-labeling-support📝 Commits (1)
f44d3a7Add support for SELinux labeling📊 Changes
20 files changed (+224 additions, -17 deletions)
View changed files
📝
README(+1 -1)📝
README.md(+1 -1)📝
configure(+18 -0)📝
configure.ac(+10 -0)📝
src/common.mk.in(+2 -1)📝
src/fcopy/main.c(+57 -0)📝
src/firejail/firejail.h(+3 -0)📝
src/firejail/fs_bin.c(+1 -0)📝
src/firejail/fs_dev.c(+4 -0)📝
src/firejail/fs_etc.c(+2 -0)📝
src/firejail/fs_home.c(+14 -0)📝
src/firejail/fs_hostname.c(+1 -0)📝
src/firejail/fs_lib.c(+1 -0)📝
src/firejail/fs_lib2.c(+1 -0)📝
src/firejail/fs_var.c(+2 -0)📝
src/firejail/fs_whitelist.c(+13 -0)📝
src/firejail/pulseaudio.c(+1 -0)📝
src/firejail/restrict_users.c(+4 -0)📝
src/firejail/sandbox.c(+15 -14)➕
src/firejail/selinux.c(+73 -0)📄 Description
Running
firejail --noprofile --private-bin=bash,ls ls -1Za /usr/binshows that the SELinux labels are not correct:
After fixing this:
Most copied files and created directories should now have correct
labels (bind mounted objects keep their labels). This is useful to
avoid having to change the SELinux rules when using Firejail.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.