Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
feat: add rhel 8 selinux policy files
Browse files Browse the repository at this point in the history
rhel 8 selinux support

Related work items: #181342
  • Loading branch information
rbest-bt committed May 28, 2019
1 parent 46cacb7 commit 4d946b8
Show file tree
Hide file tree
Showing 7 changed files with 526 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/linux/redhat/MakeKitBuild
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ make()
# - Executing 'make -f /usr/share/selinux/devel/Makefile' in that directory.

# SELinux policy for RedHat Enterprise/CentOS 6.x
for distro in 'rhel/7.0' 'rhel/6.0' 'fedora/21' 'fedora/20' 'fedora/19' 'fedora/18' 'fedora/17' 'fedora/16' 'fedora/15' 'fedora/14' 'fedora/13'
for distro in 'rhel/8.0' 'rhel/7.0' 'rhel/6.0' 'fedora/21' 'fedora/20' 'fedora/19' 'fedora/18' 'fedora/17' 'fedora/16' 'fedora/15' 'fedora/14' 'fedora/13'
do
mk_stage MODE=644 \
DEST="${MK_DATADIR}/$distro/pbis.te" SOURCE="$distro/pbis.te"
Expand Down
1 change: 1 addition & 0 deletions config/linux/redhat/rhel/8.0/pbis.fc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/opt/pbis/sbin(/.*)? gen_context(system_u:object_r:bin_t)
21 changes: 21 additions & 0 deletions config/linux/redhat/rhel/8.0/pbis.if
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
########################################
## <summary>
## Connect to pbis services.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`pbis_client',`
gen_require(`
type var_lib_t, unconfined_t;
')

# Client should be allowed to talk to services.
allow $1 unconfined_t:unix_stream_socket connectto;
allow $1 var_lib_t:sock_file write;
')


Binary file added config/linux/redhat/rhel/8.0/pbis.pp
Binary file not shown.
Loading

0 comments on commit 4d946b8

Please sign in to comment.