From: dominick.grift@gmail.com (grift)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 05/12] Allow rpc admin to run exportfs
Date: Tue, 01 Jan 2013 11:43:47 +0100 [thread overview]
Message-ID: <1357037027.2088.11.camel@localhost> (raw)
In-Reply-To: <1356994351-29191-6-git-send-email-sven.vermeulen@siphos.be>
On Mon, 2012-12-31 at 23:52 +0100, Sven Vermeulen wrote:
> Running exportfs gives a failure::
>
> exportfs: /proc/fs/nfs/exports:2: unknown keyword
> "uuid=98e15bcc:25161082:00000000:00000000"
>
> A related denial::
>
> Dec 19 14:42:24 hpl kernel: [21543.035535] type=1400 audit(1355924544.121:1506):
> avc: denied { search } for pid=4139 comm="exportfs" name="/" dev="nfsd" ino=1
> scontext=staff_u:sysadm_r:sysadm_t tcontext=system_u:object_r:nfsd_fs_t
> tclass=dir
>
> Granting fs_search_nfsd_t() provides what is needed to handle this properly.
>
This should probably just go into the sysadm policy instead of this
interface
you probably should not test these interfaces with sysadm because sysadm
already have a lot of privileges so chances are that this will not work
or be enough with for example a nfsadm_r role
I merged it nevertheless but please keep that in mind next time, thanks
> Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
> ---
> rpc.if | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/rpc.if b/rpc.if
> index 694e1e8..3bd6446 100644
> --- a/rpc.if
> +++ b/rpc.if
> @@ -415,4 +415,6 @@ interface(`rpc_admin',`
>
> files_list_tmp($1)
> admin_pattern($1, gssd_tmp_t)
> +
> + fs_search_nfsd_fs($1)
> ')
next prev parent reply other threads:[~2013-01-01 10:43 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-31 22:52 [refpolicy] [PATCH 00/12] Various contrib changes Sven Vermeulen
2012-12-31 22:52 ` [refpolicy] [PATCH 01/12] More .maildir fixes Sven Vermeulen
2013-01-01 10:36 ` grift
2012-12-31 22:52 ` [refpolicy] [PATCH 02/12] Mark make.profile entry as portage_conf_t (v2) Sven Vermeulen
2013-01-01 10:37 ` grift
2012-12-31 22:52 ` [refpolicy] [PATCH 03/12] Move mta call (coding style) Sven Vermeulen
2013-01-01 10:37 ` grift
2012-12-31 22:52 ` [refpolicy] [PATCH 04/12] Changes to puppet domain Sven Vermeulen
2013-01-01 10:39 ` grift
2012-12-31 22:52 ` [refpolicy] [PATCH 05/12] Allow rpc admin to run exportfs Sven Vermeulen
2013-01-01 10:43 ` grift [this message]
2012-12-31 22:52 ` [refpolicy] [PATCH 06/12] Grant sys_admin capability to puppet Sven Vermeulen
2013-01-01 10:47 ` grift
2013-01-01 10:50 ` Sven Vermeulen
2012-12-31 22:52 ` [refpolicy] [PATCH 07/12] Puppet module helper scripts are puppet_var_lib_t Sven Vermeulen
2013-01-01 10:47 ` grift
2012-12-31 22:52 ` [refpolicy] [PATCH 08/12] Support netlink_route_socket creation for puppet Sven Vermeulen
2013-01-01 10:48 ` grift
2012-12-31 22:52 ` [refpolicy] [PATCH 09/12] Puppet initscript creates /run/puppet Sven Vermeulen
2013-01-01 10:49 ` grift
2012-12-31 22:52 ` [refpolicy] [PATCH 10/12] Puppet runs statfs against selinuxfs Sven Vermeulen
2012-12-31 22:52 ` [refpolicy] [PATCH 11/12] Allow qemu to create TCP sockets (VNC support) Sven Vermeulen
2013-01-01 10:35 ` grift
2012-12-31 22:52 ` [refpolicy] [PATCH 12/12] Fix specification collision (hal and devicekit) Sven Vermeulen
2013-01-01 10:33 ` grift
2013-01-01 10:39 ` Sven Vermeulen
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=1357037027.2088.11.camel@localhost \
--to=dominick.grift@gmail.com \
--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.