From: dwalsh@redhat.com (Daniel J Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] I would like to suggest that we remove the tmpfs_t and type alias them to tmp_t.
Date: Thu, 06 Feb 2014 16:50:16 +0100 [thread overview]
Message-ID: <52F3AF38.7050708@redhat.com> (raw)
In-Reply-To: <52F39365.4020505@tresys.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/06/2014 02:51 PM, Christopher J. PeBenito wrote:
> On 02/06/14 06:19, Daniel J Walsh wrote:
>> - From a security point of view, treating this differently has little
>> value in my mind. I believe policy writers just write both rules in
>> place. I guess you could argue that combining them together would allow
>> a domain to write to /dev/shm /tmp and /var/tmp and currently you could
>> only write to one.
>>
>> What do people think about this?
>
> I don't think I have any objections, though I'm eager to hear opinions.
> However, I think we should probably still keep /dev/shm separate.
>
Well the goal is to prevent code like the following:
manage_dirs_pattern(aisexec_t, aisexec_tmp_t, aisexec_tmp_t)
manage_files_pattern(aisexec_t, aisexec_tmp_t, aisexec_tmp_t)
files_tmp_filetrans(aisexec_t, aisexec_tmp_t, { dir file })
manage_dirs_pattern(aisexec_t, aisexec_tmpfs_t, aisexec_tmpfs_t)
manage_files_pattern(aisexec_t, aisexec_tmpfs_t, aisexec_tmpfs_t)
fs_tmpfs_filetrans(aisexec_t, aisexec_tmpfs_t, { dir file })
We have this policy written everywhere. Having /dev/shm labeled differently
then /tmp means we still need to have this, which kills the idea.
I would like to know what the security difference is between writing content
to /dev/shm and /tmp? Does anyone actually do anything when getting an AVC
with a domain writing to /dev/shm other then allow the domain to write there?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlLzrzgACgkQrlYvE4MpobMhWgCcCB6ovrsQfXq0fe/pdsZfCWH9
pcIAoIuipe2CH9bxC6yXBTHW3Eruwr7V
=o6Sg
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2014-02-06 15:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-06 11:19 [refpolicy] I would like to suggest that we remove the tmpfs_t and type alias them to tmp_t Daniel J Walsh
2014-02-06 11:47 ` Sven Vermeulen
2014-02-06 13:51 ` Christopher J. PeBenito
2014-02-06 15:50 ` Daniel J Walsh [this message]
2014-02-06 17:43 ` Sven Vermeulen
2014-02-07 15:36 ` Christopher J. PeBenito
2014-02-11 15:35 ` Daniel J Walsh
2014-03-17 14:03 ` Christopher J. 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=52F3AF38.7050708@redhat.com \
--to=dwalsh@redhat.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.