Skip to content

Commit

Permalink
kernel/files.fc: Label /usr/lib/sysimage as usr_t
Browse files Browse the repository at this point in the history
Moved from: fedora-selinux/selinux-policy-contrib#43

This ensures that hardlinking works with `/usr/share/rpm` (once the
contrib patch to make it `usr_t` is merged too).

See https://bugzilla.redhat.com/show_bug.cgi?id=1526191
coreos/rpm-ostree#959 (comment)
coreos/rpm-ostree#1142
  • Loading branch information
cgwalters committed Jan 23, 2018
1 parent 42c0853 commit 38c45c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions policy/modules/kernel/files.fc
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ ifdef(`distro_redhat',`

/usr/share/doc(/.*)?/README.* gen_context(system_u:object_r:usr_t,s0)

# http://lists.rpm.org/pipermail/rpm-maint/2017-October/006681.html
/usr/lib/sysimage(/.*)? gen_context(system_u:object_r:usr_t,s0)

/usr/tmp -d gen_context(system_u:object_r:tmp_t,s0-mls_systemhigh)
/usr/tmp/.* <<none>>

Expand Down

0 comments on commit 38c45c8

Please sign in to comment.