From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH v2] Allow hugetlbfs_t to be associated to /dev
Date: Mon, 21 Apr 2014 09:09:33 -0400 [thread overview]
Message-ID: <5355188D.7010101@tresys.com> (raw)
In-Reply-To: <1397671343-20457-1-git-send-email-bigon@debian.org>
On 04/16/2014 02:02 PM, Laurent Bigonville wrote:
> From: Laurent Bigonville <bigon@bigon.be>
>
> Even if there is not FHS provision for this, systemd is using
> /dev/hugepages to mount the hugetlbfs fs by default.
>
> The needed file contexts are already present
> ---
> policy/modules/kernel/filesystem.te | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/policy/modules/kernel/filesystem.te b/policy/modules/kernel/filesystem.te
> index e7e34bf..7a44522 100644
> --- a/policy/modules/kernel/filesystem.te
> +++ b/policy/modules/kernel/filesystem.te
> @@ -97,6 +97,7 @@ genfscon futexfs / gen_context(system_u:object_r:futexfs_t,s0)
> type hugetlbfs_t;
> fs_xattr_type(hugetlbfs_t)
> files_mountpoint(hugetlbfs_t)
> +dev_associate(hugetlbfs_t)
> fs_use_trans hugetlbfs gen_context(system_u:object_r:hugetlbfs_t,s0);
>
> type ibmasmfs_t;
Merged.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
prev parent reply other threads:[~2014-04-21 13:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-16 17:33 [refpolicy] [PATCH] Allow hugetlbfs_t to be associated to /dev Laurent Bigonville
2014-04-16 18:02 ` [refpolicy] [PATCH v2] " Laurent Bigonville
2014-04-21 13:09 ` Christopher J. PeBenito [this message]
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=5355188D.7010101@tresys.com \
--to=cpebenito@tresys.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.