From: sven.vermeulen@siphos.be (Sven Vermeulen)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/1] Make samba domtrans optional in virt
Date: Sat, 10 Nov 2012 20:37:55 +0100 [thread overview]
Message-ID: <20121110193754.GA7652@siphos.be> (raw)
The virt module has a call to samba_domtrans_smbd which isn't marked as an
optional_policy call. This made the module depend on samba module, which isn't
always needed.
Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
---
virt.te | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/virt.te b/virt.te
index f15cf2b..c11b54f 100644
--- a/virt.te
+++ b/virt.te
@@ -305,14 +305,6 @@ tunable_policy(`virt_use_nfs',`
fs_read_nfs_symlinks(virt_domain)
')
-tunable_policy(`virt_use_samba',`
- fs_manage_cifs_dirs(virt_domain)
- fs_manage_cifs_files(virt_domain)
- fs_manage_cifs_named_sockets(virt_domain)
- fs_read_cifs_symlinks(virt_domain)
- samba_domtrans_smbd(virt_domain)
-')
-
tunable_policy(`virt_use_sysfs',`
dev_rw_sysfs(virt_domain)
')
@@ -325,6 +317,16 @@ tunable_policy(`virt_use_usb',`
')
optional_policy(`
+ tunable_policy(`virt_use_samba',`
+ fs_manage_cifs_dirs(virt_domain)
+ fs_manage_cifs_files(virt_domain)
+ fs_manage_cifs_named_sockets(virt_domain)
+ fs_read_cifs_symlinks(virt_domain)
+ samba_domtrans_smbd(virt_domain)
+ ')
+')
+
+optional_policy(`
tunable_policy(`virt_use_xserver',`
xserver_read_xdm_pid(virt_domain)
xserver_stream_connect(virt_domain)
--
1.7.8.6
next reply other threads:[~2012-11-10 19:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-10 19:37 Sven Vermeulen [this message]
2012-11-14 18:23 ` [refpolicy] [PATCH 1/1] Make samba domtrans optional in virt Dominick Grift
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=20121110193754.GA7652@siphos.be \
--to=sven.vermeulen@siphos.be \
--cc=refpolicy@oss.tresys.com \
/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.