All of lore.kernel.org
 help / color / mirror / Atom feed
* Policies for Devices?
@ 2009-04-11  3:49 Robert Mykland
  2009-04-11  4:19 ` Justin Mattock
  2009-04-13 13:53 ` Stephen Smalley
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Mykland @ 2009-04-11  3:49 UTC (permalink / raw)
  To: selinux

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?

Thanks in Advance,

-- Robert.

-- 
Robert Mykland               Voice: (831) 212-0622
Founder/CTO                   Ascenium Corporation
"A new world of computing fulfilling people's lives"


--
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Policies for Devices?
  2009-04-11  3:49 Policies for Devices? Robert Mykland
@ 2009-04-11  4:19 ` Justin Mattock
  2009-04-13 13:53 ` Stephen Smalley
  1 sibling, 0 replies; 3+ messages in thread
From: Justin Mattock @ 2009-04-11  4:19 UTC (permalink / raw)
  To: Robert Mykland; +Cc: selinux


On Apr 10, 2009, at 8:49 PM, 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?
>
> Thanks in Advance,
>
> -- Robert.
>
> -- 
> Robert Mykland               Voice: (831) 212-0622
> Founder/CTO                   Ascenium Corporation
> "A new world of computing fulfilling people's lives"
>
>
> --
> 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.


from here,
normally any of my usb devices(example thumb drives)
will be denied access, until I relabel, and write the
allow rules for them into the policy.

regards,

Justin P. Mattock

--
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Policies for Devices?
  2009-04-11  3:49 Policies for Devices? Robert Mykland
  2009-04-11  4:19 ` Justin Mattock
@ 2009-04-13 13:53 ` Stephen Smalley
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Smalley @ 2009-04-13 13:53 UTC (permalink / raw)
  To: Robert Mykland; +Cc: selinux

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-13 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.