All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: Robert Mykland <robert@ascenium.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: Policies for Devices?
Date: Mon, 13 Apr 2009 09:53:35 -0400	[thread overview]
Message-ID: <1239630815.6129.36.camel@localhost.localdomain> (raw)
In-Reply-To: <49E0134D.3040903@ascenium.com>

On Fri, 2009-04-10 at 20:49 -0700, Robert Mykland wrote:
> Folks,
> 
> Is there a way I can use policies to prevent a specific device, say a 
> USB key, from being written to except by one specific application?  If 
> so, how would I go about writing that?

SELinux can control:
- what processes can access device files (read/write to the device file
types),
- what processes can mount filesystems (mount to the filesystem type,
mounton to the mountpoint directory),
- what processes can read/write a mounted filesystem (read/write to the
file types in the filesystem).

So SELinux can certainly limit the ability of applications to access
particular devices.  Exactly how one maps that down to a given system
depends on your particular environment and usage model, and may involve
more than just policy.

-- 
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

      parent reply	other threads:[~2009-04-13 13:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-11  3:49 Policies for Devices? Robert Mykland
2009-04-11  4:19 ` Justin Mattock
2009-04-13 13:53 ` Stephen Smalley [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=1239630815.6129.36.camel@localhost.localdomain \
    --to=sds@tycho.nsa.gov \
    --cc=robert@ascenium.com \
    --cc=selinux@tycho.nsa.gov \
    /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.