All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lawrence, Stephen" <slawrence@tresys.com>
To: SELinux Refpolicy <selinux-refpolicy@vger.kernel.org>
Subject: [PATCH 1/2] ldap: various permissions required by slapd
Date: Fri, 6 Dec 2019 19:25:36 +0000	[thread overview]
Message-ID: <20191206192526.8129-2-slawrence@tresys.com> (raw)
In-Reply-To: <20191206192526.8129-1-slawrence@tresys.com>

- requires the map permission when reading /usr and LDAP database files
- creates symlinks in /tmp in addition to files and directory
- needs to read crypto sysctls
---
 policy/modules/services/ldap.te | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/policy/modules/services/ldap.te b/policy/modules/services/ldap.te
index 83478fa0..47d40770 100644
--- a/policy/modules/services/ldap.te
+++ b/policy/modules/services/ldap.te
@@ -63,6 +63,7 @@ read_lnk_files_pattern(slapd_t, slapd_cert_t, slapd_cert_t)
 manage_dirs_pattern(slapd_t, slapd_db_t, slapd_db_t)
 manage_files_pattern(slapd_t, slapd_db_t, slapd_db_t)
 manage_lnk_files_pattern(slapd_t, slapd_db_t, slapd_db_t)
+mmap_read_files_pattern(slapd_t, slapd_db_t, slapd_db_t)
 
 allow slapd_t slapd_etc_t:file read_file_perms;
 
@@ -83,7 +84,8 @@ manage_lnk_files_pattern(slapd_t, slapd_replog_t, slapd_replog_t)
 
 manage_dirs_pattern(slapd_t, slapd_tmp_t, slapd_tmp_t)
 manage_files_pattern(slapd_t, slapd_tmp_t, slapd_tmp_t)
-files_tmp_filetrans(slapd_t, slapd_tmp_t, { file dir })
+manage_lnk_files_pattern(slapd_t, slapd_tmp_t, slapd_tmp_t)
+files_tmp_filetrans(slapd_t, slapd_tmp_t, { file dir lnk_file })
 
 manage_files_pattern(slapd_t, slapd_tmpfs_t, slapd_tmpfs_t)
 fs_tmpfs_filetrans(slapd_t, slapd_tmpfs_t, file)
@@ -94,6 +96,7 @@ manage_sock_files_pattern(slapd_t, slapd_runtime_t, slapd_runtime_t)
 files_pid_filetrans(slapd_t, slapd_runtime_t, { dir file sock_file })
 
 kernel_read_system_state(slapd_t)
+kernel_read_crypto_sysctls(slapd_t)
 kernel_read_kernel_sysctls(slapd_t)
 
 corenet_all_recvfrom_unlabeled(slapd_t)
@@ -118,6 +121,7 @@ fs_getattr_all_fs(slapd_t)
 fs_search_auto_mountpoints(slapd_t)
 
 files_read_etc_runtime_files(slapd_t)
+files_map_usr_files(slapd_t)
 files_read_usr_files(slapd_t)
 files_list_var_lib(slapd_t)
 
-- 
2.21.0


  reply	other threads:[~2019-12-06 19:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-06 19:25 [PATCH 0/2] Fixes to enable slapd to run Lawrence, Stephen
2019-12-06 19:25 ` Lawrence, Stephen [this message]
2019-12-06 19:25 ` [PATCH 2/2] miscfiles: reading certs allows map permission also Lawrence, Stephen
2019-12-26 16:58   ` Chris PeBenito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191206192526.8129-2-slawrence@tresys.com \
    --to=slawrence@tresys.com \
    --cc=selinux-refpolicy@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.