All of lore.kernel.org
 help / color / mirror / Atom feed
* Shell redirection and denials
@ 2007-10-08 19:08 Karl MacMillan
  2007-10-09 14:23 ` Daniel J Walsh
  2007-10-09 14:37 ` Stephen Smalley
  0 siblings, 2 replies; 10+ messages in thread
From: Karl MacMillan @ 2007-10-08 19:08 UTC (permalink / raw)
  To: SE Linux; +Cc: Daniel J Walsh

One of Dan's constant sources of avcs is something like:

/usr/sbin/my_confined_app > some_file

Because the file is created by the shell, opened, and the FD handed to
the application avcs can occur on read and write.

Getting rid of these via policy is next to impossible - the destination
file type is usually governed by the directory and we don't actually
want to allow that access directly to the confined application. I'd like
to see if there is some other way to get rid of these denials.

I see two possible solutions:

1) Make the shell create and pass a descriptor to a pipe to the
application - the shell itself would read / write to the file. This
seems, to me, to more accurately reflect how we want to enforce the
permissions.

2) Allow applications to confer access by passing the file descriptor
(more like capabilities). This more closely matches how Unix actually
works and, of course, is a huge source of vulnerabilities. Allowing this
type of scheme just for shells might not be that bad.

Has either of these been investigated? 1 seems pretty simple - is there
something I'm missing here (perhaps the redirection should outlast the
shell lifetime?).

Karl


--
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] 10+ messages in thread

end of thread, other threads:[~2007-10-10 16:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-08 19:08 Shell redirection and denials Karl MacMillan
2007-10-09 14:23 ` Daniel J Walsh
2007-10-09 16:55   ` Stephen Smalley
2007-10-10  7:10     ` Kroum Antov
2007-10-10 12:00       ` Stephen Smalley
2007-10-10 16:04         ` Daniel J Walsh
2007-10-10 16:18           ` Stephen Smalley
2007-10-09 14:37 ` Stephen Smalley
2007-10-09 15:04   ` Karl MacMillan
2007-10-09 17:17     ` Christopher J. PeBenito

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.